H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)

HomeSupportSwitchesH3C S3610[S5510] Switch SeriesReference GuidesCommand ReferencesH3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)
04-QinQ-BPDU Tunnel Command
Title Size Download
04-QinQ-BPDU Tunnel Command 67 KB

Chapter 1  QinQ Configuration Commands

1.1  QinQ Configuration Commands

1.1.1  qinq enable

Syntax

qinq enable

undo qinq enable

View

Ethernet port view, port group view

Parameter

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 on an Ethernet port.

After basic QinQ is enabled on a 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.

 

&  Note:

l      For the same port, the basic QinQ feature and the selective QinQ feature cannot be enabled simultaneously.

l      Do not enable the voice VLAN feature and the basic QinQ feature at the same time. Otherwise, the voice VLAN feature may operate improperly.

 

Example

# Enable basic QinQ for Ethernet 1/0/4.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/4

[Sysname-Ethernet1/0/4] qinq enable

# Enable basic QinQ for all the ports in port group 1.

<Sysname> system-view

[Sysname] link-aggregation group 1 mode manual

[Sysname] interface Ethernet 1/0/2

[Sysname-Ethernet1/0/2] port link-aggregation group 1

[Sysname-Ethernet1/0/2] interface Ethernet 1/0/3

[Sysname-Ethernet1/0/3] port link-aggregation group 1

[Sysname-Ethernet1/0/3] quit

[Sysname] port-group aggregation 1

[Sysname-port-group-aggregation-1] qinq enable

1.1.2  qinq ethernet-type

Syntax

qinq ethernet-type hex-value

undo qinq ethernet-type

View

Ethernet port view

Parameter

hex-value: Hexadecimal protocol type ID, in the range 1 to 0xFFFF.

Description

Use the qinq ethernet-type command to configure the TPID value for QinQ frames on a port.

Use the undo qinq ethernet-type command to restore the default TPID value.

By default, the TPID value for QinQ frames on all ports is 0x8100.

Example

# Set the TPID value for QinQ frames on Ethernet1/0/1 to 0x8200.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] qinq ethernet-type 8200

1.1.3  qinq vid

Syntax

qinq vid vlan-id

undo qinq vid vlan-id

View

Ethernet port view, port group view

Parameter

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

Description

Use the qinq vid command to enter QinQ view and configure the outer VLAN tag to be added to BPDUs.

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 interface 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 coupled with the raw-vlan-id inbound command to add different outer VLAN tags for frames of different VLANs.

Related command: raw-vlan-id inbound.

 

&  Note:

l      For the same port, the basic QinQ feature and the selective QinQ feature cannot be enabled simultaneously.

l      Do not enable the voice VLAN feature and the selective QinQ feature at the same time. Otherwise, the voice VLAN feature may operate improperly.

 

Example

# Configure Ethernet1/0/4 to tag frames with the tag of VLAN 10 as the outer VLAN tag.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/4

[Sysname-Ethernet1/0/4] qinq vid 10

[Sysname-Ethernet1/0/4-vid-10]

# Configure all the ports in port group 1 to tag frames with the tag of VLAN 10 as the outer VLAN tag.

<Sysname> system-view

[Sysname] link-aggregation group 1 mode manual

[Sysname] interface Ethernet 1/0/2

[Sysname-Ethernet1/0/2] port link-aggregation group 1

[Sysname-Ethernet1/0/2] interface Ethernet 1/0/3

[Sysname-Ethernet1/0/3] port link-aggregation group 1

[Sysname-Ethernet1/0/3] quit

[Sysname] port-group aggregation 1

[Sysname-port-group-aggregation-1] qinq vid 10

[Sysname-port-group-aggregation-1-vid-10]

1.1.4  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

Parameter

vlan-id-list: List of VLAN IDs, defined in the form of vlan-id-list = { vlan-id [ to vlan-id ] }&<1-10>, where the VLAN ID after the to keyword must be larger than or equal to the VLAN ID before the to keyword, and &<1-10> means that you can specify up to 10 VLANs or VLAN ranges for this argument.

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 that an inner VLAN tag can correspond to only one outer VLAN tag. To change the outer VLAN tag of a frame, you need to remove the existing outer VLAN tag configuration and then configure a new outer VLAN tag.

Related command: qinq vid.

Example

# Configure to tag frames of VLAN3, VLAN5, and VLAN 20 through VLAN 100 with the tag of VLAN 100 as the outer VLAN tag.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/4

[Sysname-Ethernet1/0/4] qinq vid 100

[Sysname-Ethernet1/0/4-vid-100] raw-vlan-id inbound 3 5 20 to 100

 


Chapter 2  BPDU Tunnel Configuration Commands

2.1  BPDU Tunnel Configuration Commands

2.1.1  bpdu-tunnel dot1q enable

Command

bpdu-tunnel dot1q enable

undo bpdu-tunnel dot1q enable

View

System view, port view, port group view

Parameter

None

Description

Use the bpdu-tunnel dot1q enable command to enable BPDU tunnel.

Use the undo bpdu-tunnel dot1q enable command to disable BPDU tunnel.

Configured in system view, the command enables or disables BPDU tunnel globally; configured in interface view, the command enables or disables BPDU tunnel on the current port only; configured in port group view, the command enables or disables BPDU tunnel on all ports in the port group.

By default, BPDU tunnel is enabled globally but disabled for all ports.

 

&  Note:

BPDU tunnel must be enabled globally before the BPDU tunnel configuration for a port can take effect.

 

Example

# Enable BPDU tunnel globally.

<Sysname> system-view

[Sysname] bpdu-tunnel dot1q enable

# Enable BPDU tunnel for Ethernet1/0/1.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] bpdu-tunnel dot1q enable

# Enable BPDU tunnel for all the ports in port group 1.

<Sysname> system-view

[Sysname] link-aggregation group 1 mode manual

[Sysname] interface ethernet 1/0/2

[Sysname-Ethernet1/0/2] port link-aggregation group 1

[Sysname-Ethernet1/0/2] interface ethernet 1/0/3

[Sysname-Ethernet1/0/3] port link-aggregation group 1

[Sysname-Ethernet1/0/3] quit

[Sysname] port-group aggregation 1

[Sysname-port-group-aggregation-1] bpdu-tunnel dot1q enable

2.1.2  bpdu-tunnel dot1q stp

Command

bpdu-tunnel dot1q stp

undo bpdu-tunnel dot1q stp

View

Ethernet port view, port group view

Parameter

None

Description

Use the bpdu-tunnel dot1q stp command to enable STP BPDU tunnel for a port or a group of ports.

Use the undo bpdu-tunnel dot1q stp command to disable STP BPDU tunnel for a port or a group of ports.

By default, the STP BPDU tunnel 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.

Relative command: bpdu-tunnel dot1q enable.

Example

# Enable BPDU tunnel for STP packets on Ethernet1/0/4.

<Sysname> system-view

[Sysname] interface Ethernet 1/0/4

[Sysname-Ethernet1/0/4] stp disable

[Sysname-Ethernet1/0/4] undo ntdp enable

[Sysname-Ethernet1/0/4] bpdu-tunnel dot1q enable

[Sysname-Ethernet1/0/4] bpdu-tunnel dot1q stp

# Enable BPDU tunnel for STP packets on all the ports of port group 1.

<Sysname> system-view

[Sysname] link-aggregation group 1 mode manual

[Sysname] interface Ethernet 1/0/2

[Sysname-Ethernet1/0/2] port link-aggregation group 1

[Sysname-Ethernet1/0/2] interface Ethernet 1/0/3

[Sysname-Ethernet1/0/3] port link-aggregation group 1

[Sysname-Ethernet1/0/3] quit

[Sysname] port-group aggregation 1

[Sysname-port-group-aggregation-1] stp disable

[Sysname-port-group-aggregation-1] bpdu-tunnel dot1q enable

[Sysname-port-group-aggregation-1] bpdu-tunnel dot1q stp

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网