1.拓扑图
pc5——pc12
192.168.1.10——192.168.1.80
pc5 pc9 vlan 10
pc6 pc10 vlan 20
pc7 pc11 vlan 30
pc8 pc12 vlan 40
2.要求 pc5 ping通 pc9, 交换机使用链路集合 ,使用生成树协议MSTP
配置如下:
[L1]配置
dis cu
version 7.1.075, Alpha 7571
sysname L1
#vlan配置
vlan 1
vlan 10
vlan 20
vlan 30
vlan 40
#MSTP配置
stp region-configuration
region-name kk1
instance 1 vlan 10
instance 2 vlan 20
instance 3 vlan 30
instance 4 vlan 40
active region-configuration
stp instance 1 root primary
stp global enable
#链路聚合组配置
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan 1 10 20 30 40
interface GigabitEthernet1/0/1
port link-mode bridge
port access vlan 10
combo enable fiber
interface GigabitEthernet1/0/2
port link-mode bridge
port access vlan 20
combo enable fiber
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 30
combo enable fiber
interface GigabitEthernet1/0/4
port link-mode bridge
port access vlan 40
combo enable fiber
#trunk配置
interface GigabitEthernet1/0/5
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20 30 40
combo enable fiber
port link-aggregation group 1

配置中详细描述了通过MSTP(Multiple Spanning Tree Protocol)实现交换机间的链路聚合和生成树,确保PC5能够通过交换机网络与PC9通信。配置涉及多个交换机(L1, L2, L3, L4),每个交换机的接口设置,包括VLAN划分、MSTP实例、链路聚合组和Trunk配置,最终实现了不同VLAN间的通信并确保网络连通性。

1万+

被折叠的 条评论
为什么被折叠?



