[SW2]interface g1/0/2 [SW2-GigabitEthernet1/0/2]stp cost 1000 [SW2-GigabitEthernet1/0/2]%Mar 21 22:16:05:399 2018 SW2 STP/6/STP_NOTIFIED_TC: Instance 0's port GigabitEthernet1/0/1 was notified a topology change.
步骤2:在SW2上查看STP接口状态,发现SW2的g1/0/2接口已经成为了新的闭塞端口
1 2 3 4
[SW2]display stp brief MST ID Port Role STP State Protection 0 GigabitEthernet1/0/1 ROOT FORWARDING NONE 0 GigabitEthernet1/0/2 ALTE DISCARDING NONE
4.把SW1连接PC的所有接口配置为边缘接口
什么是边缘端口?从阻塞状态直接到转发状态的端口
1 2 3
[SW1]interface g 1/0/3 [SW1-GigabitEthernet1/0/3]stp edged-port Edge port should only be connected to terminal. It will cause temporary loops if port GigabitEthernet1/0/3 is connected to bridges. Please use it carefully.
1 2 3 4
[SW1-GigabitEthernet1/0/3]int g 1/0/4 [SW1-GigabitEthernet1/0/4]stp edged-port Edge port should only be connected to terminal. It will cause temporary loops if port GigabitEthernet1/0/4 is connected to bridges. Please use it carefully.