实验8:VRRP实验
实验拓扑
MSTP区域配置
vlan batch 10 20
stp mode mstp
stp region-configuration
region-name mlishu
instance 1 vlan 10
instance 2 vlan 20
active region-configuration
根桥配置
LSW1作为VLAN 10的根桥,LSW2作为VLAN 20的根桥
LSW1
stp instance 1 root primary
stp instance 2 root secondary
LSW2
stp instance 1 root secondary
stp instance 2 root primary
接口配置
LSW1
int g0/0/2
port link-type trunk
port trunk allow-pass vlan all
int g0/0/3
port link-type trunk
port trunk allow-pass vlan all
int g0/0/4
port link-type trunk
port trunk allow-pass vlan all
LSW2
int g0/0/2
port link-type trunk
port trunk allow-pass vlan all
int g0/0/3
port link-type trunk
port trunk allow-pass vlan all
int g0/0/4
port link-type trunk
port trunk allow-pass vlan all
LSW3
int e0/0/1
port link-type trunk
port trunk allow-pass vlan all
int e0/0/2
port link-type trunk
port trunk allow-pass vlan all
int e0/0/3
port link-type access
port default vlan 10
int e0/0/4
port link-type access
port default vlan 20
LSW4
int e0/0/1
port link-type trunk
port trunk allow-pass vlan all
int e0/0/2
port link-type trunk
port trunk allow-pass vlan all
int e0/0/3
port link-type access
port default vlan 10
int e0/0/4
port link-type access
port default vlan 20
到这里位置做到了同VLAN间访问,加上下面可以做到跨VLAN访问