< Home

map interface virtual-ethernet

Function

The map interface virtual-ethernet command binds an L2VE interface to a tunnel interface.

The undo map interface virtual-ethernet command deletes the binding relationship between a tunnel interface and a specified VE interface.

The undo map command deletes the binding relationship between a tunnel interface and all VE interfaces.

By default, no L2VE interface is bound to a tunnel interface.

Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this function.

Format

map interface virtual-ethernet ve-number

undo map interface virtual-ethernet ve-number

undo map

Parameters

Parameter

Description

Value

ve-number

Specifies the number of a VE interface.

The VE interface number must already exist.

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Customers want to use GRE to transparently transmit Ethernet packets over networks of a different network layer protocol, such as the IPv4 network. You can configure Ethernet over GRE to achieve this purpose. Run the map interface virtual-ethernet command in the tunnel interface view to bind a VE interface to a tunnel interface. After the binding, the tunnel interface can transparently transmit Ethernet packets over the GRE tunnel.

Prerequisites

  • A VE interface has been created by using the interface virtual-ethernet ve-number command, and the VE interface has been changed from Layer 3 mode to Layer 2 mode by using the portswitch command.

  • The tunnel protocol of a tunnel interface has been set to GRE by using the tunnel-protocol gre command in the tunnel interface view.

Precautions

  • 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.

Example

# Bind Virtual-Ethernet 0/0/1 to Tunnel 1.
<HUAWEI> system-view
[HUAWEI] interface virtual-ethernet 0/0/1
[HUAWEI-Virtual-Ethernet0/0/1] portswitch
[HUAWEI-Virtual-Ethernet0/0/1] port link-type trunk
[HUAWEI-Virtual-Ethernet0/0/1] undo port trunk allow-pass vlan 1
[HUAWEI-Virtual-Ethernet0/0/1] port trunk allow-pass vlan 10
[HUAWEI-Virtual-Ethernet0/0/1] quit
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol gre
[HUAWEI-Tunnel1] map interface virtual-ethernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >