Results 1 to 4 of 4
Hi,
I have nfs server and client both running on RHEL.
Client has two network card's each having one IP.
My question is if I want to dedicate traffic of ...
- 10-13-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 4
Nfs
Hi,
I have nfs server and client both running on RHEL.
Client has two network card's each having one IP.
My question is if I want to dedicate traffic of nfs requests from client to the nfs server through secondary IP/Ethernet card. What would be the configuration changes that are to be done on the nfs server and client side.
I have tried giving the secondary IP in the /etc/exports file of nfs server and tried to mount. The request are going from client to the server through primary IP/Ethernet card, so was unable to mount.
Thanks in advance.
--Nagasai.
- 10-13-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
The NFS server needs to be able to reach the NFS client at the second ip address. That means they physically must be networked together and also the NFS server needs a route to that 2nd ip address.
Does the NFS server have a second network adapter, or an ip address allocated for the 2nd NIC already?
For example, if your client has these set up:
NIC #1: 192.168.1.2
NIC #2: 10.1.1.2
and you want to use NIC #2 for NFS, then the server needs to be able to reach 10.1.1.2 (start with ping...). So you can either use a second NIC on the NFS server (give it say 10.1.1.1) or if you only have one NIC, you can assign a second ip address to it (e.g.: ip addr add 10.1.1.1 dev eth0), or you can have a VLAN rule on your router do it for you.
- 10-13-2011 #3Just Joined!
- Join Date
- Oct 2011
- Posts
- 4
Thanks for reply Atreyu, I have that solution in mind, but just for a change in scenario.
For example:
Client Nic1: 192.168.110.180
Nic2 : 192.168.110.222
Nfs Server : 192.168.110.20
Then all the IP's are pingable and reachable. In this case If I want to dedicate my NIC2 of client(i.e 192.168.110.20) for NFS mount traffic in the sense mount request, access request etc from client to nfs server go through this.
Do we have any option in nfs mount's where I can bind the IP of client for dedicated traffic?
As in case of backup server where I can have two different lines one for production access and other for backup/SAN( I knew that I have both in different VLANS t do this).
--Nagasai.
- 10-13-2011 #4Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
If both NIC 1 and NIC 2 are on the same network, as you've indicated, I don't believe you can set one to be the "preferred" interface. That's been bandied about before, and I believe the solution was always to either use VLANs or two NICs with ips on different networks, but maybe somebody else knows a way...


Reply With Quote