将多台物理交换机组合成一台虚拟交换机的技术,即Virtual Switching Technology(虚拟交换技术),简称VST
在Device1上配置虚拟交换成员设备编号为1,并配置域编号为10,优先级为200
conf t
switch virtual member 1
y
domain 10
priority 200
exit
在Device1上创建虚拟交换链路接口1,并将端口tengigabitethernet1/1-1/2加入虚拟交换链路接口1
vsl-channel 1
exit
interface fortygigabitethernet 0/1-0/2
vsl-channel 1 mode on
exit
exit
write
y
配置Device1运行模式为堆叠模式
switch mode virtual
y
重启
在Device2上配置虚拟交换成员设备编号为2,并配置域编号为10,优先级为100
conf t
switch virtual member 2
y
domain 10
priority 100
exit
在Device2上创建虚拟交换链路接口1,并将端口tengigabitethernet1/1-1/2加入虚拟交换链路接口1
vsl-channel 1
exit
interface tengigabitethernet 1/1-1/2
vsl-channel 1 mode on
exit
exit
write
y
配置Device1运行模式为堆叠模式
switch mode virtual
y
重启
在Device1, Device2上配置心跳vlan2
conf t
mad fast-hello normal interval 2000 // MAD Fast-Hello报文发送周期为2000毫秒
mad fast-hello aggressive interval 500 //配置激进模式下的MAD Fast-Hello报文发送周期为500毫秒
mad fast-hello aggressive duration 120 //配置激进模式持续时间为120秒
配置VLAN2为MAD Fast-Hello的控制VLAN
vlan 2
name mad fast-hello
mad fast-hello control-vlan
exit
配置Trunk端口gigabitethernet0/0/24,1/0/24加入MAD Fast-Hello的控制VLAN2
interface gigabitethernet0/0/24,1/0/24
description 心跳线
switchport mode trunk
switchport trunk allowed vlan add 2
no spanning-tree enable
mad fast-hello vlan 2
exi
将MAD状态从Recovery状态恢复为Active状态
mad restore
在Device1上查看,已经形成环形堆叠系统,且Device1为主控设备
show switch virtual
Codes: L - local-device,I - isolate-device
Virtual Switch Mode : VIRTUAL
Virtual Switch DomainId : 10
Virtual Switch mac-address : 0001.7a6a.02b8
--------------- VST MEMBER INFORMATION ------------------
CODE MemberID Role Pri LocalVsl RemoteVsl
---- -------- ------ ---- --------------- ---------------
L 1 Member 200 vsl-channel 1/1 vsl-channel 0/1
2 Member 100 vsl-channel 1/1 vsl-channel 0/1