close
Creating the Channel Group on SW1
SW1#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#interface range fastEthernet 10/11 - 14
SW1(config-if-range)#no ip address
SW1(config-if-range)#switchport
SW1(config-if-range)#switchport trunk encapsulation dot1q
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#switchport mode dynamic desirable
SW1(config-if-range)#switchport trunk allowed vlan remove 2-400,403-1005
SW1(config-if-range)#channel-group 1 mode desirable
SW1(config-if-range)#no shutdown
SW1(config-if-range)#end
SW1#
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#interface range fastEthernet 10/11 - 14
SW1(config-if-range)#no ip address
SW1(config-if-range)#switchport
SW1(config-if-range)#switchport trunk encapsulation dot1q
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#switchport mode dynamic desirable
SW1(config-if-range)#switchport trunk allowed vlan remove 2-400,403-1005
SW1(config-if-range)#channel-group 1 mode desirable
SW1(config-if-range)#no shutdown
SW1(config-if-range)#end
SW1#
Creating the Channel Group on SW2
SW2(config)#interface range fastEthernet 3/11 - 14
SW2(config-if-range)#no ip address
SW2(config-if-range)#switchport
SW2(config-if-range)#switchport trunk encapsulation dot1q
SW2(config-if-range)#switchport mode trunk
SW2(config-if-range)#switchport mode dynamic desirable
SW2(config-if-range)#switchport trunk allowed vlan remove 2-400,403-1005
SW2(config-if-range)#channel-group 1 mode desirable
Creating a port-channel interface Port-channel1
SW2(config-if-range)#no shutdown
SW2(config-if-range)#end
SW2#
SW2(config-if-range)#no ip address
SW2(config-if-range)#switchport
SW2(config-if-range)#switchport trunk encapsulation dot1q
SW2(config-if-range)#switchport mode trunk
SW2(config-if-range)#switchport mode dynamic desirable
SW2(config-if-range)#switchport trunk allowed vlan remove 2-400,403-1005
SW2(config-if-range)#channel-group 1 mode desirable
Creating a port-channel interface Port-channel1
SW2(config-if-range)#no shutdown
SW2(config-if-range)#end
SW2#
Verifying the Configuration on SW2
SW2#show run interface fastEthernet 3/11
Building configuration...
Current configuration : 182 bytes
!
interface FastEthernet3/11
no ip address
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,401,402
channel-group 1 mode desirable
end
Building configuration...
Current configuration : 182 bytes
!
interface FastEthernet3/11
no ip address
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,401,402
channel-group 1 mode desirable
end
Output of the show interfaces port-channel and show interfaces trunk Commands on SW1
SW1#show interfaces port-channel 1
Port-channel1 is up, line protocol is up
Hardware is EtherChannel, address is 0009.1267.9ffa (bia 0009.1267.9ffa)
MTU 1500 bytes, BW 400000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Full-duplex, 100Mb/s
Members in this channel: Fa10/11 Fa10/12 Fa10/13 Fa10/14
!output truncated
SW1#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Po1 desirable 802.1q trunking 1
Port Vlans allowed on trunk
Po1 1,401-402
Port Vlans allowed and active in management domain
Po1 1,401-402
Port Vlans in spanning tree forwarding state and not pruned
Po1 1,401-402
SW1#
Port-channel1 is up, line protocol is up
Hardware is EtherChannel, address is 0009.1267.9ffa (bia 0009.1267.9ffa)
MTU 1500 bytes, BW 400000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Full-duplex, 100Mb/s
Members in this channel: Fa10/11 Fa10/12 Fa10/13 Fa10/14
!output truncated
SW1#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Po1 desirable 802.1q trunking 1
Port Vlans allowed on trunk
Po1 1,401-402
Port Vlans allowed and active in management domain
Po1 1,401-402
Port Vlans in spanning tree forwarding state and not pruned
Po1 1,401-402
SW1#
全站熱搜