502
3.
Create the PW, and use the PW class created in the previous step for the PW.
If both PEs of the PW have configured BFD and use the same BFD packet encapsulation type, the
PEs use the specified encapsulation type to verify PW connectivity. Otherwise, the PEs do not use
BFD to verify PW connectivity.
If both PEs have specified the same VCCV CC type, the specified VCCV CC type is used. Otherwise,
the PEs do not use any CC and they cannot establish a BFD session for the PW.
Configuring BFD for an MPLS L2VPN PW
Perform this task to use BFD to verify the connectivity of a static PW or an LDP PW of MPLS L2VPN:
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.
Create a PW class and
enter PW class view.
pw-class
class-name
By default, no PW class is created.
To use BFD to verify connectivity of
a PW, you must create a PW class
for the PW and configure VCCV
settings in PW class view.
4.
Use BFD to verify PW
connectivity.
vccv bfd
[
raw-bfd
] [
template
template-name
]
By default, BFD is not used to verify
PW connectivity.
If you specify the
raw-bfd
keyword
in this command, make sure you
specify the VCCV CC type as
control-word
.
5.
Specify the VCCV CC type.
vccv cc
{
control-word
|
router-alert
|
ttl
}
By default, no VCCV CC type is
specified.
6.
Return to system view.
quit
N/A
7.
Enter cross-connect group
view.
xconnect-group
group-name
N/A
8.
Enter cross-connect view.
connection
connection-name
N/A
9.
Configure a PW, specify the
created PW class for it, and
enter PW view.
peer
ip-address
pw-id
pw-id
[
in-label
label-value
out-label
label-value
]
pw-class
class-name
[
tunnel-policy
tunnel-policy-name
]
By default, no PW is configured.
10.
(Optional.) Set the local and
remote discriminators for
the BFD session used to
verify PW connectivity.
bfd discriminator local
local-id
remote
remote-id
By default, no local and remote
discriminators are set.
Make sure the local discriminator
and remote discriminator
configured on the local PE are the
same as the remote discriminator
and local discriminator configured
on the remote PE, respectively.
11.
(Optional.) Configure a
backup PW, specify the PW
class for the backup PW,
and enter backup PW view.
backup-peer
ip-address
pw-id
pw-id
[
in-label
label-value
out-label
label-value
]
pw-class
class-name
[
tunnel-policy
tunnel-policy-name
]
By default, no backup PW is
configured.