No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - VPN

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document describes VPN features on the device and provides configuration procedures and configuration examples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring PW Switching

Configuring PW Switching

You can configure a multi-segment PW to exchange PW labels.

Context

To forward packets through a multi-segment PW, configure PW switching so that PW labels can be exchanged. PW switching must be configured on the Superstratum PE (SPE) where a large number of MPLS LDP sessions can be established.

In the following cases, PW switching is required:

  • Two PEs are in different ASs, and no signaling connection or tunnel can be set up between the two PEs.

  • Two PEs use different signaling.

  • If the access device can run MPLS but does not support a large number of LDP sessions, the User Facing Provider Edge (UFPE) can be used as a UPE and the SPE as a node for switching LDP sessions. The SPE is similar to a signaling reflector.

PW switching supports three modes: static mode, dynamic mode, and mixed mode:

  • When static PWs are used between the SPE and two connected PEs, configure static PW switching.
  • When dynamic PWs are used between the SPE and two connected PEs, configure dynamic PW switching.
  • When a static PW and a dynamic PW are used between the SPE and two connected PEs, configure mixed PW switching.

Pre-configuration Tasks

Before configuring multi-segment PW switching, complete the following tasks:

  • Enabling MPLS L2VPN on PEs

  • Setting up a tunnel (GRE tunnel, LSP tunnel, or TE tunnel) between the PEs

    You also need to configure tunnel policies when PWE3 services need to be transmitted over TE tunnels or when PWE3 services need to be load balanced among multiple tunnels to fully use network resources. For details, see step 1 in Configuring and Applying a Tunnel Policy.

  • Configuring a Static PW on UPEs if PW switching is performed between two static PWs

  • Configuring a Dynamic PW on UPEs if PW switching is performed between two dynamic PWs

Procedure

  • Configuring static PW switching

    Perform the following operations on the SPE.

    1. Run system-view

      The system view is displayed.

    2. Run mpls switch-l2vc ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name ] between ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name ] encapsulation encapsulation-type [ control-word [ cc { alert | cw } * cv lsp-ping ] | [ no-control-word ] [ cc alert cv lsp-ping ] ] [ control-word-transparent ]

      Static PW switching is configured.

      To configure static PW switching, you must configure PW labels on each SPE.

      A static multi-segment PW is established as follows:

      • On the UPE, when the AC status is Up and the PSN tunnel exists, the PW status is Up.

      • On the SPE, as long as the PSN tunnels exist on both sides, the PW is in Up state even if the SPE and UPE use different PW encapsulation types.

      It is recommended that you set the same PW encapsulation type by specifying the encapsulation-type parameter on the SPE and UPE to facilitate management.

  • Configuring dynamic PW switching

    Perform the following operations on the SPE.

    1. Run system-view

      The system view is displayed.

    2. Run mpls switch-l2vc ip-address vc-id [ tunnel-policy policy-name ] between ip-address vc-id [ tunnel-policy policy-name ] encapsulation encapsulation-type [ control-word-transparent ]

      Dynamic PW switching is configured.

      Dynamic PW switching is easy to configure. Two neighboring endpoints (UPE or SPE) will send remote labels to the SPE through signaling. The two UPEs will send control word and VCCV to the SPE through signaling.

      The PW encapsulation type (specified by the encapsulation-type parameter) on the SPE must be the same as that on the UPE. Otherwise, the PW cannot go Up.

  • Configuring mixed PW switching

    NOTE:

    When you configure mixed PW switching, ip-address vc-id before between specifies the VC ID of a dynamic PW and ip-address vc-id after between specifies the VC ID of a static PW. The two values cannot be interchanged.

    Perform the following operations on the SPE.

    1. Run system-view

      The system view is displayed.

    2. Run mpls switch-l2vc ip-address vc-id [ tunnel-policy policy-name ] between ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name ] encapsulation encapsulation-type [ mtu mtu-value ] [ control-word [ cc { alert | cw } * cv lsp-ping ] | [ no-control-word ] [ cc alert cv lsp-ping ] ] [ control-word-transparent ]

      Mixed PW switching is configured.

      To configure mixed PW switching, configure a PW label for the static PW. The PW encapsulation type (specified by the encapsulation-type parameter) on the SPE must be the same as that on the UPE connected to a dynamic PW.

      To configure mixed PW switching, the following MTUs must be the same:

      • Local MTU of the dynamic PW

      • Peer MTU of the dynamic PW

      • Local MTU of the static PW

      • Peer MTU of the static PW

      NOTE:

      In mixed PW switching, the MTUs of the interfaces on the two ends must be the same and cannot be greater than 1500 bytes.

Verifying the Configuration

  • Run the display mpls static-l2vc [ vc-id | interface interface-type interface-number | state { down | up } ] command to check the information about static VCs.

  • Run the display mpls l2vc [ vc-id | interface interface-type interface-number | remote-info [ vc-id | verbose ] | state { down | up } ] command to check the information about virtual circuits in LDP mode.

  • Run the display mpls switch-l2vc [ ip-address vc-id encapsulation encapsulation-type | state { down | up } ] command on the SPE to view information about PW switching.

  • Run the display tunnel-info { tunnel-id tunnel-id | all | statistics [ slots ] } command to check information about tunnels in the system.

  • Run the display tunnel-policy [ tunnel-policy-name ] command to check information about the specified tunnel policy.

Translation
Download
Updated: 2019-08-07

Document ID: EDOC1100033725

Views: 143594

Downloads: 361

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next