
51
•
Advertises label bindings for FEC 10.2.1.0/24 to the LDP peer with the LSR ID 4.4.4.9.
•
Does not advertise label bindings of other segments to any peers.
<Sysname> system-view
[Sysname] ip ip-prefix prefix-to-C permit 10.1.1.0 24
[Sysname] ip ip-prefix prefix-to-D permit 10.2.1.0 24
[Sysname] ip ip-prefix peerC permit 3.3.3.9 32
[Sysname] ip ip-prefix peerD permit 4.4.4.9 32
[Sysname] mpls ldp
[Sysname-mpls-ldp] advertise-label ip-prefix prefix-to-C peer peer-C
[Sysname-mpls-ldp] advertise-label ip-prefix prefix-to-D peer peer-D
bfd enable
Description
Use the
bfd enable
command to enable BFD to check the connectivity of the LSPs of the specified FEC.
Use the
undo
bfd enable
command to disable BFD for the LSPs of the specified FEC.
By default, BFD is not configured for connectivity check of LSPs.
You need to enable LSP verification by using the
mpls lspv
command before executing the
bfd enable
command.
The BFD session parameters are those configured on the loopback interface whose IP address is
configured as the MPLS LSR ID. The BFD packets will use the MPLS LSR ID as the source address.
Therefore, before enabling BFD for an LSP, configure an IP address for the loopback interface and
configure the MPLS LSR ID as the IP address of the loopback interface. You can also configure BFD
session parameters for the loopback interface as needed.
Syntax
bfd enable
destination-address
mask-length
[
nexthop
nexthop-address
[
discriminator local
local-id
remote
remote-id
] ]
undo bfd enable
destination-address
mask-length
[
nexthop
nexthop-address
]
View
MPLS LSPV view
Default level
2: System level
Parameters
destination-address
: Specifies the destination address of the FEC.
mask-length
: Specifies the destination address mask of the FEC, ranging from 0 to 32.
nexthop
nexthop-address
: Specifies the next hop address of the FEC. If you specify the FEC next hop, the
BFD inspects the specified LSP. If you do not specify it, the BFD detects all LSPs for the FEC.
discriminator
: Specifies the discriminator values of the BFD session.
local
local-id
: Specifies the local discriminator value of the BFD session. The value ranges from 1 to 32.
remote
remote-id
: Specifies the remote discriminator value of the BFD session. The value ranges from 1 to
4,294,967,295.