MSTP
1、将交换机之间的接口配置为TRUNK并允许所有VLAN通过,除了VLAN 1。 2、将链接PC的端口加入如图所示的VLAN。 3、全网开启MSTP 4、将VLAN 10 20加入instance 1中,并且使得vlan 10 20访问外网走SW1,如果SW1失效一定走SW2,将VLAN 30 40加入instance 2中,并且使得vlan 30 40访问外网走SW2,如果SW2失效一定走SW1。 5、将交换机上链接PC的端口配置为EP。 6、开启EP的交换机要配置BPDU防护。 具体配置: 1、将交换机之间的接口配置为TRUNK并允许所有VLAN通过,除了VLAN 1
SW1,SW2 interface e0/0/1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 interface e0/0/2 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 interface e0/0/3 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 SW3,SW4 interface e0/0/1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 interface e0/0/2 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 2 to 4094 2、将链接PC的端口加入如图所示的VLAN 先创建vlan SW1,SW2,SW3,SW4 vlan batch 10 20 30 40 SW3 interface e0/0/3 port link-type access port default vlan 10 interface e0/0/4 port link-type access port default vlan 20 interface e0/0/5 port link-type access port default vlan 30 SW4 interface e0/0/3 port link-type access port default vlan 10 interface e0/0/4 port link-type access port default vlan 40 3、全网开启MSTP SW1,SW2,SW3,SW4 stp mode mstp 4、将VLAN 10 20加入instance 1中,并且使得vlan 10 20访问外网走SW1,如果SW1失效一定走SW2,将VLAN 30 40加入instance 2中,并且使得vlan 30 40访问外网走SW2,如果SW2失效一定走SW1 SW1,SW2,SW3,SW4 stp region-configuration region-name huawei //每台交换机的region-name要配置为相同 instance 1 vlan 10 20 instance 2 vlan 30 40 active region-configuration //激活域配置,当修改配置时一样要敲 SW1 stp instance 1 root primary stp instance 2 root secondary SW2 stp instance 1 root secondary stp instance 2 root primary 5、将交换机上链接PC的端口配置为EP SW3 interface e0/0/3 stp edged-port enable interface e0/0/4 stp edged-port enable interface e0/0/5 stp edged-port enable SW4 interface e0/0/3 stp edged-port enable interface e0/0/4 stp edged-port enable 6、开启EP的交换机要配置BPDU防护。 SW3,SW4 stp bpdu-protection
——·扫描下方微信二维码,回复“实验手册”。即可领取完整电子版手册或为你答疑解惑。·——
|