BFD多跳检测

4.1 问题

1)如图配置设备的IP地址

2)在R1和R3之间建立BFD会话,快速检测链路故障

3)查看R1和R3之间的BFD会话状态的信息

4.2 方案

搭建实验环境,如图-4所示。

BFD多跳检测

 

步骤

实现此案例需要按照如下步骤进行。

1)配置R1


  1. Huawei>system-view
  2. [Huawei]sysname R1
  3. [R1]interface GigabitEthernet 0/0/0
  4. [R1-GigabitEthernet0/0/0]ip address 192.168.12.1 24
  5. [R1-GigabitEthernet0/0/0]quit
  6. [R1]ip route-static 192.168.23.0 24 192.168.12.2

2)配置R2


  1. <Huawei>system-view     
  2. [Huawei]sysname R2
  3. [R2]interface GigabitEthernet 0/0/1
  4. [R2-GigabitEthernet0/0/1]ip address 192.168.12.2 24
  5. [R2-GigabitEthernet0/0/1]quit
  6. [R2]interface GigabitEthernet 0/0/0
  7. [R2-GigabitEthernet0/0/0]ip address 192.168.23.2 24
  8. [R2-GigabitEthernet0/0/0]quit

3)配置R3


  1. <Huawei>system-view     
  2. [Huawei]sysname R3
  3. [R3]interface GigabitEthernet 0/0/1
  4. [R3-GigabitEthernet0/0/1]ip address 192.168.23.3 24
  5. [R3-GigabitEthernet0/0/1]quit
  6. [R3]ip route-static 192.168.12.0 24 192.168.23.2

4)配置BFD-R1


  1. [R1]bfd
  2. [R1-bfd]quit
  3. [R1]bfd 13 bind peer 192.168.23.3
  4. [R1-bfd-session-13]discriminator local 1
  5. [R1-bfd-session-13]discriminator remote 3
  6. [R1-bfd-session-13]commit
  7. [R1-bfd-session-13]quit

5)配置BFD-R3


  1. [R3]bfd
  2. [R3-bfd]quit
  3. [R3]bfd 13 bind peer 192.168.12.1
  4. [R3-bfd-session-13]discriminator local 3
  5. [R3-bfd-session-13]discriminator remote 1
  6. [R3-bfd-session-13]commit
  7. [R3-bfd-session-13]quit

6)验证 BFD 会话


  1. [R1]display bfd session all
  2. --------------------------------------------------------------------------------
  3. Local Remote PeerIpAddr State Type InterfaceName
  4. --------------------------------------------------------------------------------
  5. 1 3 192.168.23.3 Up S_IP_PEER -
  6. --------------------------------------------------------------------------------
  7. Total UP/DOWN Session Number : 1/0
  8. [R3]display bfd session all
  9. --------------------------------------------------------------------------------
  10. Local Remote PeerIpAddr State Type InterfaceName
  11. --------------------------------------------------------------------------------
  12. 3 1 192.168.12.1 Up S_IP_PEER -
  13. --------------------------------------------------------------------------------
  14. Total UP/DOWN Session Number : 1/0
上一篇:13智慧农业


下一篇:13.Spring Cloud面试题