499
To configure BFD for LSPs:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable BFD for MPLS.
mpls bfd enable
By default, BFD for MPLS is
disabled.
3.
(Optional.) Remove the
Router Alert option in BFD
packets.
undo bfd ip-router-alert
By default, the device sends BFD
packets carrying the Router Alert
option to detect an LSP.
Execute this command on the
local device if the peer device
cannot identify the Router Alert
option in BFD packets.
This command takes effect only
on BFD sessions that come up
after this command is executed.
4.
Configure BFD to verify LSP
connectivity for an FEC.
mpls bfd
dest-addr
mask-length
[
nexthop
nexthop-address
[
discriminator local
local-id
remote
remote-id
] ] [
template
template-name
]
By default, BFD is not configured
to verify LSP connectivity for an
FEC.
Configuring periodic MPLS tracert for LSPs
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable BFD for MPLS.
mpls bfd enable
By default, BFD for MPLS is
disabled.
3.
Enable periodic LSP
tracert for an FEC.
mpls periodic-tracert
dest-addr
mask-length
[
-a
source-ip
|
-exp
exp-value
|
-h
ttl-value
|
-m
wait-time
|
-rtos
tos-value
|
-t
time-out
|
-u
retry-attempt
|
fec-check
] *
By default, periodic LSP tracert
is disabled.
Configuring MPLS OAM for MPLS TE tunnels
To verify MPLS TE tunnel connectivity, you can use one of the following methods:
•
Use
ping mpls te
command or the
tracert mpls te
command to trigger MPLS TE tunnel
connectivity verification as needed.
•
Configure BFD for the system to automatically verify MPLS TE tunnel connectivity.
Configuring MPLS ping for MPLS TE tunnels
Perform the following task in any view:
Task Command
Use MPLS ping to verify MPLS TE tunnel
connectivity.
ping mpls
[
-a
source-ip
|
-c
count
|
-exp
exp-value
|
-h
ttl-value
|
-m
wait-time
|
-r
reply-mode
|
-rtos
tos-value
|
-s
packet-size
|
-t
time-out
|
-v
] *
te
tunnel
interface-number