SW-1、SW-2 通过 VSF 技术形成一台虚拟的逻辑设备 SW-Core。用户通过对该虚拟设备进行管理,从而实现对虚拟设备中所有物理设备的管理两台设备VSF 逻辑域为10;其中 SW-1的成员编号为1,SW-2的成员编号为2;正常情况下SW-2负责管 理整个 VSF;SW-1与SW-2之间建立一个vsf port-group,其编号为1,每个vsf port-group 绑定e1/0/27和e1/0/28两个万兆光端口。对逻辑设备 SW-Core启用 VSF 自动合并功能。开启 BFD MAD分裂检测功能,BFD vlan 为4000,SW-1BFDMAD 接口IP地址为:8.8.8.9/30,SW-2 BFDMAD 接口IP地址为:8.8.8.10/30。
SW-1(config)#vsf member 1
SW-1(config)#vsf priority 1
SW-1(config)#vsf port-group 1
SW-1(config-vsf-port1)#vsf port-group interface ethernet 1/0/27
SW-1(config-vsf-port1)#vsf port-group interface ethernet 1/0/28
SW-1(config-vsf-port1)#exit
SW-1(config)#switch convert mode vsf
The device will convert to vsf mode and reboot. Do you want to convert the content of running-config to make it available in vsf mode? [Y/N]:Y
SW-2(config)#vsf member 2
SW-2(config)#vsf priority 32
SW-2(config)#vsf port-group 1
SW-2(config-vsf-port1)#vsf port-group interface ethernet 1/0/27
SW-2(config-vsf-port1)#vsf port-group interface ethernet 1/0/28
SW-2(config-vsf-port1)#exit
SW-2(config)#switch convert mode vsf
The device will convert to vsf mode and reboot. Do you want to convert the content of running-config to make it available in vsf mode? [Y/N]:Y
当两台三层交换机合并成一台时修改交换机名称为SW-Core
CS6200-28X-EI(config)#hostname SW-Core
SW-Core(config)#vsf auto-merge enable //自动合并功能
SW-Core(config)#vlan 4000 //创建bfd vlan
SW-Core(config-vlan4000)#interface vlan 4000
SW-Core(config-if-vlan4000)#vsf mad bfd enable
SW-Core(config-if-vlan4000)#vsf mad ip address 8.8.8.9 255.255.255.252 member 1
SW-Core(config-if-vlan4000)#vsf mad ip address 8.8.8.10 255.255.255.252 member 2