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

发布于:2022-08-02 ⋅ 阅读:(309) ⋅ 点赞:(0)

在这里插入图片描述

  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

在这里插入图片描述


网站公告

今日签到

点亮在社区的每一天
去签到