Results 1 to 14 of 14
-
01-10-2007, 03:31 AM #1Web Hosting Guru
- Join Date
- May 2006
- Posts
- 250
How can I setup Dual NIC cards for extra redundancy?
Hi,
I have linux dedicated server and like to setup dual NIC cards for extra redundancy.. in case one NIC card fails.
I have no idea how I can set this up..how can I do this? I understand at least I need swtich.. and?
Please advise on it.
thanks
-
01-10-2007, 09:54 AM #2I have linux dedicated server and like to setup dual NIC cards for extra redundancy.. in case one NIC card fails.
If your NIC fails, it's a 5 minute replacement. It's almost guaranteed that your DC will have an extra NIC around, and they will happily replace that.
As far as redundancy:
You can't have multiple NIC's running the same ip address. IP's are bound to the NIC, so if NIC 1 goes down, NIC 2 may still be intact, but it will be intact under a DIFFERENT ip address, one that you must assign to it.
In short, you'll NEVER get dual NIC's to run redundantly. It's just not possible. You CAN assign the server base ip to one nic, and the other ip's to the other nic, but that's not the same, and it certainly isn't "redundancy".Tom Whiting, WHMCS Guru extraordinaire
Linux problems? WHMCS Problems? Give me a shout
Check out my WHMCS Addons
-
01-10-2007, 10:23 AM #3Retired Moderator
- Join Date
- Sep 2004
- Location
- Flint, Michigan
- Posts
- 5,766
I am certainly not a linux guru, but taking from this link: http://64.233.167.104/search?q=cache...s&ct=clnk&cd=1
Bonding two nic's to the same IP is an easy process. This is taken from
the bonding.txt file.
1) create a bond0 file in your /etc/sysconfig/network-scripts directory
DEVICE=bond0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
2)add an entry into your /etc/modprobe.conf file
Alias bond0 bonding
3) Change your /etc/sysconfig/network-scripts/ifcfg-eth0 file to
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
4)Change your /etc/sysconfig/network-scripts/ifcfg-eth1 file to
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Restart network
And a bit better link here: http://www.redhat.com/docs/manuals/e...NTERFACES-CHANLast edited by dollar; 01-10-2007 at 10:28 AM.
█ Mike from Zoodia.com
█ Professional web design and development services.
█ In need of a fresh hosting design? See what premade designs we have in stock!
█ Web design tips, tricks, and more at MichaelPruitt.com
-
01-10-2007, 10:28 AM #4Web Hosting Master
- Join Date
- Apr 2003
- Location
- San Jose, CA.
- Posts
- 1,624
Also info @
http://linux-net.osdl.org/index.php/Bonding
-
01-10-2007, 10:38 AM #5Powered By Customers
- Join Date
- Jul 2006
- Location
- San Diego, CA, USA
- Posts
- 691
Dollar, so with just that, can do redundancy on NIC? simple?
-
01-10-2007, 10:56 AM #6Junior Guru Wannabe
- Join Date
- Dec 2006
- Location
- /dev/null
- Posts
- 41
You may also want to look into LVS http://www.linuxvirtualserver.org/ if you need something with more features.
Which ever you choose, I would make sure you're host doesn't have a problem with you doing a setup like that (i.e. two network cards from the same machine on the same layer 2 area using the same ip address). If they've designed things well it shouldn't matter but its better to be safe then sorry.
Note: Bonding / Trunking normally requires the assistance of the hosting provider and changes made to the access switch you're connected to. Most network gear requires you to be on the same switch in order to bond two (or more) switch ports together. However something like LVS (or VRRP etc.) will allow you to be on different switches (assuming things are configured properly) which will give you an added layer of redundancy.Caro.Net: Support is everything
Offering High Quality Dedicated Servers.
-
01-10-2007, 01:02 PM #7Out there beyond the Wall.
- Join Date
- Sep 2004
- Location
- Chicago
- Posts
- 845
Dual NIC teaming can be utilized. I'm not sure of the config for linux boxes but in windows you have a couple of choices. One setup is aggregated where it is failover redundancy, should one card fail the other takes over. You can also team the NICs so that one is used purely for upload/outbound traffic while the other is used for download/inbound traffic. If windows can do it I am sure theres a Linux setup similar to this. Load balancing can also achieve 200Mbps up if 2 NIC are teamed to use both up and down each on a 100Mbps port.
The switch must support this config though and has to be specified at the port level within the switch.
Cisco's I believe need support of at least 802.q . I think that was the version. It's been a long time since I did the reading up on it as it's not something we need.Last edited by Patrick67; 01-10-2007 at 01:05 PM.
-
01-10-2007, 05:37 PM #8Retired Moderator
- Join Date
- Sep 2004
- Location
- Flint, Michigan
- Posts
- 5,766
Originally Posted by iHubNet█ Mike from Zoodia.com
█ Professional web design and development services.
█ In need of a fresh hosting design? See what premade designs we have in stock!
█ Web design tips, tricks, and more at MichaelPruitt.com
-
01-10-2007, 08:12 PM #9Web Hosting Master
- Join Date
- Apr 2004
- Location
- SF Bay Area
- Posts
- 879
Originally Posted by linux-tech
-
01-10-2007, 10:07 PM #10Web Hosting Master
- Join Date
- Nov 2005
- Location
- Minneapolis, MN
- Posts
- 1,648
Originally Posted by LowAsYou
If you're not fully committed to redundancy than having dual NICs is a largely wasted effort. From your post it looks like you are looking to run this back to a single switch, and that switch has a higher likelihood of failure than the NICs plugged into it.
Port bundling increases the complexity of your implementation which makes things more difficult to troubleshoot. In this case you are looking at going from a single NIC that has an extremely low rate of failure to implementing a fancy software high availability solution. If the statistics from what we have seen in our environment with AIX/HACMP and other NIC teaming implementations are indicative of the technology in general, these solutions actually lower your availability. In the last 2 years since we've been supporting these implementations they have saved us from exactly 0 NIC failures but have caused several outages due to issues with the failover management process. In particular, we've seen secondary NICs takeover even when the primary had no connectivity loss (resulting in a brief outage during the switchover), or the NIC swapover process fail completely resulting in 0 NICs being active.
While dual pathing is standard in the network world, it is done on systems where the vendor controls the hardware, the operating system software, and the device drivers that link the two. On the server side you are trying to make the same thing work with several different hardware combinations and multiple driver authors, and hoping they all agree on what the API specifications are. The probability of running into software bugs in that scenario is far higher than the likelihood of a NIC hardware failure.Eric Spaeth
Enterprise Network Engineer :: Hosting Hobbyist :: Master of Procrastination
"The really cool thing about facts is they remain true regardless of who states them."
-
01-10-2007, 11:11 PM #11Web Hosting Master
- Join Date
- Jun 2004
- Posts
- 972
short, you'll NEVER get dual NIC's to run redundantly. It's just not possible. You CAN assign the server base ip to one nic, and the other ip's to the other nic, but that's
http://h18004.www1.hp.com/products/s...g/teaming.html
Buy 2 of these = problem solved
http://cgi.ebay.com/Compaq-NC7770-Gi...QQcmdZViewItemEuroVPS VPS Hosting - Virtual Private Servers | Web Hosting | Dedicated Servers
Providing Reliable Plesk and cPanel Servers since 2004, now offering low priced Xen & VMware VPS in Amsterdam
UK +44.203.355.6681 / Amsterdam +31.208.202.120
-
01-11-2007, 01:21 PM #12Local tech for Los Angeles
- Join Date
- Feb 2003
- Location
- Panorama City, CA
- Posts
- 2,581
I had this setup at calpop... When they did network maintenance... (or looking to move a server to another switch..) This setup helped so many times.. Now that i moved away from calpop.. i don't need it any more
dollar nailed the link to RH thats the one i have in my bookmarks.
-
01-11-2007, 01:46 PM #13Web Hosting Guru
- Join Date
- May 2006
- Posts
- 250
so you did http://www.redhat.com/docs/manuals/e...NTERFACES-CHAN or http://64.233.167.104/search?q=cache...s&ct=clnk&cd=1?
so if I do this, what is best and simple one?
-
01-12-2007, 11:24 AM #14Local tech for Los Angeles
- Join Date
- Feb 2003
- Location
- Panorama City, CA
- Posts
- 2,581
by RH i meant the Redhat link.
Its easy to setup and managed, one thing i did love since its too uplinks you get more capacity, better in house transfers.