From Fedora Project Wiki

(Created page with 'IPv6 Testing on NFS should be similar to IPv4 NFS, and when specifying ipv6 address, it needs to be enclosed in square brackets. Link-local and site-local IPv6 addresses must b...')
 
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
IPv6 Testing on NFS should be similar to IPv4 NFS, and when specifying ipv6 address, it needs to be enclosed in square brackets.  Link-local and site-local IPv6  addresses must be accompanied by an interface identifier.  
{{QA/Test_Case
Please see ipv6(7) manpage for details on specifying raw IPv6 addresses.
|description=IPv6 Testing on NFS should be similar to IPv4 NFS, and when specifying ipv6 address, it needs to be enclosed in square brackets.  Link-local and site-local IPv6  addresses must be accompanied by an interface identifier. See the <code>nfs(5)</code> manpage for details:
|setup=
# Prepare an NFS server that is accessible via IPv6 networking
# On the NFS server, setup a mount point in the file {{filename|/etc/exports}}
|actions=
<ol>
<li>First, attempt to mount an IPv6-based NFS mount using the {{command|mount}} command. The example below demonstrates mounting a share called {{filename|/export}} hosted by the NFS server accessible by it's IPv6 address <code>[2001:470:8:c53:20e:cff:fec6::1]</code>:
<pre>
# mount -t nfs '[2001:470:8:c53:20e:cff:fec6::1]:/export' /mnt/foo
</pre>


{{admon/tip|Note|If putting the IPv6 address in brackets does not work, try without brackets.}}


* An example of /etc/fstab shows how to mount an NFS server using a raw IPv6 link local address using brackets:
<li>Next, update {{filename|/etc/fstab}} and specify an IPv6 NFS server and mount point.  An example is included below for reference:
 
<pre>
            [fe80::215:c5ff:fb3e:e2b1%eth0]:/export /mnt nfs  defaults  0 0
[2001:470:8:c53:20e:cff::1]:/export /mnt nfs  defaults  0 0
 
</pre>
* An good example to try is to mount a nfs filesystem via an ipv6 address:
<li>Using the example above, attempt to mount the IPv6 NFS mount point with the {{command|mount}} command.
 
<pre>
            # mount -t nfs '[2001:470:8:d63:20e:cff:fec6::1]:/export' /mnt/foo
# mount /mnt
 
</pre>
 
<li> Repeat the previous step, but this time modify the file {{filename|/etc/exports}} on the NFS server to restrict access by subnet.  The following example shows restricting access by subnet for both IPv4 and IPv6 addresses.
Note: NFS Client side IPv6 support is in RHEL6.0; NFS Server side IPv6 support is in RHEL6.1
<pre>
/home 192.168.10.0/24(rw,insecure) 2001:470:8:c53::/64(rw,insecure)
</pre>
</ol>
|results=
# Mounting an IPv6-based NFS mount using the {{command|mount}} command must work
# Mounting an IPv6-based NFS mount using the {{command|mount}} command and {{filename|/etc/fstab}} must work
# Mounting an IPv6-based NFS volume succeeds even when the server restricts access by subnet
}}

Latest revision as of 13:28, 21 June 2011

Description

IPv6 Testing on NFS should be similar to IPv4 NFS, and when specifying ipv6 address, it needs to be enclosed in square brackets. Link-local and site-local IPv6 addresses must be accompanied by an interface identifier. See the nfs(5) manpage for details:

Setup

  1. Prepare an NFS server that is accessible via IPv6 networking
  2. On the NFS server, setup a mount point in the file /etc/exports

How to test

  1. First, attempt to mount an IPv6-based NFS mount using the mount command. The example below demonstrates mounting a share called /export hosted by the NFS server accessible by it's IPv6 address [2001:470:8:c53:20e:cff:fec6::1]:
    # mount -t nfs '[2001:470:8:c53:20e:cff:fec6::1]:/export' /mnt/foo
    
    Note
    If putting the IPv6 address in brackets does not work, try without brackets.
  2. Next, update /etc/fstab and specify an IPv6 NFS server and mount point. An example is included below for reference:
    [2001:470:8:c53:20e:cff::1]:/export /mnt nfs  defaults  0 0
    
  3. Using the example above, attempt to mount the IPv6 NFS mount point with the mount command.
    # mount /mnt
    
  4. Repeat the previous step, but this time modify the file /etc/exports on the NFS server to restrict access by subnet. The following example shows restricting access by subnet for both IPv4 and IPv6 addresses.
    /home 192.168.10.0/24(rw,insecure) 2001:470:8:c53::/64(rw,insecure)
    

Expected Results

  1. Mounting an IPv6-based NFS mount using the mount command must work
  2. Mounting an IPv6-based NFS mount using the mount command and /etc/fstab must work
  3. Mounting an IPv6-based NFS volume succeeds even when the server restricts access by subnet