MSTP(交换网络)配置

noteId: EDC76E0FE4034BC4AD166A1DE4B281BB · 原始路径:/ALL/世赛题目(练习) - 笔记/考核/11月份考核(第一次考核)/广东第三届省赛 C模块 题目/C-模块/MSTP(交换网络)配置.note

题目所述:IEEE 802.1s 协议生成树,因此就是配置 MSTP(手动配置 或是 使用 VTPv3进行同步)

题目没有要求使用VTPv3进行同步,因此这里选择手动进行配置

1、MSTP配置

1、DSW1配置为 VLAN1010 根桥,VLAN1020 备份根桥:

endconf tspanning-tree mode mstspanning-tree mst configuration name wsc2023.gdrevision 2instance 1 vlan 1010instance 2 vlan 1020instance 3 vlan 1002-1005exitspanning-tree mst 1 priority 0spanning-tree mst 2 priority 4096

2、DSW2配置为 VLAN1020 根桥,VLAN1010 备份根桥:

end

conf t
spanning-tree mode mst
spanning-tree mst configuration
name wsc2023.gd
revision 2
instance 1 vlan 1010
instance 2 vlan 1020instance 3 vlan 1002-1005

exit

spanning-tree mst 2 priority 0
spanning-tree mst 1 priority 4096

3、其它未规划的 VLAN,设置 ASW1 为根桥:

end

conf t
spanning-tree mode mst
spanning-tree mst configuration
name wsc2023.gd
revision 2
instance 1 vlan 1010
instance 2 vlan 1020instance 3 vlan 1002-1005
exitspanning-tree mst 3 priority 0

4、其它未规划的 VLAN,设置 ASW2 为 备份根桥:

end

conf t
spanning-tree mode mst
spanning-tree mst configuration
name wsc2023.gd
revision 2
instance 1 vlan 1010
instance 2 vlan 1020instance 3 vlan 1002-1005
exitspanning-tree mst 3 priority 4096

2、配置 portfast 和 bpduguard :

ASW1、ASW2 配置:

endconf t int g0/0spanning-tree portfast //启用 portfastspanning-tree bpduguard enable //启动 budpguardexiterrdisable recovery cause bpduguard //配置当接口在接收到BPDU报文被关闭后,允许自动恢复errdisable recovery interval 30 //配置接口自动恢复时间为 30 秒

3、关闭 DTP 消息:【ASW1 和 ASW2 上 的 G1/0 和 G1/1 接口】

ASW1、ASW2 配置:

endconf tint ra g1/0-1sw tr en dosw mo trswitchport nonegotiate    //配置 nonegotiate 前必须先配置 Trunkexit

4、链路聚合配置

在 DSW1 和 DSW2 之间的G0/0 和 G0/3 接口配置链路聚合:

将接口加入Po1,使用 PAgp协议进行配置(DSW1发起协商,DSW2不主动发起协商)

DSW1配置:

endconf tint ra g0/0,g0/3sw tr en dosw mo trshchannel-protocol pagpchannel-group 1 mode desirable no shexitint port-channel 1sw mo trsw tr en doexitdo show etherchannel summary

DSW2配置:

endconf tint ra g0/0,g0/3sw tr en dosw mo trshchannel-protocol pagpchannel-group 1 mode autono shexitint port-channel 1sw tr en dosw mo trexitdo show etherchannel summary