Configuring a pw, Configuring a pw class, Configuring a static pw – H3C Technologies H3C S6800 Series Switches User Manual

Page 390: Configuring an ldp pw

Advertising
background image

377

Configuring a PW

Configuring a PW class

In a PW class, you can configure PW attributes such as the PW type, and whether to enable control word.

To simplify PW configuration, you can configure PWs with the same attributes by referencing the same
PW class.
To configure a PW class:

Step Command

Remarks

1.

Enter system view.

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.) Enable control
word.

control-word enable

By default, control word is

disabled.

4.

(Optional.) Specify the PW
type.

pw-type { ethernet | vlan }

By default, the PW type is VLAN.

Configuring a static PW

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter VSI view.

vsi vsi-name

N/A

3.

Specify static signaling
for PWs, and enter VSI

static view.

pwsignaling static

By default, no PW signaling protocol is
specified.

4.

Configure a static PW,

and enter VSI static PW
view.

peer ip-address [ pw-id pw-id ]
in-label label-value out-label

label-value [ no-split-horizon |
pw-class class-name |

tunnel-policy

tunnel-policy-name ] *

By default, no static PW is configured.
If both a default PW ID in the default-pw-id

command and a PW ID in the peer
command are configured, the PW ID in the

peer command is used. If only a default PW

ID is configured, the default PW ID is used.
If no default PW ID is configured, you must

provide a PW ID in the peer command.
You must specify the no-split-horizon
keyword to disable split horizon when you

configure an NPE to establish a U-PW to a
UPE.

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:

Advertising