I have a new server with multiple nics running Centos 6.2 and I'd like to force all NFS traffic over one nic. We're using FreeNAS to dish out NFS shares and I have different IPs on my 2 nics but how can I get the server to mount the share over one particular nic? Or is there a better way to do it?
Thanx,
Russell Smithies
======================================================================= Attention: The information contained in this message and/or attachments from AgResearch Limited is intended only for the persons or entities to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipients is prohibited by AgResearch Limited. If you have received this message in error, please notify the sender immediately. =======================================================================
I have a new server with multiple nics running Centos 6.2 and I'd like to force all NFS traffic over one nic. We're using FreeNAS to dish out NFS shares and I have different IPs on my 2 nics but how can I get the server to mount the share over one >particular nic? Or is there a better way to do it?
Static route? Not knowing any detail on topology makes this rather hard to answer... I also could guess at an alternative like link aggregation etc, who knows yet.
On Wed, Mar 14, 2012 at 9:29 AM, Smithies, Russell Russell.Smithies@agresearch.co.nz wrote:
I have a new server with multiple nics running Centos 6.2 and I'd like to force all NFS traffic over one nic. We're using FreeNAS to dish out NFS shares and I have different IPs on my 2 nics but how can I get the server to mount the share over one particular nic? Or is there a better way to do it?
You can force it from the server, you do it from the client. Just tell the client to mount the NFS from the IP you want. :)
On Tue, Mar 13, 2012 at 10:15 PM, Fajar Priyanto fajarpri@arinet.org wrote:
On Wed, Mar 14, 2012 at 9:29 AM, Smithies, Russell Russell.Smithies@agresearch.co.nz wrote:
I have a new server with multiple nics running Centos 6.2 and I'd like to force all NFS traffic over one nic. We're using FreeNAS to dish out NFS shares and I have different IPs on my 2 nics but how can I get the server to mount the share over one particular nic? Or is there a better way to do it?
You can force it from the server, you do it from the client. Just tell the client to mount the NFS from the IP you want. :)
That's assuming you have a normal network topology where each NIC is on a separate subnet with appropriate routes controlling which way other destinations will head. From the question, I'm not sure that is the case here.
I suspected some subnetting would be involved but hoped I could get away with different IPs on the nics. Might have to get the networking books out, it's not my strong suit :-(
--Russell
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Les Mikesell Sent: Wednesday, 14 March 2012 4:30 p.m. To: CentOS mailing list Subject: Re: [CentOS] mount NFS share over specific nic?
On Tue, Mar 13, 2012 at 10:15 PM, Fajar Priyanto fajarpri@arinet.org wrote:
On Wed, Mar 14, 2012 at 9:29 AM, Smithies, Russell Russell.Smithies@agresearch.co.nz wrote:
I have a new server with multiple nics running Centos 6.2 and I'd like to
force all NFS traffic over one nic.
We're using FreeNAS to dish out NFS shares and I have different IPs on
my 2 nics but how can I get the server to mount the share over one particular nic?
Or is there a better way to do it?
You can force it from the server, you do it from the client. Just tell the client to mount the NFS from the IP you want. :)
That's assuming you have a normal network topology where each NIC is on a separate subnet with appropriate routes controlling which way other destinations will head. From the question, I'm not sure that is the case here.
-- Les Mikesell lesmikesell@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
======================================================================= Attention: The information contained in this message and/or attachments from AgResearch Limited is intended only for the persons or entities to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipients is prohibited by AgResearch Limited. If you have received this message in error, please notify the sender immediately. =======================================================================
On 03/13/12 8:42 PM, Smithies, Russell wrote:
I suspected some subnetting would be involved but hoped I could get away with different IPs on the nics. Might have to get the networking books out, it's not my strong suit :-(
differnet IPs on the same subnet is just oging to cause confusion.
I have two nets in my server racks in my lab, one is the 'house' network, and the other is a private 192.168 net on its own switch which use for storage stuff like NFS, ISCSI.
On Tue, Mar 13, 2012 at 10:42 PM, Smithies, Russell Russell.Smithies@agresearch.co.nz wrote:
I suspected some subnetting would be involved but hoped I could get away with different IPs on the nics. Might have to get the networking books out, it's not my strong suit :-(
If you look at network addresses and subnet masks in binary it is easy to see how routing decisions are made. But you don't need to do that, you can just use a subnet chart or stick to /24 ranges where the first 3 octets are different for different subnets and you netmask is 255.255.255.0. But first you need to decide what you want to do - will both the server and clients have separate NICs for NFS? That makes it easy - use a different range, hook them to a different switch and you are done. Bonus, you can restrict the sharing to that set of addresses for security - and maybe use jumbo frames.
I have 4 nics each on all the servers (DL385-G7 for FreeNAS and 4 x DL585-G7s) so dedicating a couple for NFS traffic on their own subnet is no problem. We may even go for 10gig on the nfs if the performance increase can be justified.
--Russell
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Les Mikesell Sent: Wednesday, 14 March 2012 5:28 p.m. To: CentOS mailing list Subject: Re: [CentOS] mount NFS share over specific nic?
On Tue, Mar 13, 2012 at 10:42 PM, Smithies, Russell Russell.Smithies@agresearch.co.nz wrote:
I suspected some subnetting would be involved but hoped I could get away
with different IPs on the nics.
Might have to get the networking books out, it's not my strong suit :-(
If you look at network addresses and subnet masks in binary it is easy to see how routing decisions are made. But you don't need to do that, you can just use a subnet chart or stick to /24 ranges where the first 3 octets are different for different subnets and you netmask is 255.255.255.0. But first you need to decide what you want to do - will both the server and clients have separate NICs for NFS? That makes it easy - use a different range, hook them to a different switch and you are done. Bonus, you can restrict the sharing to that set of addresses for security
- and maybe use jumbo frames.
-- Les Mikesell lesmikesell@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
======================================================================= Attention: The information contained in this message and/or attachments from AgResearch Limited is intended only for the persons or entities to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipients is prohibited by AgResearch Limited. If you have received this message in error, please notify the sender immediately. =======================================================================
I'd really recommend a different subnet for your disks
I'm currently in the process of trying to get my network there in the job I just started 4 months ago