CE交換機把二層接口切換成三層接口
[*HUAWEI-Eth-Trunk1]undo portswitch
CE交換機把三層接口切換成二層接口
[*HUAWEI-Eth-Trunk1]portswitch
創(chuàng)建多個vlan
[Huawei]vlan bat 1 to 10
thunk 模式下允許指定vlan通過
[Huawei-Eth-Trunk1]port trunk allow-pass vlan 2(指定vlan2通過,all為全部通過)
access模式下劃分端口入vlan 2
[Huawei-Ethernet0/0/1]port default vlan 2
hybrid模式下劃分端口人vlan 2(打標簽)
[LSW2-Ethernet0/0/1]port hybrid pvid vlan 2
hybrid模式下剔除標簽
[LSW2-Ethernet0/0/1]port hybrid untagged vlan 2 3
hybrid模式下允許通過但不剔除標簽
[LSW2-Ethernet0/0/1]port hybrid tagged vlan 2 3
修改網(wǎng)橋優(yōu)先級
[SW1]stp priority 0(數(shù)值需設(shè)定為4096的倍數(shù))
設(shè)置網(wǎng)橋接口優(yōu)先級
[SW1-Ethernet0/0/1]stp port priority 0(數(shù)值為16的倍數(shù))
設(shè)置網(wǎng)橋為根橋
[SW1]stp root primary(優(yōu)先級將變?yōu)?)
查看根網(wǎng)橋
[SW1]display stp
開啟RSTP
[LSW1]stp enable
[LSW1]stp mode rstp
配置MSTP
[LSW1]stp mode mstp #stp模式設(shè)置為mstp
[LSW1]stp region-configuration #進入mstp設(shè)置模式
[LSW1-mst-region]region-name huawei #區(qū)域名為huawei
[LSW1-mst-region]revision-level 1 #版本級別為1
[LSW1-mst-region]instance 1 vlan 10 #定義實例1為vlan10
[LSW1-mst-region]instance 2 vlan 20 #定義實例2為vlan20
[LSW1-mst-region]active region-configuration #對mstp配置保存
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW1-mst-region]q
[LSW1]stp instance 1 root primary #定義本交換機為實例1的根
[LSW1]stp instance 2 root secondary #定義本交換機為實例2的備選根
聯(lián)系客服