BPDU保护

放肆的年华 提交于 2020-02-15 09:17:32

拓扑图如下:
在这里插入图片描述

方法1(使用全局配置开启边缘端口,再启动BPDU保护,不过后面要关闭g 0/0/1和g 0/0/2的边缘端口)

[Huawei]stp edged-port default //开启交换机上的边缘端口,作用域为所有接口
[Huawei]stp bpdu-protection //实施BPDU保护,对边缘端口生效

//以下出现了问题,g0/0/1 和g 0/0/2关闭了,因为上面两条配置都是全局配置的,g0/0/1 和g 0/0/2不应该开启边缘端口的,当它们启动BPDU保护时,本来它们就会收到BPDU,因而被关闭了

Jan 31 2020 22:07:48-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 5, th
e change loop count is 0, and the maximum number of records is 4095.
Jan 31 2020 22:07:49-08:00 Huawei %%01MSTP/4/BPDU_PROTECTION(l)[0]:This edged-po
rt GigabitEthernet0/0/1 that enabled BPDU-Protection will be shutdown, because i
t received BPDU packet!
Jan 31 2020 22:07:50-08:00 Huawei %%01MSTP/4/BPDU_PROTECTION(l)[1]:This edged-po
rt GigabitEthernet0/0/2 that enabled BPDU-Protection will be shutdown, because i
t received BPDU packet!
Jan 31 2020 22:07:50-08:00 Huawei %%01PHY/1/PHY(l)[2]: GigabitEthernet0/0/1:
change status to down
Jan 31 2020 22:07:50-08:00 Huawei %%01PHY/1/PHY(l)[3]: GigabitEthernet0/0/2:
change status to down
Jan 31 2020 22:07:51-08:00 Huawei %%01PHY/1/PHY(l)[4]: GigabitEthernet0/0/1:
change status to down
Jan 31 2020 22:07:51-08:00 Huawei %%01PHY/1/PHY(l)[5]: GigabitEthernet0/0/2:
change status to down
Jan 31 2020 22:07:53-08:00 Huawei %%01PHY/1/PHY(l)[6]: GigabitEthernet0/0/1:
change status to down User interface con0 is available

解决方法(关闭两个接口的边缘端口):
[Huawei-GigabitEthernet0/0/1]stp edged-port disable //关闭端口1的边缘端口
[Huawei-GigabitEthernet0/0/1]undo shutdown //重新开启端口1
[Huawei-GigabitEthernet0/0/2]stp edged-port disable
[Huawei-GigabitEthernet0/0/2]undo shutdown

方法2(对g 0/0/3和g 0/0/4接口单独开启边缘端口,再启动BPDU保护)
[Huawei]int g0/0/3
[Huawei-GigabitEthernet0/0/3]stp edged-port enable
[Huawei-GigabitEthernet0/0/3]int g0/0/4
[Huawei-GigabitEthernet0/0/4]stp edged-port enable
[Huawei-GigabitEthernet0/0/4]quit
[Huawei]stp bpdu-protection

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!