- Table of Contents
-
- H3C WX6103 Access Controller Switch Interface Board Command Reference-6W102
- 00-Preface
- 01-Login Commands
- 02-VLAN Commands
- 03-IP Addressing and IP Performance Commands
- 04-QinQ-BPDU Tunneling Commands
- 05-Port Correlation Commands
- 06-Link Aggregation Commands
- 07-MAC Address Table Management Commands
- 08-Port Security Commands
- 09-MSTP Commands
- 10-IP Routing-GR Overview Commands
- 11-IPv4 Routing Commands
- 12-IP Source Guard Commands
- 13-DLDP Commands
- 14-Multicast Commands
- 15-LLDP Commands
- 16-sFlow Commands
- 17-ARP Commands
- 18-DHCP Commands
- 19-ACL Commands
- 20-QoS Commands
- 21-Port Mirroring Commands
- 22-UDP Helper Commands
- 23-SNMP-RMON Commands
- 24-NTP Commands
- 25-DNS Commands
- 26-File System Management Commands
- 27-Information Center Commands
- 28-System Maintaining and Debugging Commands
- 29-NQA Commands
- 30-SSH Commands
- 31-SSL-HTTPS Commands
- 32-PKI Commands
- 33-Track Commands
- 34-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
04-QinQ-BPDU Tunneling Commands | 55.06 KB |
The term switch in this document refers to a switch in a generic sense or an access controller configured with the switching function unless otherwise specified.
QinQ Configuration Commands
raw-vlan-id inbound
Syntax
raw-vlan-id inbound { all | vlan-id-list }
undo raw-vlan-id inbound { all | vlan-id-list }
View
QinQ view
Parameters
vlan-id-list: Specifies one or multiple VLAN IDs. 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 start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID.
all: Specifies all VLAN IDs.
Description
Use the raw-vlan-id inbound command to add the current outer VLAN tag for the specified inner VLAN IDs.
Use the undo raw-vlan-id inbound command to remove the configuration.
Note: An inner VLAN Tag corresponds to only one outer VLAN Tag. If you want to configure a new outer VLAN Tag, you need to first delete the configuration of the current outer VLAN Tag.
Related commands: qinq vid.
Examples
# Configure port GigabitEthernet 0/0/1 to tag frames of VLAN 3, VLAN 5, and VLAN 20 through VLAN 100 with the outer tag of VLAN 100.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/1
[Sysname-GigabitEthernet0/0/1] qinq vid 100
[Sysname-GigabitEthernet0/0/1-vid-100] raw-vlan-id inbound 3 5 20 to 100
qinq enable
Syntax
qinq enable
undo qinq enable
View
Ethernet port view, port group view
Parameters
None
Description
Use the qinq enable command to enable basic QinQ for the current Ethernet port.
Use the undo qinq enable command to disable basic QinQ for the current Ethernet port.
By default, basic QinQ is disabled for Ethernet port.
After basic QinQ is enabled on the port, frames on this port will be tagged with a new VLAN tag, the VLAN ID in which is the default VLAN ID of the port.
Configured in Ethernet port view, the setting is effective on the current port only; configured in port group view, the setting is effective on all ports in the port group.
Examples
# Enable basic QinQ on port GigabitEthernet 0/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/1
[Sysname-GigabitEthernet0/0/1] qinq enable
qinq ethernet-type
Syntax
qinq ethernet-type { customer-tag | service-tag } hex-value
undo qinq ethernet-type
View
Ethernet port view, port group view
Parameters
customer-tag: Specifies the TPID value of the customer network.
Service-tag: Specifies the TPID value of the service provider network.
hex-value: Hexadecimal protocol type ID, in the range of 0x0001 to 0xFFFF, but you cannot set it to any of the protocol type values listed in Table 1-1.
Table 1-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 value to be carried in the outer tag.
Use the undo qinq ethernet-type command to restore the TPID value to be carried in the outer tag to the system default.
By default, the TPID values in VLAN tags are 0x8100.
Examples
# Set the TPID value to be carried in the VLAN tag to 0x8200.
<Sysname> system-view
[Sysname] qinq ethernet-type customer-tag 8200
qinq vid
Syntax
qinq vid vlan-id
undo qinq vid vlan-id
View
Ethernet port view, port group view
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 VLAN ID performed in QinQ view.
By default, the outer VLAN tag is the VLAN tag corresponding to the port’s default VLAN ID.
Configured in Ethernet port view, the setting is effective on the current port only; configured in port group view, the setting is effective on all ports in the port group.
This command must be used in conjunction with the raw-vlan-id inbound command to add different outer VLAN tags for frames of different VLANs. This command is meaningless when used alone.
Related commands: raw-vlan-id inbound.
Examples
# Configure GigabitEthernet 0/0/1 to tag frames with outer tag of VLAN 10.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/1
[Sysname-GigabitEthernet0/0/1] qinq vid 10
[Sysname-GigabitEthernet0/0/1-vid-10]
# Configure all the port in port group 1 to tag frames with outer tag of VLAN 10.
<Sysname> system-view
[Sysname] link-aggregation group 1 mode manual
[Sysname] interface GigabitEthernet 0/0/2
[Sysname-GigabitEthernet0/0/2] port link-aggregation group 1
[Sysname-GigabitEthernet0/0/2] interface GigabitEthernet 0/0/3
[Sysname-GigabitEthernet0/0/3] port link-aggregation group 1
[Sysname-GigabitEthernet0/0/3] quit
[Sysname] port-group aggregation 1
[Sysname-port-group-aggregation-1] qinq vid 10
[Sysname-port-group-aggregation-1-vid-10]
BPDU Tunneling Configuration Commands
bpdu-tunnel dot1q stp
Syntax
bpdu-tunnel dot1q stp
undo bpdu-tunnel dot1q stp
View
Ethernet port view, port group view
Parameters
None
Description
Use the bpdu-tunnel dot1q stp command to enable STP BPDU tunneling for a port or a group of ports.
Use the undo bpdu-tunnel dot1q stp command to disable STP BPDU tunneling for a port or a group of ports.
By default, the STP BPDU tunneling feature is disabled for all ports.
Configured in Ethernet port view, the setting is effective on the current port only; configured in port group view, the setting is effective on all ports in the port group.
Before you can enable the STP BPDU tunneling feature on a port, you need to enable the BPDU tunneling feature and disable STP on the port.
Relative command: bpdu-tunnel dot1q enable.
Examples
# Enable STP BPDU tunneling on GigabitEthernet 0/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/1
[Sysname-GigabitEthernet0/0/1] stp disable
[Sysname-GigabitEthernet0/0/1] bpdu-tunnel dot1q stp
# Enable STP BPDU tunneling on all the ports of the port group 1.
<Sysname> system-view
[Sysname] link-aggregation group 1 mode manual
[Sysname] interface GigabitEthernet 0/0/2
[Sysname-GigabitEthernet0/0/2] port link-aggregation group 1
[Sysname-GigabitEthernet0/0/2] interface GigabitEthernet 0/0/3
[Sysname-GigabitEthernet0/0/3] port link-aggregation group 1
[Sysname-GigabitEthernet0/0/3] quit
[Sysname] port-group aggregation 1
[Sysname-port-group-aggregation-1] stp disable
[Sysname-port-group-aggregation-1] bpdu-tunnel dot1q stp
bpdu-tunnel dot1q enable
Syntax
bpdu-tunnel dot1q enable
undo bpdu-tunnel dot1q enable
View
System view, Ethernet port view, port group view
Parameters
None
Description
Use the bpdu-tunnel dot1q enable command to enable BPDU tunneling.
Use the undo bpdu-tunnel dot1q enable command to disable BPDU tunneling.
Configured in system view, the setting takes effect globally; configured in Ethernet port view, the setting takes effect on the current port only; configured in port group view, the setting takes effect on all ports in the port group.
By default, BPDU tunneling is enabled globally but disabled for all ports.
Note: BPDU tunneling must be enabled globally before the BPDU tunnel configuration for a port can take effect.
Examples
# Enable BPDU tunneling globally.
<Sysname> system-view
[Sysname] bpdu-tunnel dot1q enable
# Enable BPDU tunneling on the GigabitEthernet 0/0/1 port.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/1
[Sysname-GigabitEthernet0/0/1] bpdu-tunnel dot1q enable
# Enable BPDU tunneling on all the ports in the port group 1.
<Sysname> system-view
[Sysname] link-aggregation group 1 mode manual
[Sysname] interface GigabitEthernet 0/0/2
[Sysname-GigabitEthernet0/0/2] port link-aggregation group 1
[Sysname-GigabitEthernet0/0/2] interface GigabitEthernet 0/0/3
[Sysname-GigabitEthernet0/0/3] port link-aggregation group 1
[Sysname-GigabitEthernet0/0/3] quit
[Sysname] port-group aggregation 1
[Sysname-port-group-aggregation-1] bpdu-tunnel dot1q enable
bpdu-tunnel tunnel-dmac
Syntax
bpdu-tunnel tunnel-dmac mac-address
undo bpdu-tunnel tunnel-dmac
View
System view
Parameters
mac-address: Destination multicast MAC address for BPDU Tunnel frames, in the format of H-H-H. The allowed values are 0100-0CCD-CDD0, 0100-0CCD-CDD1, 0100-0CCD-CDD2, and 010F-E200-0003.
Description
Use the bpdu-tunnel tunnel-dmac command to configure the destination multicast MAC address for BPDU Tunnel frames.
Use the undo bpdu-tunnel tunnel-dmac command to restore the default value.
By default, the destination multicast MAC address for BPDU Tunnel frames is 0x010F-E200-0003.
Examples
# Set the destination multicast MAC address for BPDU Tunnel frames to 0100-0CCD-CDD0.
<Sysname> system-view
[Sysname] bpdu-tunnel tunnel-dmac 0100-0ccd-cdd0