玩转华为ENSP模拟器系列 | 配置BFD会话进入AdminDown状态

素材来源:华为路由器配置指南

一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!

附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_ensp实验大全


目标

通过配置BFD会话进入AdminDown状态,可以暂停BFD会话检测链路,但并不删除BFD会话。

配置思路

  • 进入BFD视图
  • 配置静态bfd for ip
  • 配置本端标示符和远端标识符
  • 终止bfd会话检测,使其进入AdminDown状态

操作步骤

  1. 配置各接口IP地址(略)
  2. 配置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
  1. 全局使能BDF功能

配置CX1

CX1:
bfd

配置CX2

CX2:
bfd

配置CX3

CX3:
bfd
  1. 配置静态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
  1. 配置本端标识符和远端标识符

配置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
  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
  1. 配置验证

查看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]
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值