- Table of Contents
-
- H3C S7500 Series Command Manual(Release 3100 Series)-(V1.04)
- 00-1Cover
- 01-CLI Commands
- 02-Login Commands
- 03-Configuration File Management Commands
- 04-VLAN Commands
- 05-Extended VLAN Application Commands
- 06-IP Address-IP Performance-IPX Commands
- 07-GVRP Commands
- 08-QinQ Commands
- 09-Port Basic Configuration Commands
- 10-Link Aggregation Commands
- 11-Port Isolation Commands
- 12-Port Binding Commands
- 13-DLDP Commands
- 14-MAC Address Table Commands
- 15-MSTP Commands
- 16-Routing Protocol Commands
- 17-Multicast Commands
- 18-802.1x Commands
- 19-AAA-RADIUS-HWTACACS-EAD Commands
- 20-Traffic Accounting Commands
- 21-VRRP-HA Commands
- 22-ARP Commands
- 23-DHCP Commands
- 24-ACL Commands
- 25-QoS Commands
- 26-Mirroring Commands
- 27-Cluster Commands
- 28-PoE Commands
- 29-UDP-Helper Commands
- 30-SNMP-RMON Commands
- 31-NTP Commands
- 32-SSH Terminal Service Commands
- 33-File System Management Commands
- 34-FTP and TFTP Commands
- 35-Information Center Commands
- 36-DNS Commands
- 37-System Maintenance and Debugging Commands
- 38-HWPing Commands
- 39-RRPP Commands
- 40-NAT-Netstream-Policy Routing Commands
- 41-Telnet Protection Commands
- 42-Hardware-Dependent Software Configuration Commands
- 43-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
08-QinQ Commands | 43 KB |
Chapter 1 QinQ Configuration Commands
1.1 QinQ Configuration Commands
Chapter 2 Selective QinQ Configuration Commands
2.1 Selective QinQ Configuration Commands
Chapter 1 QinQ Configuration Commands
1.1 QinQ Configuration Commands
1.1.1 display port vlan-vpn
Syntax
display port vlan-vpn
View
Any view
Parameters
None
Description
Use the display port vlan-vpn command to display the QinQ configuration of the current system.
Examples
# Display the QinQ configuration of the current system.
<H3C> display port vlan-vpn
Ethernet3/0/4
VLAN-VPN status: enabled
VLAN-VPN VLAN: 1
1.1.2 vlan-vpn enable
Syntax
vlan-vpn enable
undo vlan-vpn
View
Ethernet port view
Parameters
None
Description
Use the vlan-vpn enable command to enable the QinQ function for a port.
Use the undo vlan-vpn command to disable the QinQ function for a port.
By default, the QinQ function is disabled.
With the QinQ function enabled, a received packet is tagged with the default VLAN tag of the receiving port no matter whether or not the packet already carries a VLAN tag. If the packet already carries a VLAN tag, the packet becomes a double-tagged packet. Otherwise, the packet becomes a packet carrying the default VLAN tag of the port.
Examples
# Enable the QinQ function for Ethernet 1/0/1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1] vlan-vpn enable
Chapter 2 Selective QinQ Configuration Commands
& Note:
You can implement traffic-based selective QinQ on an S7500 switch by using ACLs and QoS techniques. Refer to the QoS part of this manual for related commands and operations.
2.1 Selective QinQ Configuration Commands
2.1.1 raw-vlan-id inbound
Syntax
raw-vlan-id inbound vlan-id-list
undo raw-vlan-id inbound { all | vlan-id-list }
View
QinQ view
Parameters
vlan-id-list: List of VLAN IDs. You need to provide this argument in the form of vlan-id-list = { vlan-id | [ to { vlan-id } ] } & <1-10>, where & <1-10> means that you can provide up to ten VLAN IDs/VLAN ID lists.
all: Specifies the packets of all the VLANs.
As for the vlan-id-list argument, the value of 1 to 4095 is not supported due to limited ACL resources.
Description
Use the raw-vlan-id inbound command to specify the outer VLAN tag to be inserted to the packets with the specified inner VLAN tags. This command is used in the inbound direction of the selective QinQ function on the port.
Use the undo raw-vlan-id inbound command to remove the configuration.
Note that the raw-vlan-id inbound command needs to be coupled by the vlan-vpn vid command.
Examples
# Specify to insert the tag of VLAN 20 as the outer tag to the packets with their inner VLAN tags being the tags of VLAN 8 through VLAN 15 for Ethernet 1/0/1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1] vlan-vpn vid 20
[H3C-Ethernet1/0/1-vid-20] raw-vlan-id inbound 8 to 15
2.1.2 vlan-vpn vid
Syntax
vlan-vpn vid vlan-id uplink interface-type interface-number [ untagged ]
undo vlan-vpn vid vlan-id
View
Ethernet port view
Parameters
vid vlan-id: Specifies ID of the VLAN whose tag is to be inserted to matched packets as the outer VLAN tag.
uplink interface-type interface-number: Specifies the upstream port of the packets to be tagged with outer VLAN tags.
untagged: Sets whether to keep VLAN tags of the packets tagged with outer VLAN tags when they are forwarded on the upstream port.
Description
Use the vlan-vpn vid command to specify the VLAN whose tag is to be inserted to matched packets as the outer VLAN tag and specify the upstream port for these packets. You can use the raw-vlan-id inbound command to specify the outer VLAN tag for packets with the specified inner VLAN tags.
Use the undo vlan-vpn vid command to remove the configuration.
When the upstream port and the port where the VLAN tag is configured are not on the same card, if the card where the upstream port resides is unplugged, this configuration is invisible. This configuration takes effect again when the unplugged card is plugged.
When the specified upstream port is available, the configuration of the raw-vlan-id inbound command remains even if the upstream port configuration or untagged attribute in this configuration is modified. When the upstream port is unavailable, the configuration of the raw-vlan-id inbound command is removed if this configuration is modified.
Caution:
l This command must be configured on the port that that will receive private network packets. Before using this command, make sure to carry out the vlan-vpn enable command on the port.
l The configured uplink port needs to be added into the VLAN corresponding to the outer tag before the selective QinQ feature can function properly.
Note that the vlan-vpn vid inbound command needs to be coupled by the raw-vlan-id inbound command.
Examples
# Configure to use VLAN 20 tag as the outer VLAN tag of packets with the inner tag of VLAN 10 received on Ethernet 1/0/1. Specify the upstream port as Ethernet 1/0/5 and specify the upstream port to remove outer tags of the packets when forwarding the packets.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1] vlan-vpn vid 20 uplink Ethernet 1/0/5 untagged
[H3C-Ethernet1/0/1-vid-20] raw-vlan-id inbound 10