进行基础配置
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.优先级变化过程