vlan-group

Function

The vlan-group command creates a VLAN group and enters the VLAN group view.

The undo vlan-group command deletes a VLAN group.

By default, no VLAN group is configured on sub-interfaces.

Format

vlan-group group-id

undo vlan-group group-id

Parameters

Parameter Description Value
group-id

Specifies the VLAN group ID.

The value is an integer ranging from 1 to 16.

Views

100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface view, PW-VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ethernet write

Usage Guidelines

Usage Scenario

QinQ has been deployed on edge devices of the carrier network. The following scenarios must be implemented based on VLAN groups.

  • If network administrators need to deploy QoS policies for different services or users, high-priority service traffic can be preferentially transmitted over the carrier network, improving user experience.
  • To check QinQ packet statistics on a device, run the display qinq statistics command. The command output helps you determine whether the device is working properly. Run the vlan-group command to create a VLAN group.

Configuration Impact

After a VLAN group is created, you can configure the working mode for the VLAN group, enable VLAN group-based QinQ packet statistics, and view QinQ packet statistics.

Follow-up Procedure

  1. Perform any of the following operations:
  • Run the dot1q termination vid low-pe-vid [ to high-pe-vid ] vlan-group group-id command in the sub-interface view to bind the VLAN ID terminated by the sub-interface for dot1q VLAN tag termination to the VLAN group.
  • Run the qinq termination pe-vid pe-vid [ to high-pe-vid ] ce-vid low-ce-vid [ to high-ce-vid ] vlan-group group-id command in the sub-interface view to bind the VLAN ID terminated by the sub-interface for QinQ VLAN tag termination to the VLAN group.
  • Run the qinq stacking vid low-ce-vid [ to high-ce-vid ] vlan-group group-id command in the sub-interface view to bind the outer tag to the VLAN group.
  1. Run the group mode command in the VLAN group view to configure the mode of the user VLAN group.
  2. Run the statistic enable (VLAN group view) command in the VLAN group view to enable VLAN-group-based QinQ packet statistics collection.

Precautions

If you configure vlan-group after you run the qinq stacking vid command on an Ethernet sub-interface, the qinq stacking vid command cannot be run.

Example

# Create VLAN group 1 on GE0/1/1.1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] vlan-group 1
[*HUAWEI-GigabitEthernet0/1/1.1-vlangroup1]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >