首页 > 其他分享 >MSTP配置

MSTP配置

时间:2023-01-06 10:36:35浏览次数:53  
标签:10 vlan 20 配置 MSTP instance trunk port

全网所有交换机都要配置如下命令,包括接入,汇聚交换机:

stp region-configuration
      region-name Huawei
      revision-level 12
      instance 10 vlan 10
      instance 20 vlan 20
      active region-configuration

所有交换机互连端口都要配置trunk

port-group group-member g0/0/1 g0/0/2 eth-trunk 12

    port link-type trunk

    port trunk allow vlan all

    undo port trunk allow vlan 1

接入PC设置为边缘端口:

   stp edge enable

    port link-type access

    port default vlan 10

配置聚合口:

int eth-trunk 12

[SW2-Eth-Trunk12] trunkport GigabitEthernet 0/0/4 to 0/0/5

[SW2-Eth-Trunk12] load-balance src-dst-mac

配置主备根桥负载分担:

[SW2]stp instance 20 root primary

[SW2]stp instance 10 root secondary

 所有交换机创建VLAN 10 20

vlan batch 10 20

标签:10,vlan,20,配置,MSTP,instance,trunk,port
From: https://www.cnblogs.com/linux-china/p/17029685.html

相关文章