STP 及其优化 实验拓扑图: R1Core1ED-SWCore2 实验步骤: 1
设置SW1,SW2,SW3主机名分别为Core1,Core2, ED-SW 2
把Core1与Core2间的两条链路绑定成etherchannel2,并设置成Trunk mode Core1: interface range fa0/23 - 24 switchport trunk encapsulation dot1q //支持ISL及dot1Q的交换机必须设置trunk的封装协议
低端的C2950,C2960,C2918只支持dot1Q,无此命令
switch mode trunk //接口设置为Trunk模式
channel-group 2 mode on //接口加入 Etherchannel2
Creating a port-channel interface Port-channel 2 //系统提示自动创建 port-channel2
interface Port-channel2 // Port-channel2 接口配置必须同物理接口一致
switchport trunk encapsulation dot1q switchport mode trunk Core2: interface range fa0/23 - 24 switchport trunk encapsulation dot1q switch mode trunk channel-group 2 mode on Creating a port-channel interface Port-channel 2 interface Port-channel2 switchport trunk encapsulation dot1q switchport mode trunk 3
验证 ether