请自行完成:
1,两台交换机Switch1和Switch2分别创建vlan5和vlan10;
2,端口f0/4设置为access模式,并关联到vlan5
3,端口f0/5设置为access模式,并关联到vlan10
4,设置4台PC的ip地址。
Switch1(config)#interface port-channel 1
//创建以太通道,指定通道号,范围:1-6(对端通道号可以不一样)
Switch1(config-if)#exit
Switch1(config)#interface range f0/1-3 //配置端口f0/1-f0/3
Switch1(config-if-range)#channel-group 1 mode on //端口关联到以太通道
Switch1(config-if-range)#switchport trunk encapsulation dot1q //封装
Switch1(config-if-range)#switchport mode trunk //端口模式为trunk
Switch1(config-if-range)#exit
Switch1(config)#port-channel load-balance dst-ip //负载模式选择
Switch1(config)#interface port-channel 1 //再次进入以太通道1
Switch1(config-if)#switchport trunk encapsulation dot1q //封装
Switch1(config-if)#switchport mode trunk //端口模式为trunk
Switch2(config)#interface port-channel 1
//创建以太通道,指定通道号,范围:1-6(对端通道号可以不一样)
Switch2(config-if)#exit
Switch2(config)#interface range f0/2-4 //配置端口f0/2-f0/4
Switch2(config-if-range)#channel-group 1 mode on //端口关联到以太通道
Switch2(config-if-range)#switchport trunk encapsulation dot1q //封装
Switch2(config-if-range)#switchport mode trunk //端口模式为trunk
Switch2(config-if-range)#exit
Switch2(config)#port-channel load-balance dst-ip //负载模式选择
Switch2(config)#interface port-channel 1 //再次进入以太通道1
Switch2(config-if)#switchport trunk encapsulation dot1q //封装
Switch2(config-if)#switchport mode trunk //端口模式为trunk
Switch1#sh etherchannel summary //查看以太通道信息
验证:在同一vlan的两台PC相互ping(ping 192.168.5.2 -n 100)的过程中,断开交换机三条线路中的一条或两条,看看pc的通讯是否中断。