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

S7700 and S9700 V200R013C00

This document describes the configurations of VPN, including GRE, IPSec, BGP/MPLS IP VPN, BGP/MPLS IPv6 VPN, VLL, PWE3, VPLS, L2VPN Access to L3VPN.
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 Basic Ethernet over GRE Functions

Configuring Basic Ethernet over GRE Functions

Pre-configuration Tasks

Before you configure basic Ethernet over GRE functions, establish a GRE tunnel.


  1. Run system-view

    The system view is displayed.

  2. Run interface virtual-ethernet ve-number

    A VE interface is created and the VE interface view is displayed.

  3. Run portswitch

    The VE interface is changed from Layer 3 mode to Layer 2 mode. By default, a VE interface works in Layer 3 mode.

  4. Run port link-type trunk

    The link type of the VE interface is set to Trunk.

  5. Run undo port trunk allow-pass vlan 1

    Delete VE interface from VLAN 1.

  6. Run port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all }

    The VE interface is added to the specified VLANs.

  7. Run quit

    Return to the system view.

  8. Run interface tunnel interface-number

    The tunnel interface view is displayed.

  9. Run map interface virtual-ethernet ve-number

    The L2VE interface is bound to the tunnel interface.

    • If a VLANIF interface has been created for a VLAN, this VLAN cannot be specified for a VE interface. If a VLAN has been specified for a VE interface, no VLANIF interface can be created for this VLAN.

    • One tunnel interface can be bound with two VE interfaces, but one VE interface can be bound to only one tunnel interface.

    • Only VE interfaces of the Trunk type can be bound to a tunnel interface.

    • A tunnel interface bound with a VE interface does not support the IPv6 protocol stack. A VE interface cannot be bound to a tunnel interface enabled with the IPv6 protocol stack.

    • To prevent loops, packets transmitted through an Ethernet over GRE tunnel cannot be sent to a GRE tunnel again.

    • Ensure that the VE interfaces at two ends of a GRE tunnel are added to the same VLAN. Otherwise, the VE interfaces cannot learn MAC addresses in the VLANs to which the VE interfaces belong, and these MAC addresses cannot be deleted by the undo mac-address command. Run the undo mac-address [ mac-address ] [ vlan vlan-id ] command to delete a specific MAC address or delete MAC addresses by VLAN ID, or wait until the MAC addresses automatically age out.

    • If a VE interface has been added to VLAN 1, it can no longer be bound to a tunnel interface. If a VE interface has been bound to a tunnel interface, it can no longer be added to VLAN 1.

    • Only interfaces on the X series cards can be added to a VLAN containing a VE interface. Otherwise, the inbound physical interface of a tunnel but not the VE interface learns MAC addresses of tunnel-side packets when you run the display mac-address dynamic slot slot-id command to view MAC addresses of other cards.

Updated: 2019-04-08

Document ID: EDOC1100065751

Views: 34458

Downloads: 50

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