- Table of Contents
-
- H3C S5500-EI Series Switches Command Manual-Release 2102(V1.01)
- 00-1Cover
- 01-Login Commands
- 02-VLAN Commands
- 03-IP Addressing and IP Performance Commands
- 04-QinQ-BPDU Tunneling Commands
- 05-Port Correlation Configuration Commands
- 06-Link Aggregation Commands
- 07-MAC Address Table Management Commands
- 08-IP Source Guard Commands
- 09-DLDP Commands
- 10-MSTP Commands
- 11-IP Routing-GR Overview Commands
- 12-IPv4 Routing Commands
- 13-IPv6 Routing Commands
- 14-IPv6 Commands
- 15-Multicast Commands
- 16-802.1x-HABP-MAC Authentication Commands
- 17-AAA RADIUS HWTACACS Commands
- 18-ARP Commands
- 19-DHCP Commands
- 20-ACL Commands
- 21-QoS Commands
- 22-Port Mirroring Commands
- 23-Cluster Management Commands
- 24-UDP Helper Commands
- 25-SNMP-RMON Commands
- 26-NTP Commands
- 27-DNS Commands
- 28-File System Management Commands
- 29-Information Center Commands
- 30-System Maintaining and Debugging Commands
- 31-NQA Commands
- 32-VRRP Commands
- 33-SSH Commands
- 34-RRPP Commands
- 35-Port Security Commands
- 36-LLDP Commands
- 37-PoE Commands
- 38-sFlow Commands
- 39-SSL-HTTPS Commands
- 40-PKI Commands
- 41-Track Commands
- 42-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
04-QinQ-BPDU Tunneling Commands | 51 KB |
Table of Contents
Chapter 1 QinQ Configuration Commands
1.1 QinQ Configuration Commands
Chapter 2 BPDU Tunneling Configuration Commands
2.1 BPDU Tunneling Configuration Commands
2.1.2 bpdu-tunnel dot1q enable
Chapter 1 QinQ Configuration Commands
1.1 QinQ Configuration Commands
1.1.1 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. When you want to alter the external VLAN Tag, please first delete the configuration of the old external, and then configure new external VLAN Tag.
Related commands: qinq vid.
Examples
# Configure port GigabitEthernet 1/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 1/0/1
[Sysname-GigabitEthernet1/0/1] qinq vid 100
[Sysname-GigabitEthernet1/0/1-vid-100] raw-vlan-id inbound 3 5 20 to 100
1.1.2 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 1/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qinq enable
1.1.3 qinq ethernet-type
Syntax
qinq ethernet-type { customer-tag | service-tag } hex-value
undo qinq ethernet-type { customer-tag | service-tag }
View
Ethernet port view, port group view
Parameters
customer-tag: Sets the TPID value of the customer VLAN tag.
service-tag: Sets the TPID value of the service provider VLAN tag.
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 both service provider and customer VLAN tags are 0x8100.
Examples
# Set the TPID value to be carried in the customer VLAN tag to 0x8200.
<Sysname> system-view
[Sysname] qinq ethernet-type customer-tag 8200
1.1.4 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 1/0/1 to tag frames with outer tag of VLAN 10.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qinq vid 10
[Sysname-GigabitEthernet1/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 1/0/2
[Sysname-GigabitEthernet1/0/2] port link-aggregation group 1
[Sysname-GigabitEthernet1/0/2] interface GigabitEthernet 1/0/3
[Sysname-GigabitEthernet1/0/3] port link-aggregation group 1
[Sysname-GigabitEthernet1/0/3] quit
[Sysname] port-group aggregation 1
[Sysname-port-group-aggregation-1] qinq vid 10
[Sysname-port-group-aggregation-1-vid-10]
Chapter 2 BPDU Tunneling Configuration Commands
2.1 BPDU Tunneling Configuration Commands
2.1.1 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 1/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp disable
[Sysname-GigabitEthernet1/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 1/0/2
[Sysname-GigabitEthernet1/0/2] port link-aggregation group 1
[Sysname-GigabitEthernet1/0/2] interface GigabitEthernet 1/0/3
[Sysname-GigabitEthernet1/0/3] port link-aggregation group 1
[Sysname-GigabitEthernet1/0/3] quit
[Sysname] port-group aggregation 1
[Sysname-port-group-aggregation-1] stp disable
[Sysname-port-group-aggregation-1] bpdu-tunnel dot1q stp
2.1.2 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 1/0/1 port.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/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 1/0/2
[Sysname-GigabitEthernet1/0/2] port link-aggregation group 1
[Sysname-GigabitEthernet1/0/2] interface GigabitEthernet 1/0/3
[Sysname-GigabitEthernet1/0/3] port link-aggregation group 1
[Sysname-GigabitEthernet1/0/3] quit
[Sysname] port-group aggregation 1
[Sysname-port-group-aggregation-1] bpdu-tunnel dot1q enable
2.1.3 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