实验目的:
如图所示,该拓扑配置了vrrp主备备份,SW1为master,SW2为backup,当SW1或SW1到SW2间链路出现故障时,VRRP报文协商需要一定的协商周期。为了实现链路故障时快速切换,在链路中部署了BFD链路检测机制,实现当主用接口或者链路出现Down时,备用设备迅速切换为Master,承担网络流量,以减少故障对业务传输的影响。
一、交换机配置各接口ip地址,以及二层转发
SW1:
sys
sysname SW1
vlan batch 100 400
inter vlan 100
ip add 10.1.1.1 24
quit
inter vlan 400
ip add 172.16.1.2 24
inter g0/0/1
port link-type trunk
port trunk allow vlan 400
quit
inter g0/0/2
port link-type trunk
port trunk allow vlan 100
quit
SW2:
sys
sysname SW2
vlan batch 200 100
inter vlan 200
ip add 172.16.2.2 24
quit
inter vlan 100
ip add 10.1.1.2 24
inter g0/0/1
port link-type trunk
port trunk allow vlan 200
quit
inter g0/0/2
port link-t