H3C S5500-SI Series Ethernet Switches Command Manual-Release 1205-(V1.03)

HomeSupportSwitchesH3C S5500 Switch SeriesReference GuidesCommand ReferencesH3C S5500-SI Series Ethernet Switches Command Manual-Release 1205-(V1.03)
05-QinQ-BPDU TUNNEL Command
Title Size Download
05-QinQ-BPDU TUNNEL Command 71 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 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.

Example

# Enable basic QinQ for GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qinq enable

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

<Sysname> system-view

[Sysname] port-group manual 1

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

1.1.2  qinq ethernet-type

Syntax

qinq ethernet-type hex-value

undo qinq ethernet-type

View

System view

Parameter

hex-value: Hexadecimal protocol type ID, in the range of 1 to FFFF.

Description

Use the qinq ethernet-type command to configure a global QinQ TPID value.

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

By default, the QinQ TPID is 0x8100.

Example

# Set the global TPID value to 0x8200.

<Sysname> system-view

[Sysname] 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.

Example

# Configure GigabitEthernet1/0/1 to tag frames with outer VLAN 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 ports in port group 1 to tag frames with outer VLAN tag of VLAN 10.

<Sysname> system-view

[Sysname] port-group manual 1

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

[Sysname-port-group-manual-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: A set of VLAN IDs, defined 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.

 

  Caution:

A frame cannot be tagged with different outer VLAN tags at the same time. If you want to change an outer VLAN tag, you must delete the old outer VLAN tag configuration and configure a new outer VLAN tag.

 

Related command: qinq vid.

Example

# Configure GigabitEthernet1/0/6 to tag frames of VLAN3, VLAN5, and VLAN 20 through VLAN 100 with the outer VLAN tag of VLAN 100.

<Sysname> system-view

[Sysname] interface GigabitEthernet 1/0/6

[Sysname-GigabitEthernet1/0/6] qinq vid 100

[Sysname-GigabitEthernet1/0/6-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, Ethernet 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 Ethernet port view, the setting is effective on the current port only; 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:

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

l      For an Ethernet port, as STP is incompatible with STP BPDU tunnel, the two features cannot be enabled at the same time. Before enabling STP BPDU tunnel for a port, make sure STP is not enabled on the port.

l      For an Ethernet port, as the BPDU tunnel feature is incompatible with GVRP, the two features cannot be enabled at the same time. Before enabling BPDU tunnel for a port, make sure GVRP is not enabled on the port.

l      For an Ethernet port, as the BPDU tunnel feature is incompatible with NTDP, the two features cannot be enabled at the same time. Before enabling BPDU tunnel for a port, make sure NTDP is not enabled on the port (you can use the undo ntdp enable command to disable NTDP). For information about NTDP, refer to the Cluster part in this manual.

 

Example

# Enable BPDU tunnel globally.

<Sysname> system-view

[Sysname] bpdu-tunnel dot1q enable

# Enable BPDU tunnel for GigabitEthernet1/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 1/0/1

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

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

<Sysname> system-view

[Sysname] port-group manual 1

[Sysname-port-group-manual-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 STP BPDU tunnel for GigabitEthernet1/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 tunnel for all the ports of the port group 1.

<Sysname> system-view

[Sysname] port-group manual 1

[Sysname-port-group-manual-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 Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网