华为的MSTP+VRRP配置
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
AR-1
Info: Current terminal monitor is off.
Enter system view, return user view with Ctrl+Z.
[Huawei]interface ethernet 0/0/0
[Huawei-Ethernet0/0/0]ip
[Huawei-Ethernet0/0/0]interface ethernet0/0/1
[Huawei-Ethernet0/0/1]ip
[Huawei-Ethernet0/0/1]q
[Huawei]interface loopback 0
[Huawei-LoopBack0]ip
[Huawei-LoopBack0]q
[Huawei]ip
[Huawei]ip
[Huawei]
[Huawei]
[Huawei]ip
[Huawei]
[Huawei]
LSW2
Info: Current terminal monitor is off.
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]
[Huawei]vlan batch 11 21 22 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]interface vlanif 11
[Huawei-Vlanif11]ip
[Huawei-Vlanif11]vrrp vrid 1 virtual-ip
[Huawei-Vlanif11]vrrp vrid 1 priority 200
[Huawei-Vlanif11]vrrp vrid 1 track interface ethernet 0/0/5 reduced 150 [Huawei-Vlanif11]q
[Huawei]interface vlanif 21
[Huawei-Vlanif21]ip
[Huawei-Vlanif21]vrrp vrid 2 virtual-ip
[Huawei-Vlanif21]vrrp vrid 2 priority 200
[Huawei-Vlanif21]vrrp vrid 2 track interface ethernet 0/0/5 reduced 150 [Huawei-Vlanif21]q
[Huawei]interface vlanif 22
[Huawei-Vlanif22]ip
[Huawei-Vlanif22]vrrp vrid 3 virtual-ip
[Huawei-Vlanif22]vrrp vrid 3 priority 80
[Huawei-Vlanif22]q
[Huawei]interface ethernet 0/0/1
[Huawei-Ethernet0/0/1]port link-type trunk
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan 11 21
[Huawei-Ethernet0/0/1]interface ethernet 0/0/2
[Huawei-Ethernet0/0/2]port link-type trunk
[Huawei-Ethernet0/0/2]port trunk allow-pass vlan 11 22
[Huawei-Ethernet0/0/2]interface ethernet 0/0/3
[Huawei-Ethernet0/0/3]port link-type trunk
[Huawei-Ethernet0/0/3]port trunk allow-pass vlan 11 21 22
[Huawei-Ethernet0/0/3]q
[Huawei]stp enable
[Huawei]stp mode mstp
[Huawei]stp region-configuration
[Huawei-mst-region]region-name 001
[Huawei-mst-region]instance 1 vlan 11
[Huawei-mst-region]instance 2 vlan 21
[Huawei-mst-region]instance 3 vlan 22
[Huawei-mst-region]active region-configuration
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-mst-region]q
[Huawei]stp instance 1 root primary
[Huawei]stp instance 2 root primary
[Huawei]stp instance 3 root secondary
[Huawei]q
Enter system view, return user view with Ctrl+Z.
[Huawei]interface vlanif 2
[Huawei-Vlanif2]ip
[Huawei-Vlanif2]interface ethernet 0/0/5
[Huawei-Ethernet0/0/5]port link-type access
[Huawei-Ethernet0/0/5]port default vlan 2
[Huawei-Ethernet0/0/5]interface vlanif 3
[Huawei-Vlanif3]ip
[Huawei-Vlanif3]interface ethernet0/0/4
[Huawei-Ethernet0/0/4]port link-type access
[Huawei-Ethernet0/0/4]port default vlan 3