Configuring a PW

LDP PWs can be configured in hierarchical virtual private LAN service (HVPLS) or (virtual private LAN service) VPLS accessing virtual private wire service (VPWS) networking scenarios.

Context

The service type determines which networking mode to use:

  • HVPLS is best suited for multicast services.
  • VPLS accessing VPWS is best suited for unicast services.

Procedure

  • Configure a PW in HVPLS networking scenarios.

    For details, see Configuring LDP HVPLS.

    1. Run system-view

      The system view is displayed.

    2. Run vsi vsi-name static

      A VSI is created, and the static member discovery mode is specified.

    3. Run pwsignal ldp

      LDP is configured as the PW signaling protocol, and the VSI-LDP view is displayed.

    4. Run vsi-id vsi-id

      A VSI ID is configured.

    5. Run the following commands to configure VSI peers so that PWs can be established:

      • To specify an SPE as the peer of a UPE or to specify an NPE as the peer of an SPE, run the peer (VSI-LDP view) peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] command.
      • To specify a UPE as the peer of an SPE, run the peer (VSI-LDP view) peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] upe command.

    6. Run quit

      Return to the VSI view.

    7. Run quit

      Return to the system view.

    8. Run interface interface-type interface-number

      The AC interface view is displayed.

      This command must be run on the UPEs and NPEs, but is not required on the SPEs. In HVPLS scenarios, a UPE's AC interfaces are Ethernet interfaces, and an NPE's AC interfaces are Eth-Trunk sub-interfaces.

    9. Run vlan-type dot1q vlan-id

      The VLAN encapsulation type is configured for the AC interface.

    10. Run l2 binding vsi vsi-name

      The AC interface is bound to the VSI.

    11. Run commit

      The configuration is committed.

  • Configure a PW in VPLS accessing VPWS networking scenarios.

    # Configure a UPE. The configuration procedure is similar to that in HVPLS scenarios. For details, see Configuring HVPLS.

    # Configure NPEs.

    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The AC interface view is displayed.

    3. Run mpls l2vc { ip-address | pw-template template-name } * vc-id [ tunnel-policy policy-name [ endpoint endpoint-address color color-value ] | [ control-word | no-control-word ] | [ raw | tagged | ip-layer2 | ip-interworking ] | access-port | ignore-standby-state ] *

      A dynamic PW is configured on the NPE to connect to the VPLS network on the UPE.

    4. (Optional) Run mpls l2vc { ip-address | pw-template template-name } * vc-id [ tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw | tagged ] | access-port | ignore-standby-state | bypass ] *

      A bypass PW is established between NPEs.

      To implement VPLS PW redundancy in master/slave mode, you must configure a bypass PW.

    5. Run commit

      The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >