Skip to contentSkip to conversation

IPv6 and NFS4

DISCUSSION Jack Byer 2 participants 2 messages May 3, 2010

Subsystems (2)
lore
Share & tools
lore

Jack Byer

author
#0 lore raw

If I have an NFS4 server successfully sharing a directory with a client and both machines have valid IPv4 and IPv6 addresses should it be possible to mount the directory using either IPv4 or IPv6?

Both machines are running 2.6.34-rc6 kernels, nfs-utils-1.2.2, libtirpc-0.2.0 and rpcbind-0.2.0. Mounting over IPv4 works perfectly, but IPv6 just times out while trying to mount the share. Using tcpdump I see that the two machines exchange 40 packets before the client finally gives up. There are no messages generated in the system log or dmesg of either machine.

#1 lore raw
Quoted 3 lines · Jack Byer

If I have an NFS4 server successfully sharing a directory with a client and both machines have valid IPv4 and IPv6 addresses should it be possible to mount the directory using either IPv4 or IPv6?

Yes, that should work if nfs-utils-1.2.2 is built with --enable-tirpc and --enable-ipv6.

Quoted 6 lines

Both machines are running 2.6.34-rc6 kernels, nfs-utils-1.2.2, libtirpc-0.2.0 and rpcbind-0.2.0. Mounting over IPv4 works perfectly, but IPv6 just times out while trying to mount the share. Using tcpdump I see that the two machines exchange 40 packets before the client finally gives up. There are no messages generated in the system log or dmesg of either machine.

Are the IPv6 addresses correctly registered with DNS? Have you tried "mount.nfs4 ... -v" ? Or:

$ sudo rpcdebug -m nfs -s mount

will produce more syslogging.

Signature · 1 line
chuck[dot]lever[at]oracle[dot]com