BFD实验案例

一、单跳检测二层链路

拓扑

        本拓扑AR1和AR2通过二层接口连通。用户希望可以实现设备间链路故障的快速检测。

        本拓扑因为要采用静态建立BFD会话配置方式,所以需要在链路两端设备上分别配置。又因BFD会话的两端设备是单跳二层连接,所以要采用缺省的BFD组播IP地址于对端建立BFD会话,同时在创建BFD会话绑定时一定要指定本端口出接口。

使能全局BFD功能

AR1
system
sysname AR1
bfd
q

AR2
system
sysname AR2
bfd
q

BFD会话配置

AR1
bfd 1 bind peer-ip default-ip interface Ethernet 0/0/1
discriminator local 1
discriminator remote 2
commit 

AR2
bfd 1 bind peer-ip default-ip interface Ethernet 0/0/2
discriminator local 2
discriminator remote 1
commit 

配置完以上命令后执行display bfd session all verbose命令查看BFD会话状态

[AR1]dis bfd ses all verbose 
--------------------------------------------------------------------------------
Session MIndex : 64        (One Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 1                Remote Discriminator   : 2         
  Session Detect Mode    : Asynchronous Mode Without Echo Function             
  BFD Bind Type          : Interface(Ethernet0/0/1)                            
  Bind Session Type      : Static                                              
  Bind Peer IP Address   : 224.0.0.184                                         
  NextHop Ip Address     : 224.0.0.184                                         
  Bind Interface         : Ethernet0/0/1                                       
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  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       : No Application Bind
  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
[AR2]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 64        (One Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 2                Remote Discriminator   : 1         
  Session Detect Mode    : Asynchronous Mode Without Echo Function             
  BFD Bind Type          : Interface(Ethernet0/0/2)                            
  Bind Session Type      : Static                                              
  Bind Peer IP Address   : 224.0.0.184                                         
  NextHop Ip Address     : 224.0.0.184                                         
  Bind Interface         : Ethernet0/0/2                                       
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  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       : No Application Bind
  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

二、VLANIF接口BFD单跳检测

1、基本配置思路分析

        本拓扑与上单跳检测二层链路差不多,主要的不同是本拓扑中通过三层VLANIF接口实现设备间三层连接(物理接口仍是二层)。当BFD接口是三层接口时既可以采用BFD组播IP地址建立BFD会话,又可以通过接口单播IP地址建立BFD会话。因为采用组播IP地址建立BFD会话的配置已在单跳检测二层链路介绍,所以这次我们使用BFD接口单播IP地址建立BFD会话的方式。

        采用BFD接口单播IP地址建立BFD会话时要指定对端BFD接口的IP地址(不使用BFD组播IP地址),同时因为也是单跳检测,所以也要指定本端出接口(本拓扑中为三层VLANIF接口)。当然首先要把直连的两个物理接口加入对应的VLAN中,然后为两端VLANIF接口配置IP地址(通常直连两端是采用同一网段IP地址的)。

        根据以上所述,本拓扑的基本配置思路如下。

  • 在AR1和AR2上分别创建VLAN100,并把相应接口加入VLAN中,配置VLANIF100的接口IP地址。
  • 在AR1和AR2上分别配置到达对端的单跳BFD会话。

基础配置

AR1
system
sysname AR1
vlan batch 100
int e 0/0/1
p l a
p d v 100
int vlan 100
ip add 10.1.1.5 24

AR2
system
sysname AR2
vlan batch 100
int e 0/0/2
p l a
p d v 100
int vlan 100
ip add 10.1.1.6 24

BFD配置

AR1
bfd
q
bfd 1 bind peer-ip 10.1.1.6 int vlan 100
discriminator local 1
discriminator remote 2
commit

AR2
bfd
q
bfd 1 bind peer-ip 10.1.1.5 int vlan 100
discriminator local 2
discriminator remote 1
commit 

查看BFD会话状态

[AR1]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 64        (One Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 1                Remote Discriminator   : 2         
  Session Detect Mode    : Asynchronous Mode Without Echo Function             
  BFD Bind Type          : Interface(Vlanif100)                                
  Bind Session Type      : Static                                              
  Bind Peer IP Address   : 10.1.1.6                                            
  NextHop Ip Address     : 10.1.1.6                                            
  Bind Interface         : Vlanif100                                           
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  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       : No Application Bind
  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
[AR2]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 64        (One Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 2                Remote Discriminator   : 1         
  Session Detect Mode    : Asynchronous Mode Without Echo Function             
  BFD Bind Type          : Interface(Vlanif100)                                
  Bind Session Type      : Static                                              
  Bind Peer IP Address   : 10.1.1.5                                            
  NextHop Ip Address     : 10.1.1.5                                            
  Bind Interface         : Vlanif100                                           
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  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       : No Application Bind
  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

三、BFD多跳检测

拓扑

1、基本配置思路分析

        因为本拓扑中AR1和AR3中间隔离了三层设备AR2,所以需要采用多跳检测方式。基本配置思路如下:

  • 配置各接口IP地址,并在AR1和AR3上分别配置到达对端的静态路由。
  • 在AR1和AR3上分别配置与对端之间链路的多跳BFD检测。要注意一端配置的本地标识符要与另一端配置的远端标识符一致。

基本配置
 

AR1
system
sysname AR1
int g 0/0/0
ip add 10.0.12.1 24

AR2
system
sysname AR2
int g 0/0/0
ip add 10.0.12.2 24
int g 0/0/1
ip add 10.0.23.2 24

AR3
system
sysname AR3
int g 0/0/0
ip add 10.0.23.3 24

路由配置

AR1
ip route-static 10.0.23.0 24 10.0.12.2

AR3
ip route-static 10.0.12.0 24 10.0.23.2

BFD配置

AR1
bfd
q
bfd 1 bind peer-ip 10.0.23.3
discriminator local 1
discriminator remote 2
commit

AR3
bfd
q
bfd 1 bind peer-ip 10.0.12.1
discriminator local 2
discriminator remote 1
commit

查看BFD会话状态

[AR1]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 256       (Multi Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  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   : 10.0.23.3                                           
  Bind Interface         : -                                                   
  Track Interface        : -                                                   
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  Echo Passive           : Disable          Acl Number             : -         
  Destination Port       : 3784             TTL                    : 254       
  Proc Interface Status  : Disable          Process PST            : Disable   
  WTR Interval (ms)      : -                                                   
  Active Multi           : 3                                                   
  Last Local Diagnostic  : No Diagnostic                                       
  Bind Application       : No Application Bind
  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
[AR3]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 256       (Multi Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  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   : 10.0.12.1                                           
  Bind Interface         : -                                                   
  Track Interface        : -                                                   
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  Echo Passive           : Disable          Acl Number             : -         
  Destination Port       : 3784             TTL                    : 254       
  Proc Interface Status  : Disable          Process PST            : Disable   
  WTR Interval (ms)      : -                                                   
  Active Multi           : 3                                                   
  Last Local Diagnostic  : No Diagnostic                                       
  Bind Application       : No Application Bind
  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

四、BFD静态标识符自协商

拓扑

        如果对端设备采用动态BFD协商,而本端设备既要与之互通,又要能够实现BFD检测静态路由,则必须配置静态标识符自协商BFD。该功能主要用于检测采用静态路由实现三层互通的网络中。

        本拓扑与BFD多跳检测拓扑一致不做任何改变,基础配置与路由配置一致,这里不过多赘述

BFD配置

AR1
bfd 1 bind peer-ip 10.0.23.3 source-ip 10.0.12.1 auto
commit

AR3
bfd 1 bind peer-ip 10.0.12.1 source-ip 10.0.23.3 auto
commit
  • 如果同时指定了对端IP地址和本端接口,则表示检测单跳链路,即检测以该接口为出接口、以peer-ip为下一跳地址的一条固定路由;如果仅指定对端IP地址时,表示检测多跳链路。
  • 如果用同时指定了对端IP地址、VPN实例和本端接口,表示检测VPN路由的单跳链路;如果仅同时指定了对端IP地址和VPN实例,则表示检测VPN路由的多跳链路。

查看BFD会话状态

[AR1]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 258       (Multi Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 8193             Remote Discriminator   : 8193      
  Session Detect Mode    : Asynchronous Mode Without Echo Function             
  BFD Bind Type          : Peer IP Address                                     
  Bind Session Type      : Static_Auto                                         
  Bind Peer IP Address   : 10.0.23.3                                           
  Bind Interface         : -                                                   
  Bind Source IP Address : 10.0.12.1                                           
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  Echo Passive           : Disable          Acl Number             : -         
  Destination Port       : 3784             TTL                    : 253       
  Proc Interface Status  : Disable          Process PST            : Disable   
  WTR Interval (ms)      : -                                                   
  Active Multi           : 3                                                   
  Last Local Diagnostic  : No Diagnostic                                       
  Bind Application       : AUTO 
  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
[AR3]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 258       (Multi Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 8193             Remote Discriminator   : 8193      
  Session Detect Mode    : Asynchronous Mode Without Echo Function             
  BFD Bind Type          : Peer IP Address                                     
  Bind Session Type      : Static_Auto                                         
  Bind Peer IP Address   : 10.0.12.1                                           
  Bind Interface         : -                                                   
  Bind Source IP Address : 10.0.23.3                                           
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  Echo Passive           : Disable          Acl Number             : -         
  Destination Port       : 3784             TTL                    : 253       
  Proc Interface Status  : Disable          Process PST            : Disable   
  WTR Interval (ms)      : -                                                   
  Active Multi           : 3                                                   
  Last Local Diagnostic  : No Diagnostic                                       
  Bind Application       : AUTO 
  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

五、静态BFD单臂回声功能

        在两台直连三层相连(中间可以有一台或多台二层设备)的设备中,当一端不支持BFD功能,可通过配置静态单臂回声功能实现快速检测并监控网络中的直连链路。在配置单臂回声功能之前需要为三层接口正确配置IP地址。静态BFD单跳回声功能的配置任务如下:

  • 全局使能BFD功能
  • 建立静态单臂回声功能的BFD会话
  • 配置会话标识符

拓扑

        本拓扑AR1和AR2通过直连链路连接(也可中间隔离二层设备),但AR1支持BFD功能,AR2不支持BFD功能。用户希望实现对AR1和AR2之间的链路故障的快速检测。

        本拓扑配置很简单,仅需在AR1上配置单臂回声功能BFD会话就可以实现检测AR1到AR2的直连链路。但要注意的是,单臂回声功能仅适用于单跳检测功能。

基础配置

AR1
system
sysname AR1
int g 0/0/0
ip add 10.0.12.1 24

AR2
system
sysname AR2
int g 0/0/0
ip add 10.0.12.2 24

BFD单臂回声配置

AR1
bfd 1 bind peer-ip 10.0.12.2 interface GigabitEthernet 0/0/0 one-arm-echo
discriminator local 1
commit

查看BFD会话状态

[AR1]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 256       (One Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 1                Remote Discriminator   : -         
  Session Detect Mode    : Asynchronous One-arm-echo Mode                      
  BFD Bind Type          : Interface(GigabitEthernet0/0/0)                     
  Bind Session Type      : Static                                              
  Bind Peer IP Address   : 10.0.12.2                                           
  NextHop Ip Address     : 10.0.12.2                                           
  Bind Interface         : GigabitEthernet0/0/0                                
  FSM Board Id           : 0                TOS-EXP                : 7         
  Echo Rx Interval (ms)  : 1000                                                
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  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       : No Application Bind
  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

可以看到AR1上建立了一个单跳的BFD会话,且状态为Up,只有本端标识符)Local Discriminator),无远端标识符(Remote Discriminator),表示建立的是单臂回声BFD会话,且已建立成功。

六、BFD状态与接口状态联动

拓扑

        RA和RB网络层直连,链路中间存在二层传输设备SW1和SW2。用户希望设备能够快速感知到链路故障,触发路由快速收敛。

1、基本配置思路分析

        在本拓扑中,两个路由器中间还有两台二层交换机,现假设路由器与交换机之间连接的接口也是二层的,则需要把它们加入对应的VLAN中(有的二层接口也可转换为三层模式)。然后在RA和RB上分别配置BFD会话,以实现RA和RB间链路的检测,当BFD会话状态Up以后分别在RA和RB上配置BFD状态与接口状态联动。本拓扑可采用三层接口配置,此时需要配置VLANIF接口IP地址;也可以直接采用二层接口配置,本拓扑以此中配置方式进行介绍。

  • 在RA和RB上配置VLAN(假设为VLAN10),把G0/0/0接口加入到对应的VLAN(假设为VLAN10)中。当然SWA和SWB上也要配置,在此不进行介绍。
  • 在RA和RB上分别以二层接口方式配置到达对端设备接口的单跳静态BFD检测。
  • 在RA和RB上分别配置BFD会话状态与其G0/0/0接口状态的联动。

基础配置

RouterA
system
sysname RouterA
vlan batch 10
int e 0/0/0
p l t
p t a v 10
q

RouterB
system
sysname RouterB
vlan batch 10
int e 0/0/0
p l t
p t a v 10

SW1
system
sysname SW1
vlan batch 10
int g 0/0/1
p l a
p d v 10
int g 0/0/2
p l a
p d v 10

SW2
system
sysname SW2
vlan batch 10
int g 0/0/1
p l a
p d v 10
int g 0/0/2
p l a
p d v 10

BFD配置 

RouterA
bfd
q
bfd 1 bind peer-ip default-ip interface Ethernet 0/0/0
discriminator local 1
discriminator remote 2
commit 

RouterB
bfd
q
bfd 1 bind peer-ip default-ip interface Ethernet 0/0/0
discriminator local 2
discriminator remote 1
commit 

查看BFD会话状态

[RouterA]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 64        (One Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 1                Remote Discriminator   : 2         
  Session Detect Mode    : Asynchronous Mode Without Echo Function             
  BFD Bind Type          : Interface(Ethernet0/0/0)                            
  Bind Session Type      : Static                                              
  Bind Peer IP Address   : 224.0.0.184                                         
  NextHop Ip Address     : 224.0.0.184                                         
  Bind Interface         : Ethernet0/0/0                                       
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  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       : No Application Bind
  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
[RouterB]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 64        (One Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 2                Remote Discriminator   : 1         
  Session Detect Mode    : Asynchronous Mode Without Echo Function             
  BFD Bind Type          : Interface(Ethernet0/0/0)                            
  Bind Session Type      : Static                                              
  Bind Peer IP Address   : 224.0.0.184                                         
  NextHop Ip Address     : 224.0.0.184                                         
  Bind Interface         : Ethernet0/0/0                                       
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  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       : No Application Bind
  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

BFD与接口状态联动配置

RouterA
bfd 1
process-interface-status
commit

RouterB
bfd 1
process-interface-status
commit

查看BFD会话状态
 

[RouterA]dis bfd ses all ver
--------------------------------------------------------------------------------
Session MIndex : 64        (One Hop) State : Up        Name : 1              
--------------------------------------------------------------------------------
  Local Discriminator    : 1                Remote Discriminator   : 2         
  Session Detect Mode    : Asynchronous Mode Without Echo Function             
  BFD Bind Type          : Interface(Ethernet0/0/0)                            
  Bind Session Type      : Static                                              
  Bind Peer IP Address   : 224.0.0.184                                         
  NextHop Ip Address     : 224.0.0.184                                         
  Bind Interface         : Ethernet0/0/0                                       
  FSM Board Id           : 0                TOS-EXP                : 7         
  Min Tx Interval (ms)   : 1000             Min Rx Interval (ms)   : 1000      
  Actual Tx Interval (ms): 1000             Actual Rx Interval (ms): 1000      
  Local Detect Multi     : 3                Detect Interval (ms)   : 3000      
  Echo Passive           : Disable          Acl Number             : -         
  Destination Port       : 3784             TTL                    : 255       
  Proc Interface Status  : Enable           Process PST            : Disable   
  WTR Interval (ms)      : -                                                   
  Active Multi           : 3                                                   
  Last Local Diagnostic  : No Diagnostic                                       
  Bind Application       : IFNET 
  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

可以看到BFD Session(BFD会话)状态为Up,"Proc interface status"字段显示为"Enable",表明已经配置了BFD与接口状态联动了。

以上就是本章的全部内容了,感谢大家的浏览观看!,文章若有错误或疑问可联系博主删除更改。文章中部分内容源自教材《华为路由器学习指南》感兴趣可购买相关书籍浏览。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Fanmeang.

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值