华为设备配置BFD状态与接口状态联动

在这里插入图片描述

  1. 配置LSW1和LSW2的直连接口IP地址
    [LSW1]vlan 10
    [LSW1-GigabitEthernet0/0/3]port link-type hybrid
    [LSW1-GigabitEthernet0/0/3]port hybrid pvid vlan 10
    [LSW1-GigabitEthernet0/0/3]port hybrid untagged vlan 10
    [LSW1]int Vlanif 10
    [LSW1-Vlanif10]ip add 10.1.1.1 24
    [LSW2]vlan batch 10
    [LSW2-GigabitEthernet0/0/4]port link-type hybrid
    [LSW2-GigabitEthernet0/0/4]port hybrid pvid vlan 10
    [LSW2-GigabitEthernet0/0/4]port hybrid untagged vlan 10
    [LSW2-Vlanif10]ip add 10.1.1.2 24

  2. 配置BFD单跳检测
    [LSW1]bfd
    [LSW1]bfd 1to2 bind peer-ip default-ip interface GigabitEthernet 0/0/3
    [LSW1-bfd-session-1to2]discriminator local 10
    [LSW1-bfd-session-1to2]discriminator remote 20
    [LSW1-bfd-session-1to2]commit
    [LSW2]bfd
    [LSW2]bfd 2to1 bind peer-ip default-ip interface GigabitEthernet 0/0/4
    [LSW2-bfd-session-2to1]discriminator local 20
    [LSW2-bfd-session-2to1]discriminator remote 10
    [LSW2-bfd-session-2to1]commit
    在这里插入图片描述

  3. 配置BFD状态与接口状态联动
    [LSW1]bfd 1to2
    [LSW1-bfd-session-1to2]process-interface-status
    [LSW2]bfd 2to1
    [LSW2-bfd-session-2to1]process-interface-status

  4. 验证配置
    在这里插入图片描述

对LSW3的GE0/0/4接口执行shutdown操作,让BFD状态Down
[LSW3-GigabitEthernet0/0/4]shutdown

在这里插入图片描述

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值