beautypg.com

Configuring a pw, Configuring a pw class, Configuring a static pw – H3C Technologies H3C S12500-X Series Switches User Manual

Page 298: Configuring an ldp pw

background image

287

Step Command

Remarks

4.

(Optional.) Configure the
default PW ID for the VSI.

default-pw-id default-pw-id

By default, no default PW ID is
configured for the VSI.

5.

Configure an MTU for the VSI. mtu mtu

By default, the MTU of a VSI is
1500 bytes.

6.

(Optional.) Enable the VSI.

undo shutdown

By default, a VSI is enabled.

Configuring a PW

Configuring a PW class

In a PW class, you can configure PW attributes such as the PW type. 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.) 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 you have configured a default PW ID for
the VSI with the default-pw-id command,

you can use the default PW ID without
providing a PW ID in the peer command. If

no default PW ID is configured, you must

provide a PW ID in the peer command.

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."