小乔 发表于 2023-11-8 21:42:11

BFD配置三层物理链路单跳检测

组网需求如图6-23所示,RouterA和RouterB之间通过三层物理链路直连。用户希望可以实现设备间链路故障的快速检测。图6-23配置三层物理链路单跳检测组网图
https://download.huawei.com/mdl/image/download?uuid=e80b08795a4c421cbf4743f907b0e7f1


配置思路采用如下思路配置BFD单跳检测:在RouterA和RouterB上分别配置BFD会话,实现RouterA和RouterB间链路的检测。
操作步骤配置RouterA和RouterB的直连接口IP地址# 配置RouterA的接口IP地址。
<Huawei> system-view sysname RouterA interface gigabitethernet 1/0/0 ip address 10.1.1.1 24 quit# 配置RouterB的接口IP地址。
<Huawei> system-view sysname RouterB interface gigabitethernet 1/0/0 ip address 10.1.1.2 24 quit配置BFD单跳检测# 在RouterA上使能BFD,并配置与RouterB之间的BFD Session。需要在BFD Session中绑定接口。
bfd quit bfd atob bind peer-ip 10.1.1.2 interface gigabitethernet 1/0/0 discriminator local 1 discriminator remote 2 commit quit# 在RouterB上使能BFD,并配置与RouterA之间的BFD Session。需要在BFD Session中绑定接口。
bfd quit bfd btoa bind peer-ip 10.1.1.1 interface gigabitethernet 1/0/0 discriminator local 2 discriminator remote 1 commit quit验证配置结果# 配置完成后,在RouterA和RouterB上执行display bfd session all verbose命令,可以看到建立了一个单跳(one hop)的BFD Session,且状态为Up。
# 以RouterA上的显示为例。
display bfd session all verbose--------------------------------------------------------------------------------Session MIndex : 64      (One Hop) State : Up      Name : atob            --------------------------------------------------------------------------------Local Discriminator    : 1                Remote Discriminator   : 2          Session Detect Mode    : Asynchronous Mode Without Echo Function            BFD Bind Type          : Interface(GigabitEthernet1/0/0)                      Bind Session Type      : Static                                             Bind Peer IP Address   : 10.1.1.2                                             NextHop Ip Address   : 10.1.1.2                                             Bind Interface         : GigabitEthernet1/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                DSCP                   : -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                                       配置文件RouterA的配置文件
# sysname RouterA#bfd#interface GigabitEthernet1/0/0ip address 10.1.1.1 255.255.255.0#bfd atob bind peer-ip 10.1.1.2 interface GigabitEthernet1/0/0 discriminator local 1 discriminator remote 2 commit#returnRouterB的配置文件
# sysname RouterB#bfd#interface GigabitEthernet1/0/0ip address 10.1.1.2 255.255.255.0#bfd btoa bind peer-ip 10.1.1.1 interface GigabitEthernet1/0/0 discriminator local 2 discriminator remote 1 commit#return



374437593 发表于 2023-12-16 12:14:17

感谢楼主分享实用资源

jiawei318 发表于 2024-2-29 15:53:23


HCIA-HCIP全套内部培训PPT

左边 发表于 2024-3-5 11:12:23

非常感谢楼主分享

liyou60 发表于 2024-5-13 16:32:14

华为认证,值得拥有!{:6_269:}{:6_268:}
页: [1]
查看完整版本: BFD配置三层物理链路单跳检测