lkml.org 
[lkml]   [2006]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 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/

    \
     
     \ /
      Last update: 2006-01-19 03:24    [W:7.804 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site