思科交换机链路聚合配置

img


sw1与sw2之间配置动态聚合,sw2与sw3之间配置静态聚合
使PC1与PC3能互通,PC2与PC4能互通

1、SW1设置一个动态聚合模式的链路组、SW3设置一个静态模式的链路组、SW2设置两个链路组(一个静态、一个动态);
2、PC1与PC3通,PC2与PC4通,交换机配置接口的模式并将其加入相应的VLAN就可以,因为VLAN可以隔离广播域。
命令:

int f0/1
switchport mode access
switchport access vlan 10
exit
int f0/2
switchport mode access
switchport access vlan 20
exit
exit
write

SW2:
en
config t
hostname SW2
int f0/3
channel-group 1 mode active
exit
int f0/4
channel-group 1 mode active
exit
int f0/5
channel-group 2 mode on
exit
int f0/6
channel-group 2 mode on
exit
int port-channel 1
switchport mode trunk
switchport trunk allowed vlan 10
switchport trunk allowed vlan 20
exit
int port-channel 2
switchport mode trunk
switchport trunk allowed vlan 10
switchport trunk allowed vlan 20
exit
vlan 10
exit
vlan 20
exit
exit
write

SW3:
en
config t
hostname SW3
int f0/5
channel-group 2 mode on
exit
int f0/6
channel-group 2 mode on
exit
int port-channel 2
switchport mode trunk
switchport trunk allowed vlan 10
switchport trunk allowed vlan 20
exit
vlan 10
exit
vlan 20
exit
int f0/1
switchport mode access
switchport access vlan 10
exit
int f0/2
switchport mode access
switchport access vlan 20
exit
exit
write

验证:

img

img

望采纳,谢谢!