玩转华为ENSP模拟器系列 | 配置BFD会话进入AdminDown状态
Posted COCOgsta
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了玩转华为ENSP模拟器系列 | 配置BFD会话进入AdminDown状态相关的知识,希望对你有一定的参考价值。
素材来源:华为路由器配置指南
一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!
附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_ensp实验大全
目标
通过配置BFD会话进入AdminDown状态,可以暂停BFD会话检测链路,但并不删除BFD会话。
配置思路
- 进入BFD视图
- 配置静态bfd for ip
- 配置本端标示符和远端标识符
- 终止bfd会话检测,使其进入AdminDown状态
操作步骤
- 配置各接口IP地址(略)
- 配置OSPF协议,保证网络层可达
配置CX1
CX1:
ospf 1 router-id 1.1.1.36
area 0.0.0.0
network 1.1.1.36 0.0.0.0
network 20.1.1.0 0.0.0.255
配置CX2
CX2:
ospf 1 router-id 1.1.1.35
area 0.0.0.0
network 1.1.1.35 0.0.0.0
network 10.1.1.0 0.0.0.255
network 20.1.1.0 0.0.0.255
配置CX3
CX3:
ospf 1 router-id 1.1.1.34
area 0.0.0.0
network 1.1.1.34 0.0.0.0
network 10.1.1.0 0.0.0.255
- 全局使能BDF功能
配置CX1
CX1:
bfd
配置CX2
CX2:
bfd
配置CX3
CX3:
bfd
- 配置静态bfd for ip
配置CX1
CX1:
bfd 36-34 bind peer-ip 1.1.1.34 source-ip 1.1.1.36
配置CX3
CX3:
bfd 34-36 bind peer-ip 1.1.1.36 source-ip 1.1.1.34
- 配置本端标识符和远端标识符
配置CX1
CX1:
bfd 36-34 bind peer-ip 1.1.1.34 source-ip 1.1.1.36
discriminator local 1
discriminator remote 2
配置CX3
CX3:
bfd 34-36 bind peer-ip 1.1.1.36 source-ip 1.1.1.34
discriminator local 2
discriminator remote 1
- 终止BFD会话检测,使其进入AdminDown状态
配置CX1
CX1:
bfd 36-34 bind peer-ip 1.1.1.34 source-ip 1.1.1.36
discriminator local 1
discriminator remote 2
shutdown
- 配置验证
查看CX1静态BFD状态
[~CX1-bfd-session-36-34]dis bfd session all for-ip verbose
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
(Multi Hop) State : AdminDown Name : 36-34
--------------------------------------------------------------------------------
Local Discriminator : 1 Remote Discriminator : 2
Session Detect Mode : Asynchronous Mode Without Echo Function
BFD Bind Type : Peer IP Address
Bind Session Type : Static
Bind Peer IP Address : 1.1.1.34
Bind Interface : -
Track Interface : -
Bind Source IP Address : 1.1.1.36
FSM Board Id : 1 TOS-EXP : 7
Min Tx Interval (ms) : 10 Min Rx Interval (ms) : 10
Actual Tx Interval (ms): - Actual Rx Interval (ms): -
Local Detect Multi : 3 Detect Interval (ms) : -
Echo Passive : Disable Acl Number : -
Destination Port : 4784 TTL : 254
Proc Interface Status : Disable Process PST : Disable
WTR Interval (ms) : - Config PST : Disable
Active Multi : -
Last Local Diagnostic : Administratively Down
Bind Application : No Application Bind
Session TX TmrID : - Session Detect TmrID : -
Session Init TmrID : - Session WTR TmrID : -
Session Echo Tx TmrID : -
Session Description : -
--------------------------------------------------------------------------------
Total UP/DOWN Session Number : 0/1
[~CX1-bfd-session-36-34]
查看CX2的静态BFD状态,也可以查看到CX1发出AdminDown信息
[~CX3]dis bfd session all for-ip verbose
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
(Multi Hop) State : Down Name : 34-36
--------------------------------------------------------------------------------
Local Discriminator : 2 Remote Discriminator : 1
Session Detect Mode : Asynchronous Mode Without Echo Function
BFD Bind Type : Peer IP Address
Bind Session Type : Static
Bind Peer IP Address : 1.1.1.36
Bind Interface : -
Track Interface : -
Bind Source IP Address : 1.1.1.34
FSM Board Id : 1 TOS-EXP : 7
Min Tx Interval (ms) : 10 Min Rx Interval (ms) : 10
Actual Tx Interval (ms): 14509 Actual Rx Interval (ms): 14509
Local Detect Multi : 3 Detect Interval (ms) : -
Echo Passive : Disable Acl Number : -
Destination Port : 4784 TTL : 254
Proc Interface Status : Disable Process PST : Disable
WTR Interval (ms) : - Config PST : Disable
Active Multi : 3
Last Local Diagnostic : Neighbor Signaled Session Down(Receive AdminDown)
Bind Application : No Application Bind
Session TX TmrID : 4029243904 Session Detect TmrID : -
Session Init TmrID : - Session WTR TmrID : -
Session Echo Tx TmrID : -
Session Not Up Reason : In negotiation
Session Description : -
--------------------------------------------------------------------------------
Total UP/DOWN Session Number : 0/1
[~CX3]
以上是关于玩转华为ENSP模拟器系列 | 配置BFD会话进入AdminDown状态的主要内容,如果未能解决你的问题,请参考以下文章
玩转华为ENSP模拟器系列 | 配置静态BFD检测三层IP链路
玩转华为ENSP模拟器系列 | 配置动态BFD检测LDP LSP示例
玩转华为ENSP模拟器系列 | 配置静态BFD检测VPWS PW示例