华为BFD多跳检测关联静态路由

实验拓扑

在这里插入图片描述拓扑说明:
两台ne40上联口做vrrp网关备份。ne40-1充当主设备,ne40-2充当备用设备。
交换机sw1配置bfd关联静态路由,实现当ne40-1与交换机sw2之间链路故障时,sw1到目标网段的流量能够快速切换。
具体接口配置信息,如拓扑所示。
具体配置:
sw1:

sys
sys sw1
vlan 192
vlan 10
q
int vl192
ip add 192.168.1.254 24
int g0/0/1
p l a
p d v 192
int vl10
ip ad 10.1.1.3 24
int g0/0/2
p l a
p d v 10
int g0/0/3
p l a
p d v 10
bfd
q
bfd 1-2 bind peer-ip 100.100.100.97 source-ip 10.1.1.3 auto
ip route-static 0.0.0.0 0.0.0.0 10.1.1.1 track bfd-session 1-2
ip route-s 0.0.0.0 0 10.1.1.2 pre 70

ne40-1:

sys im
sys ne40-1
int ethe1/0/1
ip ad 100.100.100.99 24
vrrp vrid 1 virtual-ip 100.100.100.100
vrrp vrid 1 pri 120
q
int ethe1/0/0
ip ad 10.1.1.1 24
int ethe1/0/2
portswitch
ip route-s 6.6.6.6 32 100.100.100.97
ip route-s 192.168.1.0 24 10.1.1.3

ne40-2:

sys im
sys ne40-2
int ether1/0/1
ip ad 100.100.100.98 24
vrrp vrid 1 virtual-ip 100.100.100.100
q
int ethe1/0/0
ip ad 10.1.1.2 24
int ethe1/0/2
portswitch
ip route-s 6.6.6.6 32 100.100.100.97
ip route-s 192.168.1.0 24 10.1.1.3

sw2:

sys
sys ce1
vlan 6
q
int vlan 666
ip ad 100.100.100.97 24
int ethe0/0/1
p l a
p d v 666
int ethe0/0/2
p l a
p d v 666
q
int lo 1
ip add 6.6.6.6 32
qu
ip route-s 192.168.1.0 24 100.100.100.100 
bfd
q
bfd 2-1 bind peer-ip 10.1.1.3 source-ip 100.100.100.97 auto

查看vrrp状态:
r在这里插入图片描述在这里插入图片描述ne40-1角色为master,ne40-2为backup。
在这里插入图片描述通过pc ping 交换机sw2环回口6.6.6.6,可通。此时流量转发通过ne40-1在这里插入图片描述在这里插入图片描述在这里插入图片描述将ne40-1上联口eth1/0/1shutdown后。
在这里插入图片描述路由走向通过ne40-2转发。
此时ne40-2的角色为master

在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值