After BFD for PW is configured, the fault on a PW can
be rapidly detected and service flows on the PW can be rapidly switched
to the secondary PW. In this scenario, BFD can be configured in the
following two modes:
If there are a small number of service PWs, configure BFD for
service PWs.
If there are multiple PWs, configure BFD for mPW and associate
service PWs with the mPW. In this way, BFD monitors service PWs by
detecting the mPW.
The BFD control packets are encapsulated in the
PW control packets. Therefore, the control word function must be enabled
on the PWs to be detected by BFD.
Perform the following
operations on PEs at both ends of the primary PW.
Procedure
Configure BFD for service PWs or the mPW.
Run system-view
The system view is displayed.
Run bfd
BFD is enabled globally, and the global BFD view
is displayed.
Run quit
Return to the system view.
Run bfdcfg-namebind pw interfaceinterface-type interface-number [ secondary ]
A BFD configuration item is
created.
The outbound interface (specified by interfaceinterface-type interface-number) to which a BFD
session is bound is an AC interface on which a PW is established.
If an mPW is bound to a BFD session, the interface is the loopback
interface where the mPW is configured.
If the PW to be detected is a secondary PW, you must specify secondary.
(Optional) Run wtrwtr-value
The time before a BFD session recovers
is set.
By default, the value is 0, indicating that a BFD session
recovers immediately.
Running this command can prevent applications
from continuous active/standby switchovers during the BFD session
flapping.
Configure local and remote discriminators.
Run discriminatorlocaldiscr-value
A local discriminator
is configured.
Run discriminatorremotediscr-value
A remote discriminator
is configured.
The local discriminator of one end must
be the same as the remote discriminator of the other end of a BFD
session.
Run commit
The configuration is
committed.
If the status of a PW is Down, the BFD session can be established
but cannot go Up.
The local and remote discriminators cannot be changed once being
configured. To modify the local and remote discriminators, run the undo bfdbfd-name command in the system view to
delete BFD for PW configurations. After that, you can re-configure
the local and remote discriminators.
After the PW is deleted, the related BFD sessions and configurations
are deleted.
(Optional) Associate service PWs with the mPW.
Run system-view
The system view is displayed.
Run interfaceinterface-type interface-number [ .subinterface-number ]
The AC interface
view is displayed.
Run mpls l2vc [ secondary | bypass ] trackadmin-vcinterfaceloopbackinterface-number
Service PWs on the AC interface are associated with the
mPW.