Messages in this thread | | | Date | Wed, 18 Jan 2006 18:21:26 -0800 | From | Ben Greear <> | Subject | Re: Can you specify a local IP or Interface to be used on a per NFS mount basis? |
| |
Trond Myklebust wrote: > On Wed, 2006-01-18 at 15:10 -0800, Ben Greear wrote: > >>Hello! >> >>Is there any way to specify what local IP address an NFS >>client uses to mount an NFS server? >> >>For instance, if I have eth0 with IP 192.168.1.6 and eth1 >>with IP 192.168.1.7, how can I make sure that a particular >>mount point is accessed via 192.168.1.7? > > > NFS doesn't know anything about ip packet routing. That is a networking > issue.
When a socket is created, you can optionally bind to local IP, interface and/or IP-Port. Somewhere, NFS is opening a socket I assume? So, is there a way to ask it to bind?
You can then use this source-IP to convince the routing logic to use a particular interface (ie, the interface with that IP on it).
Thanks, Ben
-- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |