1826780 Members
1668 Online
109702 Solutions
New Discussion

binding nfs to NIC2...

 
K.C. Chan
Trusted Contributor

binding nfs to NIC2...

All,
I have two NIC card. I am using NIC1 as regular traffic footprint. I want to use NIC2 for nfs traffic footprint. How do I make sure NIC2 gets use as nfs traffic only; do I need to bind it to NIC2's ip address? how would I do that?
Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
2 REPLIES 2
Jeff Schussele
Honored Contributor

Re: binding nfs to NIC2...

Hi K.C.,

Well the only way you'll be able to do that is have the NFS server/client in a separate private network. Then you can set up a static route for that traffic.
IF they're on the "public" network and that traffic needs to go through a router, there's not much you can do.
I suppose IF they're on the same subnet segment - i.e. no router needed, you could setup a static route for those specific servers.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Mark Greene_1
Honored Contributor

Re: binding nfs to NIC2...

Jeff has a good idea there with the static routes. If the servers in question are on different subnets, you might be able to setup static routes on the routers as well. You network admins may not like that or be willing to support it, however.

Check the man page for route and netstat. You can see the routes that the system already knows by doing netstat -r. Given that one of the parameters for route is the interface, that alone may be sufficient to keep the traffic off the other nic.

mark
the future will be a lot like now, only later