From Fedora Project Wiki
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
- Prepare an NFS server that is accessible via IPv6 networking
- On the NFS server, setup a mount point in the file
/etc/exports
How to test
- 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
- 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
- Using the example above, attempt to mount the IPv6 NFS mount point with the
mount
command.# mount /mnt
- 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
- Mounting an IPv6-based NFS mount using the
mount
command must work - Mounting an IPv6-based NFS mount using the
mount
command and/etc/fstab
must work - Mounting an IPv6-based NFS volume succeeds even when the server restricts access by subnet