0
点赞
收藏
分享

微信扫一扫

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

华为设备配置BFD状态与接口状态联动_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

 

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

3. 配置BFD状态与接口状态联动

[LSW1]bfd 1to2

[LSW1-bfd-session-1to2]process-interface-status

[LSW2]bfd 2to1

[LSW2-bfd-session-2to1]process-interface-status

4. 验证配置

 

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

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

[LSW3-GigabitEthernet0/0/4]shutdown

 

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


举报

相关推荐

0 条评论