LACP Configuration:
SW1:
conf t
default int range fa 0/1-2 //setting the int to default
int range fa 0/1-2
shut
channel-protocol lacp //setting int bundle lacp
channel-group 1 mode active //mode active
no shut //power the int
exit
int po1 //select created portchannel
switchport mode trunk //setting po1 to trunk
spanning-tree vlan 1 root primary //root bridge for vlan 1
exit
show ip int brief //to check newly created port channel
show etherchannel summary //show etherchannel details/status
show spanning-tree //show port channel spanning-tree instance
SW2:
conf t
default int range fa 0/1-2 //setting the int to default
int range fa 0/1-2
shut
channel-protocol lacp //setting int bundle lacp
channel-group 2 mode active //mode active
no shut //power the int
exit
int po2 //select created port channel
switchport mode trunk //setting po2 to trunk
spanning-tree vlan 1 root secondary //root bridge for vlan 1
exit
show ip int brief //to check newly created port channel
show etherchannel summary //show etherchannel details/status
show spanning-tree //show port channel spanning-tree instance
PAgP configuration:
SW1:
conf t
default int range fa 0/3-4 //setting the int to default
int range fa 0/3-4
shut
channel-protocol pagp //setting int bundle lacp
channel-group 2 mode auto //mode active
no shut //power the int
exit
int po2 //select created portchannel
switchport mode trunk //setting po2 to trunk
spanning-tree vlan 1 root primary //root bridge for vlan 1
exit
show ip int brief //to check newly created port channel
show etherchannel summary //show etherchannel details/status
show spanning-tree //show port channel spanning-tree instance
SW3:
conf t
default int range fa 0/3-4 //setting the int to default
int range fa 0/3-4
shut
channel-protocol pagp //setting int bundle lacp
channel-group 1 mode desirable //mode active
no shut //power the int
exit
int po1 //select created port channel
switchport mode trunk //setting po1 to trunk
exit
show ip int brief //to check newly created port channel
show etherchannel summary //show etherchannel details/status
show spanning-tree //show port channel spannin-tree instance
Etherchannel Mode On:
SW2:
conf t
default int range fa 0/23-24 //setting the int to default
int range fa 0/23-24
shut
channel-group 3 mode on //mode on
no shut //power the int
exit
int po3 //select created portchannel
switchport mode trunk //setting po3 to trunk
spanning-tree vlan 1 root secondary //root bridge for vlan 1
exit
show ip int brief //to check newly created port channel
show etherchannel summary //show etherchannel details/status
show spanning-tree //show port channel spanning-tree instance
SW3:
conf t
default int range fa 0/23-24 //setting the int to default
int range fa 0/23-24
shut
channel-group 3 mode on //mode active
no shut //power the int
exit
int po3 //select created portchannel
switchport mode trunk //setting po3 to trunk
exit
show ip int brief //to check newly created port channel
show etherchannel summary //show etherchannel details/status
show spanning-tree //show port channel spanning-tree instance