< Home

ve-group

Function

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.

Format

ve-group ve-group-id { l2-terminate | l3-access }

undo ve-group

Parameters

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

Views

VE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In L2VPN access to L3VPN scenarios:
  • 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.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic