When specifying an NFS mountpoint in /etc/fstab, what's the purpose of the addr option? For example:

192.168.1.5:/home         /home                   nfs     rw,addr=192.168.1.5 0 0
link|improve this question

73% accept rate
feedback

3 Answers

up vote 0 down vote accepted

It can specify the client address to use when the client has multiple subnet IPs on an interface and traversing the same routes (think aliased eth0:1, bond0:2, etc.). Typically in this situation you'd put the NFS server on another interface/subnet to avoid the whole problem but in large network installations things can get messy.

link|improve this answer
feedback

Looking at the man page for mount (http://linux.die.net/man/8/mount). It appears as though that option is accepted but ignored. I could not find any other information on it.

link|improve this answer
I suspect it is to be used for multi-homed installations; so that you can specify which IP address local to the server to use as a source. E.g. run the NFS traffic over an internal network, rather than a public interface. – dezwart Apr 9 '10 at 3:40
feedback

I believe NFS uses it internally, you see it in /proc/mounts even when not specified.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.