0
点赞
收藏
分享

微信扫一扫

华为设备配置BFD多跳检测

 

华为设备配置BFD多跳检测_BFD

1. 配置设备间的网络互连

[LSW1]vlan batch 10

[LSW1-GigabitEthernet0/0/2]port link-type hybrid  

[LSW1-GigabitEthernet0/0/2]port hybrid pvid vlan 10

[LSW1-GigabitEthernet0/0/2]port hybrid untagged vlan 10

[LSW1]int Vlanif 10

[LSW1-Vlanif10]ip add 10.1.1.1 24

[LSW2]vlan batch 10 20

[LSW2-GigabitEthernet0/0/1]port link-type hybrid  

[LSW2-GigabitEthernet0/0/1]port hybrid pvid vlan 10

[LSW2-GigabitEthernet0/0/1]port hybrid untagged vlan 10

[LSW2-GigabitEthernet0/0/3]port link-type hybrid        

[LSW2-GigabitEthernet0/0/3]port hybrid untagged vlan 20

[LSW2-GigabitEthernet0/0/3]port hybrid pvid vlan 20    

[LSW2]int Vlanif 10

[LSW2-Vlanif10]ip add 10.1.1.2 24

[LSW2-Vlanif10]int Vlanif 20      

[LSW2-Vlanif20]ip add 10.1.2.2 24

[LSW3]vlan batch 20

[LSW3-GigabitEthernet0/0/2]port link-type hybrid  

[LSW3-GigabitEthernet0/0/2]port hybrid pvid vlan 20

[LSW3-GigabitEthernet0/0/2]port hybrid untagged vlan 20

[LSW3]int Vlanif 20

[LSW3-Vlanif20]ip add 10.1.2.3 24

2. 配置静态路由,使LSW1、LSW3之间有可达路由

[LSW1]ip route-static 10.1.2.0 24 10.1.1.2

[LSW3]ip route-static 10.1.1.0 24 10.1.2.2

3. 配置多跳BFD检测

[LSW1]bfd  

[LSW1]bfd 1to3 bind peer-ip 10.1.2.3

[LSW1-bfd-session-1to3]discriminator local 10

[LSW1-bfd-session-1to3]discriminator remote 20

[LSW1-bfd-session-1to3]commit

[LSW3]bfd  

[LSW3]bfd 3to1 bind peer-ip 10.1.1.1  

[LSW3-bfd-session-3to1]discriminator local 20

[LSW3-bfd-session-3to1]discriminator remote 10

[LSW3-bfd-session-3to1]commit

4. 验证配置

 

华为设备配置BFD多跳检测_BFD_02

  对LSW1的GE0/0/2接口执行shutdown操作,模拟链路故障

[LSW1-GigabitEthernet0/0/2]shutdown

 

华为设备配置BFD多跳检测_网络_03


举报

相关推荐

0 条评论