This configuration needs to be done on both switches. In this example, we making GigabitEthernet0/1 and 0/2 into a port channel.
Switch(config)#inter ran gi0/1-2Switch(config-if-range)#channel-group 1 mode activeSwitch(config-if-range)#Creating a port-channel interface Port-channel 1%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to up%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up%LINK-5-CHANGED: Interface Port-channel1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
It’s that easy.
You can then configure the new Port-Channel interface to be a trunk port and to carry encapsulated traffic (VLans).