拓扑图
配置命令
SW1
enable
vlan database
vlan 10
vlan 20
exit
conf t
hostname SW1
int f0/1
switchport mode access
switchport access vlan 10
exit
int f0/2
switchport mode access
switchport access vlan 20
exit
int range g0/1-2
channel-group 3 mode on
exit
int port-channel 3
switchport mode trunk
end
show running-config
SW2
enable
vlan database
vlan 10
vlan 20
exit
conf t
hostname SW2
int f0/1
switchport mode access
switchport access vlan 10
exit
int f0/2
switchport mode access
switchport access vlan 20
exit
int range g0/1-2
channel-group 3 mode on
exit
int port-channel 3
switchport mode trunk
end
show running-config
show etherchannel summary
show etherchannel port-channel
实验结果
SW1
SW2
Ping