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


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


Configuration Guide - VPN 01

NE05E and NE08E V300R003C10SPC500

This is NE05E and NE08E V300R003C10SPC500 Configuration Guide - VPN
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).
(Optional) Configuring a PW Template

(Optional) Configuring a PW Template

A PW template is a collection of common PW attributes. Configuring PWs using a PW template helps save configuration workload.


Before configuring PWs with similar attributes, you can define a PW template that contains the common attributes of these PWs. Then, you can configure these PWs based on the PW template to simplify the configuration process. For example, if multiple VPWS connections with the same MTU, peer address, control word setting, and tunnel policy need to be configured between two PEs, you can define these common attributes in a PW template and use the PW template to configure these PWs on different PE interfaces.

Perform the following steps on the PEs at both ends of a PW to be established.


  1. Run system-view

    The system view is displayed.

  2. Run mpls l2vpn

    MPLS L2VPN is enabled.

  3. Run quit

    Return to the system view.

  4. Run pw-template pw-template-name

    A PW template is created, and the PW template view is displayed.

    If some PW attributes configured using the mpls l2vc command are different from those specified in the PW template, the PW attributes configured using the mpls l2vc command take precedence.

  5. Configure PW attributes. The following steps are optional and can be selected as required.

    • Run the peer-address ip-address command to specify an IP address for the remote PE on the PW.
    • Run the control-word command to enable the control word function.
    • Run the tnl-policy policy-name command to specify the tunnel policy to be used by the PW.
    • Run the mtu mtu-value command to configure the MTU in the PW template.
    • Run the jitter-buffer depth depth command to set the depth of the jitter buffer in the application of time division multiplexing over packet switched network (TDMoPSN).
    • Run the rtp-header command to add the Real-Time Transport Protocol (RTP) header to the transparently transmitted time division multiplexing (TDM) frames.
    • Run the tdm-encapsulation-number number command to configure the number of TDM frames that are encapsulated in a Circuit Emulation Services over Packet Switch Network (CESoPSN) or Structure-Agnostic Time Division Multiplexing over Packet (SAToP) packet in the TDMoPSN application.
    • Run the flow-label { both | send | receive } [ static ] command to enable flow label-based load balancing.
    • (Optional) Run the following commands so that ATM services can be carried:
      • Run the atm-pack-overtime atm-pack-overtime command to configure an ATM cell encapsulation period.
      • Run the max-atm-cells max-atm-cell-value command to configure the maximum number of ATM cells that can be transmitted.
      • Run the transmit-atm-cells transmit-atm-cell-value command to configure the maximum number of ATM cells to be encapsulated into a packet that can be sent by a device.
      • Run the cc seq-number command to enable the sequence number function of the control word.
    • (Optional) Run the following commands if CEP services need to be transmitted:
      • Run the jitter-buffer-cep depth cep-depth command to configure jitter buffer depth for CEP services.
      • Run the payload-compression dba uneq command to configure payload compression DBA for CEP services.

  6. Run commit

    The configuration is committed.

Follow-up Procedure

After the PW attributes in a PW template are modified, run the reset pw pw-template pw-template-name command for the modifications to take effect. Running this command will cause PWs referencing this PW template to reset. If multiple PWs are referencing this template, system operation is affected.

Updated: 2019-01-14

Document ID: EDOC1100058925

Views: 37233

Downloads: 61

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