The ve-group command configures a VE interface to work in multi-service access mode and binds the VE interface to a specified VE group.
The undo ve-group command restores a VE interface to common mode.
By default, a VE interface works in common mode.
Parameter | Description | Value |
---|---|---|
ve-group-id | Specifies the ID of a VE group. | The value is an integer ranging from 1 to 8. |
l2-terminate | Sets the VE interface to an L2VE interface that terminates the L2VPN. | - |
l3-access | Sets the VE interface to an L3VE interface that accesses the L3VPN. | - |
Usage Scenario
To change a VE interface to an L2VE interface, run the ve-group ve-group-id l2-terminate command.
To change a VE interface to an L3VE interface, run the ve-group ve-group-id l3-access command.
Precautions
A VE group has only one L2VE interface and one L3VE interface.
The two VE interfaces in a VE group must be on the same chassis.
Multiple sub-interfaces can be created for each L2VE or L3VE interface to provide access for different VLAN services.
# Set Virtual-Ethernet 0/0/1 to an L2VE interface.
<HUAWEI> system-view [HUAWEI] interface virtual-ethernet 0/0/1 [HUAWEI-Virtual-Ethernet0/0/1] ve-group 1 l2-terminate
# Set Virtual-Ethernet 0/0/2 to an L3VE interface.
<HUAWEI> system-view [HUAWEI] interface virtual-ethernet 0/0/2 [HUAWEI-Virtual-Ethernet0/0/2] ve-group 1 l3-access