Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any reason to have 2 NICs on a server BESIDES the following cases?

  1. You need to connect to 2 different physical networks
  2. Redudancy (1 NIC fails, so you use the other)

Are there any other reasons?

share|improve this question
add comment

10 Answers

up vote 18 down vote accepted

(2a). Load balancing.

(3). Separation of traffic (i.e. you could have a combo web/database server, same network, put all web traffic on one NIC, db traffic on the other, makes it easier to calculate loads for traffic types). This also makes it easier to split the two later on, nobody has to change connection strings.

share|improve this answer
add comment
  1. A separate network for backups.

  2. A separate network for console access (these are typically now integrated on the system board for mainstream servers).

  3. Increased throughput (multiple GB networks) bonded together.

share|improve this answer
    
Bonded NICs is the one we use most. 4 x 1Gb NICs is Champion.. –  Seanchán Torpéist Apr 7 '10 at 22:17
    
1x 10 gig is better! ;) –  James Apr 7 '10 at 22:51
add comment

There's only one other major reason that I can think of, which is similar to redundancy, and that's Trunking, so you could configure traffic to flow over 2x1Gbit ports, giving you 2Gbit of total throughput. Some refer to this as LaCP, linux knows this as mode=4 as described below.

Linux interface bonding modes give a few other options:

mode=0 (balance-rr) Round-robin policy

mode=1 (active-backup) Active-backup policy

mode=2 (balance-xor) XOR policy: Transmit based on [(source MAC address XOR'd with destination MAC address) modulo slave count].

mode=3 (broadcast) Broadcast policy: transmits everything on all slave interfaces. This mode provides fault tolerance.

mode=4 (802.3ad) IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that share the same speed and duplex settings.

mode=5 (balance-tlb) Adaptive transmit load balancing: channel bonding that does not require any special switch support.

mode=6 (balance-alb) Adaptive load balancing: includes balance-tlb plus receive load balancing (rlb) for IPV4 traffic, and does not require any special switch support.

share|improve this answer
2  
802.3ad == LACP == Mode 4, they are all the same terminology for the same thing. LACP being the most common term used (which is the control protocol specified in 802.3ad) –  Zypher Apr 6 '10 at 23:32
    
I think I mentioned that somewhere in my answer.. –  Tom O'Connor Apr 6 '10 at 23:38
1  
Is the more common term for what you are describing "bonding"? I have not seen this called "Trunking". –  iPaulo Apr 7 '10 at 0:00
1  
I've heard both Trunking and Bonding; with trunking being the more popular. The only problem with that, vLans have trunking as well, which can get confusing at times (it's bit me before). Different vendors have different names. –  Chris S Apr 7 '10 at 1:51
1  
@iPaulo: Windows drivers tend to call it 'teaming' , another word to add to the mix :-) –  Kyle Brandt Apr 7 '10 at 12:02
show 1 more comment

Microsoft clusters require an additional NIC port for heartbeat purposes between nodes.

share|improve this answer
    
Not only Microsoft clusters require this... lots of cluster setups require or at least recommend an additional NIC. –  MikeyB Apr 9 '10 at 14:36
add comment

Similar to #2, multiple NICs is also a requisite for high avaliability. Multiple network interfaces (on the same network, but should really be seperate) will be used to monitor which servers are avaliable (a heartbeat). Also, in the case of VMWare, a 3rd NIC can be used for migrating the active state of a virtual machine without interferring with the amount of bandwidth avaliable to the public interface, or the heartbeat.

share|improve this answer
add comment

Probably 2 NICs is the minimum required for a server, like other said at least for HA. If you start including console, heartbeat, possibly iSCSI storage... you can easily hit half dozen NICs for a server.

share|improve this answer
add comment

This might come under "# You need to connect to 2 different physical networks", but if the server was also a router, it would need two NICs.

share|improve this answer
add comment

I always use 2 NICs in a server for redundancy. More than once over the years I've unplugged the wrong cable (usually caused by rushing too much). It's really nice not to have the server disconnect as a result. I've also suffered failed NICs a couple of times.

As far as I'm concerned, if at all possible a server should have redundant everything. NICs are no exception. On the rare occasion I've also needed traffic isolation I add a second pair for that.

share|improve this answer
add comment

I have never understood the NIC redundancy argument. Without moving parts they rarely fail ... you don't have 2 motherboards in one server, do you? Best be redundant on the whole server level.

However, I like the "human error" redundancy above when unplugging in error.

share|improve this answer
    
No moving parts? Cables are moving parts, especially when someone's working near them :). Joking aside, it can be a fairly complex path between a NIC and switch (cable -> port replicator -> horizontal cabling -> port replicator -> switch). Any one of those components just might be delicate and fail. Plus, while NIC ports themselves may rarely fail, switches will more often fail. You may need to upgrade the OS on a switch or reload it for some other reason - it's necessary to do so without taking an outage on a whole whack of servers. –  MikeyB Apr 9 '10 at 14:39
add comment

Having one interface dedicated to running snort or some other honeypot or IDS, and the other in your internal network is another good reason to have 2 nic cards. Agreed on the load balancing and trunking ideas as well.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.