EtherChannel is a port link aggregation technology or port-channel architecture used primarily on Cisco switches. It allows grouping of several physical Ethernet links to create one logical Ethernet link for the purpose of providing fault-tolerance and high-speed links between switches, routers and servers(wiki).
![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LA8bJEHYZEGCK8WGuvC%2F-LBIrCO7ccUoqRJVT2lP%2F-LBIrEGeCbU3E3m-1fP8%2Fimage.png?alt=media&token=8ea2d034-2ed1-446f-a80b-d0d4a1583411)
Enter a caption for this image (optional)
There are two protocols in ether-channel:
-
PAGP (Cisco proprietary )
-
on
-
auto
-
desirable
-
-
LACP(Industry Standard)(802.3AD)
-
on
-
active
-
passive
-
To implement layer 2 PAGP:
SW1# conf t
SW1(config)#int range fa0/1-2
SW1(config-if)#channel-group 1 mode auto
SW1(config-if)#no shut
SW2# conf t
SW2(config)#int range fa0/1-2
SW2(config-if)#channel-group 1 mode desirable
SW2(config-if)#no shut
To implement layer 2 LACP:
SW1# conf t
SW1(config)#int range fa0/1-2
SW1(config-if)#channel-group 1 mode active
SW1(config-if)#no shut
SW2# conf t
SW2(config)#int range fa0/1-2
SW2(config-if)#channel-group 1 mode passive
SW2(config-if)#no shut
![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LA8bJEHYZEGCK8WGuvC%2F-LBIk8coTkt6EITVMiLR%2F-LBInyTPypZLROqN2aD5%2Fimage.png?alt=media&token=8e5b0ae6-07c0-4049-ac2b-d84744e48e1f)
Layer 3 Etherchannel
Enter a caption for this image (optional)
In layer3, we use virtual ip address in port channel to define PAGP:
SW1# conf t
SW1(config)#interface port-channel 1
SW1(config)#no switchport
SW1(config)#ip address 10.1.1.1 255.255.255.0
SW1(config)#interface range fa0/1-2
SW1(config-if)#channel-group 1 mode desirable
SW2# conf t
SW2(config)#interface port-channel 1
SW2(config)#no switchport
SW2(config)#ip address 10.1.1.2 255.255.255.0
SW2(config)#interface range fa0/1-2
SW2(config-if)#channel-group 1 mode auto