
进行基础配置


1.将交换机互联接口配置为trunk口
sw1
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 2 to 4094
sw2
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 2 to 4094
sw3
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
将连接pc的口配置为access口
sw1
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
sw2
interface GigabitEthernet0/0/2
port link-type access
port default vlan 10
2.据题目要求配置mstp生成树,并找出阻塞口
sw1
stp mode mstp

无阻塞口
sw2
stp mode mstp

sw3
stp mode mstp

3.断掉一口,不会产生影响
interface GigabitEthernet0/0/3
shutdown

4.配置sw1优先级为0
sw1
stp priority 0

5.优先级变化过程
配置MSTP生成树实验
本文档详细记录了一次STP实验的过程,包括交换机的接口配置为trunk口,允许所有VLAN通过,以及将连接PC的接口配置为access口。实验中,配置了MSTP生成树模式,并在不同交换机上执行,确认无阻塞口。通过关闭特定接口和调整交换机优先级,观察网络的影响和变化。
2623

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



