![Huawei Quidway NetEngine40E Configuration Manual - Reliability Download Page 342](http://html.mh-extra.com/html/huawei/quidway-netengine40e/quidway-netengine40e_configuration-manual-reliability_169453342.webp)
5.2.3 Setting Up a BFD Session
Creating a BFD session on both ends of a direct link enables BFD to rapidly detect a fault in the
direct link.
Context
Perform the following procedure on both ends of a link to be checked:
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Select one of the following steps depending on the type of link to be checked by BFD:
l
To use BFD to detect faults in an IPv4 link, run the following commands as required to
configure a BFD session:
–
On a Layer 3 interface with an IP address, run:
bfd
bfd-name
bind
peer-ip
peer-ip
[
vpn-instance
vpn-instance-name
]
interface
interface-type
interface-number
[
source-ip
source-ip
]
–
If a single-hop BFD session is to be set up on an interface for the first time, the interface
and its peer address must be bound to the BFD session. The bindings cannot be
modified after the BFD session is created.
–
When BFD configuration items are being created, the system checks only the format
of an IP address regardless of whether the IP address is correct. Either an incorrect
peer or source IP address leads to a failure in creating a BFD session.
–
If BFD and Unicast Reverse Path Forwarding (URPF) are used together, configure
source-ip
to specify a correct source IP address for BFD packets during the creation
of a BFD binding (as URPF checks the source IP address of received packets); If this
is not done correctly, BFD packets are discarded mistakenly.
–
On a Layer 2 interface or a Layer 3 physical member interface without an IP address, run:
bfd
bfd-name
bind
peer-ip
default-ip
interface
interface-type
interface-
number
[
source-ip
source-ip
]
l
To use BFD to detect faults in an IPv6 link, run the following command to create a BFD6
session:
bfd
bfd-name
bind
peer-ipv6
peer-ipv6
[
vpn-instance
vpn-instance-name
]
interface
interface-type
interface-number
[
source-ipv6
source-ipv6
]
–
If a single-hop BFD6 session is to be created for the first time, the peer IPv6 address and
local outbound interface need to be bound to the session. The bindings cannot be modified
after the BFD6 session is successfully created.
–
When creating a BFD6 session, the system checks only the format, not the correctness,
of a peer IPv6 address. An incorrect peer or source IPv6 address leads to a failure in
creating a BFD6 session.
Step 3
Configure discriminators by running the following commands:
l
To configure a local discriminator, run:
discriminator
local
discr-value
HUAWEI NetEngine80E/40E Router
Configuration Guide - Reliability
5 BFD Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
325