Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
share|improve this question

3 Answers 3

up vote 1 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.

share|improve this answer

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.

share|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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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