Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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.
1-1
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.
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.
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 ports default VLAN tag.
Note that:
z
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
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 ports default VLAN tag.
Note that:
z
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
1-5