< Home

Configuring Basic Ethernet over GRE Functions

Pre-configuration Tasks

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

Procedure

  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 both ends of a GRE tunnel are added to the same VLAN. Otherwise, the VE interfaces will learn MAC addresses not in the VLANs to which the VE interfaces belong, and these MAC addresses cannot be deleted using 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.

    • When configuring Ethernet over GRE, ensure that routes can recurse to GRE tunnels. Otherwise, packets cannot be encapsulated using Ethernet over GRE.

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