R0106-HP MSR Router Series MPLS Command Reference(V7)
306
Hardware Value ran
g
e
MSR2000 1 to 32
MSR3000 1 to 512
MSR4000 1 to 1024
remote remote-id: Specifies the remote discriminator value for the BFD session, in the range of 1 to
4294967295.
template template-name: Specifies a BFD session parameter template by its name, a case-sensitive string
of 1 to 31 characters. If you do not specify any template, BFD uses the BFD session parameters configured
in tunnel interface view.
Usage guidelines
After you enable MPLS BFD with the mpls bfd enable command and execute the mpls bfd command, the
device creates a BFD session on the MPLS TE tunnel. When the MPLS TE tunnel fails, BFD can quickly
detect the failure and notify the device of the failure, so the device can take a predefined action, such as
switching traffic to the backup tunnel.
A BFD session can be established in one of the following modes:
• Static mode—Manually specify the local and remote discriminators by using the discriminator
keyword in the mpls bfd command. You must enable MPLS BFD and configure the mpls bfd
command on both the local and remote devices. Make sure the local discriminator and remote
discriminator on the local device are the same as the remote discriminator and local discriminator
on the remote device. A static BFD session verifies the connectivity of a pair of MPLS TE tunnels in
opposite directions between two devices.
• Dynamic mode—If you do not specify local and remote discriminators, the system automatically
runs MPLS ping to negotiate the discriminator values. You must enable MPLS BFD on both the local
and remote devices, but the mpls bfd command is not needed on the remote device. A dynamic
BFD session verifies the connectivity of a unidirectional MPLS TE tunnel from the local device to the
remote device.
The source address of the BFD session is the MPLS LSR ID of the local device. Before configuring BFD for
the MPLS TE tunnel, perform the following tasks:
1. Configure an MPLS LSR ID for the local device.
2. Make sure a route is available on the remote device to reach the MPLS LSR ID.
Examples
# Enable BFD for the MPLS TE tunnel interface Tunnel 1, and reference the BFD session parameter
template test.
<Sysname> system-view
[Sysname] interface Tunnel 1
[Sysname-Tunnel1] mpls bfd template test
# Enable BFD for the MPLS TE tunnel interface Tunnel 1, and set the local and remote discriminators both
to 1.
<Sysname> system-view
[Sysname] interface Tunnel 1
[Sysname-Tunnel1] mpls bfd discriminator local 1 remote 1