[Switch2-Ethernet0/2]duplex full
[Switch2-Ethernet0/2]speed 100
[Switch2-Ethernet0/2]port link-type trunk
[Switch2-Ethernet0/2]port trunk permit vlan all
聚合操作:
[Switch1]link-aggregation ethernet0/1 to ethernet0/2 both
[Switch2]link-aggregation ethernet0/1 to ethernet0/2 both
[Switch1]display link-aggregation ethernet0/1
[Switch1]undo link-aggregation all
交换机1上:
[Switch1]vlan 10
[Switch1-vlan10]port e0/5
交换机2上:
[Switch1]vlan 10
[Switch1-vlan10]port e0/5
PCA上:
[root@PCA root]#ifconfig eth0 192.168.1.1 netmask 255.255.255.0
[root@PCA root]#route add default gw 192.168.1.254
PCB上:
[root@PCA root]#ifconfig eth0 192.168.1.2 netmask 255.255.255.0
[root@PCA root]#route add default gw 192.168.1.254
在一台计算机上Ping另一台计算机,看能否Ping通。
断开交换机上一条线路,在一台计算机上Ping另一台计算机,看能否Ping通。
合上交换机的这条线路,断开另一条线路,,看能否Ping通。
责任编辑:小草