一篇掌握BFD技术(二):OSPF与BFD联动配置

1. 实验目的

  1. 熟悉OSPF与BFD联动的应用场景
  2. 掌握OSPF与BFD联动的配置方法

想要华为数通配套实验拓扑和配置笔记的朋友们点赞+关注,评论区留下邮箱发给你!

2. 实验拓扑

一篇掌握BFD技术(二):OSPF与BFD联动配置_第1张图片

                 

3.    实验步骤

1)IP地址的配置

AR1的配置

system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]undo info-center enable

Info: Information center is disabled.

[Huawei]sysname AR1

[AR1]interface g0/0/0

[AR1-GigabitEthernet0/0/0]ip address 12.1.1.1 24

[AR1-GigabitEthernet0/0/0]quit

[AR1]interface LoopBack 0

[AR1-LoopBack0]ip address 1.1.1.1 32

[AR1-LoopBack0]quit

AR2的配置

system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]undo info-center enable

Info: Information center is disabled.

[Huawei]sysname AR2

[AR2]interface g0/0/1

[AR2-GigabitEthernet0/0/1]ip address 12.1.1.2 24

[AR2-GigabitEthernet0/0/1]quit

[AR2]interface g0/0/0

[AR2-GigabitEthernet0/0/0]ip address 23.1.1.2 24

[AR2-GigabitEthernet0/0/0]quit

[AR2]interface LoopBack 0

[AR2-LoopBack0]ip address 2.2.2.2 32

[AR2-LoopBack0]quit

想要华为数通配套实验拓扑和配置笔记的朋友们点赞+关注,评论区留下邮箱发给你!

AR3的配置

system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]undo info-center enable

Info: Information center is disabled.

[Huawei]sysname AR3

[AR3]interface g0/0/1

[AR3-GigabitEthernet0/0/1]ip address 23.1.1.3 24

[AR3-GigabitEthernet0/0/1]quit

[AR3]interface LoopBack 0

[AR3-LoopBack0]ip address 3.3.3.3 32

[AR3-LoopBack0]quit

2)运行OSPF

AR1的配置

[AR1]ospf router-id 1.1.1.1

[AR1-ospf-1]area 0

[AR1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255

[AR1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0

[AR1-ospf-1-area-0.0.0.0]quit

AR2的配置

[AR2]ospf router-id 2.2.2.2

[AR2-ospf-1]area 0

[AR2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255

[AR2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255

[AR2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0

[AR2-ospf-1-area-0.0.0.0]quit

AR3的配置

[AR3]ospf router-id 3.3.3.3

[AR3-ospf-1]area 0

[AR3-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255

[AR3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0

[AR3-ospf-1-area-0.0.0.0]quit

3)配置BFD

AR1的配置

[AR1]bfd

[AR1-bfd]quit

[AR1]ospf

[AR1-ospf-1]bfd all-interfaces enable

[AR1-ospf-1]bfd all-interfaces  min-rx-interval 100 min-tx-interval 100 detect-multiplier 3

[AR1-ospf-1]quit

AR2的配置

[AR2]bfd

[AR2-bfd]quit

[AR2]ospf

[AR2-ospf-1]bfd  all-interfaces en

[AR2-ospf-1]bfd  all-interfaces enable

[AR2-ospf-1]bfd all-interfaces min-rx-interval 100 min-tx-interval 100 detect-multiplier 3

[AR2-ospf-1]quit

AR3的配置

[AR3]bfd

[AR3-bfd]quit

[AR3]ospf

[AR3-ospf-1]bfd all-interfaces  enable

[AR3-ospf-1]bfd all-interfaces min-rx-interval 100 min-tx-interval 100 detect-multiplier 3

[AR3-ospf-1]quit

4.    实验调试

1)查看bfd的详细信息

display bfd session all verbose

----------------------------------------------------------------------------

Session MIndex : 512       (One Hop) State : Up        Name : dyn_8192      

----------------------------------------------------------------------------

  Local Discriminator    : 8192             Remote Discriminator   : 8193     

  Session Detect Mode    : Asynchronous Mode Without Echo Function            

  BFD Bind Type          : Interface(GigabitEthernet0/0/0)                    

  Bind Session Type      : Dynamic                                             

  Bind Peer IP Address   : 12.1.1.2                                           

  NextHop Ip Address     : 12.1.1.2                                           

  Bind Interface         : GigabitEthernet0/0/0                               

  FSM Board Id           : 0                TOS-EXP                : 7        

  Min Tx Interval (ms)   : 100              Min Rx Interval (ms)   : 100      

  Actual Tx Interval (ms): 100              Actual Rx Interval (ms): 100      

  Local Detect Multi     : 3                Detect Interval (ms)   : 300       

  Echo Passive           : Disable          Acl Number             : -        

  Destination Port       : 3784             TTL                    : 255      

  Proc Interface Status  : Disable          Process PST            : Disable  

  WTR Interval (ms)      : -                                                   

  Active Multi           : 3                                                  

  Last Local Diagnostic  : No Diagnostic                                      

  Bind Application       : OSPF

  Session TX TmrID       : -                Session Detect TmrID   : -        

  Session Init TmrID     : -                Session WTR TmrID      : -        

  Session Echo Tx TmrID  : -                                                  

  PDT Index              : FSM-0 | RCV-0 | IF-0 | TOKEN-0                      

  Session Description    : -                                                  

----------------------------------------------------------------------------

     Total UP/DOWN Session Number : 1/0

想要华为数通配套实验拓扑和配置笔记的朋友们点赞+关注,评论区留下邮箱发给你!

2)查看OSPF的bfd会话

display ospf bfd session all

         OSPF Process 1 with Router ID 1.1.1.1

  Area 0.0.0.0 interface 12.1.1.1(GigabitEthernet0/0/0)'s BFD Sessions

 NeighborId:2.2.2.2          AreaId:0.0.0.0          Interface:GigabitEthernet0/0/0

 BFDState:up                 rx    :100              tx       :100          

 Multiplier:3                BFD Local Dis:8192      LocalIpAdd:12.1.1.1

 RemoteIpAdd:12.1.1.2        Diagnostic Info:No diagnostic information

注意:

BFD与OSPF联动就是将BFD和OSPF协议关联起来,通过BFD对链路故障的快速感应进而通知OSPF协议,从而加快OSPF协议对于网络拓扑变化的响应。

你可能感兴趣的:(网络,安全,服务器)