闫辉 发表于 2020-11-19 17:04:53

根端口修改:

让SW2 G0/0/2口做根端口,可以把 SW2的0/0/1口cost值改大,或者把0/0/02口改小。也可以把SW1的0/0/01口port id 优先级改大 ,或者把S1的0/0/0 2口 port id优先级改小都可以。默认是128,改16的倍数,调大改为 144
https://upload-images.jianshu.io/upload_images/24325874-03870235165ca068.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


在SW1上面display stp发现优先级已经改为144
https://upload-images.jianshu.io/upload_images/24325874-4fc709436c6634b0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


现在在SW2上面看,0/0/2端口是根端口
https://upload-images.jianshu.io/upload_images/24325874-2d16e308ece824f6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


刚才看到的SW3上面,0/0/3 0/0/4接口是非指定接口。现在修改0/0/3 4接口为指定接口,把SW3 的根端口 cost值改小,默认Ethernet 对应的20000而 G Ethernet对应都是20000。保证SW3 发送BPDU 保证比SW2 小 所以改为小于 20000.display stp interface GigabitEthernet 0/0/1
https://upload-images.jianshu.io/upload_images/24325874-24498fee2e13fbe5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


修改Cost值为19999
https://upload-images.jianshu.io/upload_images/24325874-48b624a02e642646.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


现在查看0/0/3 0/0/4为指定端口。
https://upload-images.jianshu.io/upload_images/24325874-e310fb1fe4b04be2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


实验结束。

liwei2020 发表于 2020-11-19 17:32:45

感謝分享
页: [1]
查看完整版本: 根端口修改: