Hi All!, been awhile since I posted an article and I don’t think I have ever posted one on Network Link Aggregation!! Link Aggregation is the physical combining of network links into one logical link. There are two main advantages to this practice. First is the increase throughput that you obtain by combining links, for example combining 2x 1GB links will increase your total bandwidth to 2GB.(Keep in mind this will not change your latency…) Secondly, link aggregation grants the benefits of redundancy. Imagine the setup above. If 1 of the 1GB links fails, you would still have the other 1GB link to fall back on, woot!.
–Image From Wikipedia
- Link Aggregation Group (LAG) — is the set of physical ports, connections, etc contained within a logical group.
- EtherChannel/PortGroup/NIC Teaming — are all vendor specific terms for LAGs. The underlying protocol used is explicitly configured by the administrator.
- Trunk — I’ve heard LAG called a Trunk before…but I don’t like calling it that. When I say trunk i think of a Trunk VLAN Link or a connection that carries multiple VLANs across it.
LACP (Link Aggregation Control Protocol)
- Negotiation —LACP PDUs are sent down each active link with the objective of finding at the other ned of the link an LACP enabled port. Once each link has negotiated that is capable of LACP, it exchanges keys which are used to prevent other unwanted ports from joining the aggregation. Keeps the ports in a LAG consistent.
- Advantages — IEEE standard, and vendor agnostic.
PAgP (Port Aggregation Protocol)
- Negotiation — Similar to LACP.
- Vendor specific —PAgp is a Cisco proprietary protocol and will only work with Cisco devices. Special NICs are required as well.
- Advantages — Let me know in the comments please…..
- On — LAG is forced to form without negotiating
- Off — No LAG will be formed, no matter what is sent to port.
- Passive/Auto — Port will not initiate a LAG connection, but will listen for LAG negotiation packets.
- Active/Desirable — Port will form a LAG and initiate a negotiating to the partner port, LAG will form if and only if parter port is in On or Passive mode.
The switch I used was a Cisco 3750, you can also use this with any Switch that supports LAG or LACP(check with vendor on what they call it)
- Console into the Switch
- Create a Port-Channel itnerface
SW1# configure SW1(config)# interface port-channel 200 SW1(config-if)# switchport SW1(config-if)# switchport mode access SW1(config-if)# exit
- Configure each physical Link that will be part of the Port-Channel.
>SW1(config)# interface GigabitEthernet 0/1 SW1(config-if)# switchport SW1(config-if)# switchport mode access SW1(config-if)# channel-group 200 mode active SW1(config-if)# channel-protocol lacp SW1(config-if)# exit SW1(config)# interface GigabitEthernet 0/2 SW1(config-if)# switchport SW1(config-if)# switchport mode access SW1(config-if)# channel-group 200 mode active SW1(config-if)# channel-protocol lacp SW1(config-if)# exit SW1(config)# exit
- Double check the etherchannel for both physical lports.
SW1# show etherchannel 200 port-channel
- Don’t forget to save!
SW1# wr me
For my example I was using a HP DL380G6 which had an NIC card of HP Ethernet 1Gb 4-port 331FLR Adapter and running Windows Server 2008 R2 64-bit..
- Install latest NIC drivers, found here. Remember I am using Windows Server 2008 R2 64-bit.
- Install HP Network Configuration Utility, found here.
- Open the HP Network Configuration Utility and select the NIC ports you would like to “Team”, and Click Team.
- On the Team Properties dialog box, change the Team Type Selection to 802.3ad Dynamic with Fault Tolerance. Also name your Team Name to something appropriate like PChannel-100-toCore…
- Click OK and OK.
- This will create a new Network Adater.
- Edit this new Network Adapter with the IP information that you would like.
- Double check each Network Adapter associated with the NIC Teaming, you should see a new Protocol Adapter bound to the Network Adapter.
- Each Physical Link has to be the same link speed, for example you cannot mix a 10GB link with a 1GB link to get 11GB.
- Each Physical Link has to be connected to the same Switching Device(Can be stacked). Cannot span over separate switches. (Check out vPC!!)