Вы находитесь на странице: 1из 6

Table of Contents

1 QinQ Configuration Commands···············································································································1-1 QinQ Configuration Commands··············································································································1-1 raw-vlan-id inbound ·························································································································1-1 qinq enable······································································································································1-2 qinq ethernet-type····························································································································1-3 qinq vid ············································································································································1-4

i

1

QinQ Configuration Commands

1 QinQ Configuration Commands Throughout this document, customer network VLANs (CVLANs), also called inner VLANs, refer

Throughout this document, customer network VLANs (CVLANs), also called inner VLANs, refer to the VLANs that a customer uses on the private network; and service provider network VLANs (SVLANs), also called outer VLANs, refer to the VLANs that a service provider uses to carry VLAN tagged traffic for customers.

QinQ Configuration Commands

raw-vlan-id inbound

Syntax

raw-vlan-id inbound { all | vlan-list }

undo raw-vlan-id inbound { all | vlan-list }

View

QinQ view

Default Level

2: System level

Parameters

vlan-list: Specifies one or multiple CVLANs in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1-10>. You can provide up to 10 VLAN ID lists, by each of which you can specify an individual VLAN ID in the form of vlan-id, or a VLAN ID range in the form of vlan-id to vlan-id, where the VLAN ID after to must be greater than the VLAN ID before to. The vlan-id argument ranges from 1 to 4094.

all: Specifies all VLAN IDs.

Description

Use the raw-vlan-id inbound command to tag frames of the specified CVLANs with the current SVLAN.

Use the undo raw-vlan-id inbound command to remove the configuration.

1-1

You can run this command in the same view many times. A new configuration does

You can run this command in the same view many times. A new configuration does not overwrite

the previous ones and the configured values are arranged in an ascending order automatically. An inner VLAN tag corresponds to only one outer VLAN tag.

If you want to change the outer VLAN tag, you need to delete the old outer tag configuration and then configure a new outer VLAN tag.

Related commands: qinq vid.

Examples

# Configure Olt 1/0/1 to tag frames of VLAN 3, VLAN 5, and VLAN 20 through VLAN 100 with SVLAN

100.

<Sysname> system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] qinq vid 100 [Sysname-Olt1/0/1-vid-100] raw-vlan-id inbound 3 5 20 to 100

qinq enable

Syntax

qinq enable

undo qinq enable

View

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

Default Level

2: System level

Parameters

None

Description

Use the qinq enable command to enable basic QinQ on the current port(s).

Use the undo qinq enable command to disable basic QinQ on the current port(s).

By default, basic QinQ is disabled on all ports.

A basic QinQ-enabled port tags received frames with the port’s default VLAN tag.

Note that:

Configuration made in Ethernet interface view takes effect on the current port only. Configuration made in Layer-2 aggregate interface view takes effect on the Layer-2 aggregate interface and the member ports in its aggregation group. Configuration made in port group view takes effect on all ports in the port group. Configuration made in OLT port view takes effect on the current port only.

1-2

You can configure this command on a Layer-2 aggregate interface and its member ports separately. Configuration made on an aggregation member port takes effect immediately. For detailed information about link aggregation, refer to Link Aggregation Configuration in the Access Volume.

Examples

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

<Sysname> system-view [Sysname] interface gigabitethernet 1/1/1 [Sysname-GigabitEthernet1/1/1] qinq enable

# Enable basic QinQ on Olt 1/0/1.

<Sysname> system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1]qinq enable

qinq ethernet-type

Syntax

qinq ethernet-type hex-value

undo qinq ethernet-type

View

System view

Default Level

2: System level

Parameters

hex-value: Hexadecimal protocol type value, in the range of 0x0001 to 0xFFFF. However, do not set it to any of the protocol type values listed in Table 1-1.

Table 1-1 Reserved 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

1-3

Protocol type

Value

802.1x

0x888E

Cluster

0x88A7

Reserved

0xFFFD/0xFFFE/0xFFFF

Description

Use the qinq ethernet-type command to configure the TPID value in VLAN tags.

Use the undo qinq ethernet-type command to restore the TPID value in VLAN tags to the system default.

By default, the TPID value in the outer VLAN tags is 0x8100.

Examples

# Set the TPID value in the outer VLAN tags to 0x8200.

<Sysname> system-view [Sysname] qinq ethernet-type 8200

qinq vid

Syntax

qinq vid vlan-id

undo qinq vid vlan-id

View

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

Default Level

2: System level

Parameters

vlan-id: Outer VLAN ID, in the range of 1 to 4094.

Description

Use the qinq vid command to enter QinQ view and configure the outer VLAN tag for the port to add.

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

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

Note that:

Configuration made in Ethernet interface view takes effect on the current port only. Configuration made in Layer-2 aggregate interface view takes effect on the Layer-2 aggregate interface and the member ports in its aggregation group. Configuration made in port group view takes effect on all ports in the port group. Configuration made in OLT port view takes effect on the current port only. You can configure this command on a Layer-2 aggregate interface and its member ports separately. Configuration made on an aggregation member port takes effect immediately. For

1-4

detailed information about link aggregation, refer to Link Aggregation Configuration in the Access Volume.

Related commands: raw-vlan-id inbound, ethernet-type.

Examples

# Configure GigabitEthernet 1/1/1 to tag frames with outer VLAN 10.

<Sysname> system-view [Sysname] interface GigabitEthernet1/1/1 [Sysname- GigabitEthernet1/1/1] qinq vid 10

# Configure Olt 1/0/1 to tag frames with outer VLAN 10.

<Sysname> system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] qinq vid 10

1-5