Before you configure basic Ethernet over GRE functions, establish a GRE tunnel.
The system view is displayed.
A VE interface is created and the VE interface view is displayed.
The VE interface is changed from Layer 3 mode to Layer 2 mode. By default, a VE interface works in Layer 3 mode.
The link type of the VE interface is set to Trunk.
Delete VE interface from VLAN 1.
The VE interface is added to the specified VLANs.
Return to the system view.
The tunnel interface view is displayed.
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.