1. 实验目的
- 熟悉OSPF与BFD联动的应用场景
- 掌握OSPF与BFD联动的配置方法
想要华为数通配套实验拓扑和配置笔记的朋友们点赞+关注,评论区留下邮箱发给你!
2. 实验拓扑
3. 实验步骤
1)IP地址的配置
AR1的配置
<Huawei>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的配置
<Huawei>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的配置
<Huawei>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的详细信息
<AR1>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会话
<AR1>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
注意:文章来源:https://www.toymoban.com/news/detail-676664.html
BFD与OSPF联动就是将BFD和OSPF协议关联起来,通过BFD对链路故障的快速感应进而通知OSPF协议,从而加快OSPF协议对于网络拓扑变化的响应。文章来源地址https://www.toymoban.com/news/detail-676664.html
到了这里,关于一篇掌握BFD技术(二):OSPF与BFD联动配置的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!