04-Layer 2 - LAN Switching Command Reference

HomeSupportSwitchesH3C S9500E Switch SeriesReference GuidesCommand ReferencesH3C S9500E Command Reference-Release1728-6W17004-Layer 2 - LAN Switching Command Reference
06-QinQ Commands
Title Size Download
06-QinQ Commands 70.16 KB

QinQ configuration commands

qinq enable

Syntax

qinq enable

undo qinq enable

View

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

Default level

2: System level

Parameters

None

Description

Use the qinq enable command to enable the basic QinQ function.

Use the undo qinq enable command to disable the basic QinQ function.

By default, the basic QinQ function is disabled.

With the basic QinQ function enabled on a port, the port tags each received frame with the VLAN tag of the default VLAN of the port.

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 function on GigabitEthernet 4/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 4/0/1

[Sysname-GigabitEthernet4/0/1] qinq enable

qinq ethernet-type

Syntax

qinq ethernet-type hex-value

undo qinq ethernet-type

View

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

Default level

2: System level

Parameters

hex-value: Sets a 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 set the TPID in the outer VLAN tag of QinQ frames.

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

The default TPID in the outer VLAN tag of QinQ frames is 0x8100.

A board supports only one TPID in addition to its default TPID.

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.

If you execute the command repeatedly, the most recent TPID value takes effect.

Examples

# Set the TPID in the outer VLAN tag of QinQ frames to 0x9100 on GigabitEthernet 4/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 4/0/1

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

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网