08_MSTP(数通华为)
1. 网络拓扑
2. SW1配置
[SW1]vlan batch 10 20 30 40
[SW1]stp mode mstp
进入MSTP配置视图,MSTP域名为huawei,同时配置VLAN到实例的映射,并激活MSTP配置
[SW1]stp region-configuration
[SW1-mst-region]region-name huawei
[SW1-mst-region]instance 1 vlan 10 20
[SW1-mst-region]instance 2 vlan 30 40
[SW1-mst-region]active region-configuration
配置各实例的优先级,SW1配置为实例1CIST的主根、实例2的次根
[SW1]stp instance 0 priority 0(实例0,这是默认的系统实例,暂时不用理会)
[SW1]stp instance 1 priority 0 (或者 stp instance 1 root primary)
[SW1]stp instance 2 priority 4096 (或者stp instance 2 root secondary)
[SW1]stp enable
配置端口trunk模式
[SW1-GigabitEthernet0/0/22]port link-type trunk
[SW1-GigabitEthernet0/0/22]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/24]port link-type trunk
[SW1-GigabitEthernet0/0/24]port trunk allow-pass vlan all
3. SW2配置
[SW2] vlan batch 10 20 30 40
[SW2] stp mode mstp
[SW2] stp region-configuration
[SW2-mst-region] region-name huawei
[SW2-mst-region] instance 1 vlan 10 20
[SW2-mst-region] instance 2 vlan 30 40
[SW2-mst-region] active region-configuration
[SW1] stp instance 0 priority 4096
[SW2] stp instance 1 priority 4096
[SW2] stp instance 2 priority 0
[SW2] stp enable
[SW2-GigabitEthernet0/0/24] port link-type trunk
[SW2-GigabitEthernet0/0/24] port trunk allow-pass vlan all
[SW2-GigabitEthernet0/0/23] port link-type trunk
[SW2-GigabitEthernet0/0/23] port trunk allow-pass vlan all
4. SW3配置
[SW3] vlan batch 10 20 30 40
[SW3] stp mode mstp
[SW3] stp region-configuration
[SW3-mst-region] region-name huawei
[SW3-mst-region] instance 1 vlan 10 20
[SW3-mst-region] instance 2 vlan 30 40
[SW3-mst-region] active region-configuration
[SW3] stp enable
[SW3-GigabitEthernet0/0/22] port link-type trunk
[SW3-GigabitEthernet0/0/22] port trunk allow-pass vlan all
[SW3-GigabitEthernet0/0/23] port link-type trunk
[SW3-GigabitEthernet0/0/23] port trunk allow-pass vlan all
5. 查看配置
实例1 的23端口是阻塞的,实例2的22端口是阻塞的。
最新文章
- hdu.1104.Remainder(mod &;&; ‘%’ 的区别 &;&; 数论(k*m))
- 网络数据包收发流程(二):不配置NAPI的情况
- 【bzoj1029】道路抢修
- sellect、poll、epoll
- 《DNS加密更新》RHEL6
- 英文论文写作之讨论与结论Discussion and Conclusion
- Hibernate中,left join、inner join以及left join fetch区别(转)
- javascript/jquery读取和修改HTTP headers
- 使用JSR-303进行校验 @Valid
- Java面试题合集(一)
- how tomcat works 读书笔记(二)----------一个简单的servlet容器
- 项目管理软件 GanttProject 节日表
- BZOJ 3864 Hero meet devil 超详细超好懂题解
- cpp与其他语言相比较
- ios如何实现静音模式下声音仍然可以外放
- android TextView Unicde编码转换 android中一些特殊字符Unicode码值
- Python3基础 filter+lambda 筛选出1-20之间的奇数
- Eclipse创建Spring项目 未完
- win10拖拽的问题
- Object之wait
热门文章
- 6、VUE指令
- 理解 Kubernetes 的亲和性调度
- typing类型注解库
- HeRaNO's NOIP CSP Round Day 2 T3 ginkgo
- ";startIWDP";: true
- jQuery 前端复选框 全选 反选 下拉菜单联动
- 解决Ubuntu18.10 网络图标经常消失连不上网问题
- 滥用exchage远程调用域管理员API接口
- adb shell get/setprop, setenforce...
- docker部署redis集群