qinq vid (available only on the HPE 3100 v2 EI)

Syntax

qinq vid vlan-id

undo qinq vid vlan-id

View

Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view

Default level

2: System level

Parameters

vlan-id: Sets an outer VLAN ID, ranging from 1 to 4094.

Description

Use qinq vid to set the outer VLAN tag that the port adds to customer VLAN frames, and enter QinQ view.

Use undo qinq vid to remove all configurations corresponding to the outer VLAN ID performed in QinQ view.

By default, the outer VLAN tag is the port’s PVID tag.

Configured in Layer 2 Ethernet interface view, the command takes effect on the interface only. Configured in Layer 2 aggregate interface view, the command takes effect on the Layer 2 aggregate interface and all the member ports in the aggregation group. Configured in port group view, the command takes effect on all ports in the port group.

Related command: raw-vlan-id inbound.

Examples

# Configure selective QinQ on Ethernet 1/0/1 to tag frames with outer VLAN 10.

<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] qinq vid 10

# Configure selective QinQ on the ports in port group 1 to tag frames with outer VLAN 10.

<Sysname> system-view
[Sysname] port-group manual 1
[Sysname-port-group-manual-1] group-member ethernet 1/0/1 to ethernet 1/0/6
[Sysname-port-group-manual-1] qinq vid 10