03-Layer 2 - LAN Switching Command Reference

HomeSupportResource CenterRoutersH3C SR8800 Series RoutersH3C SR8800Technical DocumentsCommandCommand ReferenceH3C SR8800 Command Reference-Release3347-6W10303-Layer 2 - LAN Switching Command Reference
06-QinQ Commands
Title Size Download
06-QinQ Commands 80.9 KB

QinQ configuration commands

 

 

NOTE:

In this documentation, base cards refer to the CR-SPE-3020-E cards, and EF interface cards refer to the CR-SPC-XP8LEF, CR-SPC-XP4LEF, CR-SPC-GP48LEF, and CR-SPC-GT48LEF cards.

In this documentation, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L, and SPE cards refer to the cards prefixed with SPE, for example, SPE-1020-E-II.

 

qinq enable

Syntax

qinq enable

undo qinq enable

View

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

Default level

2: System level

Parameters

None

Description

Use the qinq enable command to enable basic QinQ on a port or a group of ports.

Use the undo qinq enable command to disable basic QinQ.

By default, basic QinQ is disabled on ports.

A basic QinQ-enabled port tags received frames with its port VLAN (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 aggregate interface and the member ports in its aggregation group.

Configured in port group view, the command takes effect on all ports in the port group.

Examples

# Enable basic QinQ on GigabitEthernet 4/1/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 4/1/1

[Sysname-GigabitEthernet4/1/1] qinq enable

# Enable basic QinQ on all the ports in port group 1.

<Sysname> system-view

[Sysname] port-group manual 1

[Sysname]-port-group-manual-1] group-member GigabitEthernet 4/1/1 to GigabitEthernet 4/1/6

[Sysname-port-group-manual-1] qinq enable

qinq ethernet-type

Syntax

qinq ethernet-type hex-value

undo qinq ethernet-type

View

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

Default level

2: System level

Parameters

hex-value: Hexadecimal tag protocol identifier (TPID) value, excluding the common protocol type values listed in Table 1.

Table 1 Common protocol type values

Protocol type

Value

ARP

0x0806

PUP

0x0200

RARP

0x8035

IP

0x0800

IPv6

0x86DD

PPPoE

0x8863/0x8864

MPLS

0x8847/0x8848

IPX/SPX

0x8137

IS-IS

0x8000

LACP

0x8809

802.1x

0x888E

Cluster

0x88A7

Reserved

0xFFFD/0xFFFE/0xFFFF

 

Description

Use the qinq ethernet-type command to configure the TPID in the outer VLAN tag on a port.

Use the undo qinq ethernet-type command to restore the default.

The default TPID for the outer VLAN tag on a port is 0x8100.

Configured in Layer 2 Ethernet interface view, the command takes effect on the interface only.

Configured in aggregate interface view, the command takes effect on the Layer 2 aggregate interface and the member ports in its aggregation group.

Configured in port group view, the command takes effect on all ports in the port group.

To change a non-default TPID value to another non-default TPID value, you must first restore the default TPID value (0x8100) on an SPE card a base card, but you can directly change the TPID value on an SPC card an EF interface card.

Examples

# Set the TPID value in the outer VLAN tags to 0x9100 on GigabitEthernet 4/1/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 4/1/1

[Sysname-GigabitEthernet4/1/1] qinq ethernet-type 9100

# Set the TPID value in the outer VLAN tags to 0x9100 on all ports in port group 1.

<Sysname> system-view

[Sysname] port-group manual 1

[Sysname-port-group-manual-1] group-member GigabitEthernet 4/1/1 to GigabitEthernet 4/1/6

[Sysname-port-group-manual-1] qinq ethernet-type 9100