317
Configuring a PW
Configuring a PW class
You can configure PW attributes such as the PW data encapsulation type and enable control word in
a PW class. PWs with the same attributes can use the same PW class.
To configure a PW class:
1. Enter system view.
N/A
2. Create a PW class and enter
PW class view.
pw-class
class-name
By default, no PW class is
created.
3. (Optional.
word.
control-word enable
By default, control word is
disabled.
4. (Optional.
data encapsulation type.
pw-type
{
ethernet
|
vlan
}
By default, the PW data
encapsulation type is VLAN.
Configuring a static PW
1. Enter system view.
N/A
2. Enter cross-connect group
view.
xconnect-group
group-name
N/A
3. Enter cross-connect view.
connection-name N/A
4.
Configure a static PW and
enter cross-
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 static PW is
configured.
Configuring an LDP PW
Before you configure an LDP PW, enable global and interface MPLS LDP on the PE. For information
about MPLS LDP configuration, see "Configuring LDP."
To configure an LDP PW:
1. Enter system view.
N/A
2. Enter cross-connect group
view.
xconnect-group
group-name
N/A
3. Enter cross-connect view.
connection-name N/A
4.
enter cross-
view.
peer
ip-address
pw-id
pw-id
[
pw-class
class-name |
tunnel-policy
tunnel-policy-name ] *
configured.
After an LDP PW is created, the
local PE automatically sends a
targeted hello to create an LDP