bpdu-tunnel dot1q

Syntax

In Layer 2 Ethernet interface view or port group view:

bpdu-tunnel dot1q { cdp | hgmp | lacp | lldp | pvst | stp | udld | vtp }

undo bpdu-tunnel dot1q { cdp | hgmp | lacp | lldp | pvst | stp | udld | vtp }

In Layer 2 aggregate interface view:

bpdu-tunnel dot1q { cdp | hgmp | pvst | stp | vtp }

undo bpdu-tunnel dot1q { cdp | hgmp | pvst | stp | vtp }

View

Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view

Default level

2: System level

Parameters

cdp: Specifies the Cisco Discovery Protocol (CDP).

hgmp: Specifies the HW Group Management Protocol (HGMP).

lacp: Specifies the Link Aggregation Control Protocol (LACP).

lldp: Specifies the Link Layer Discovery Protocol (LLDP).

pvst: Specifies Per VLAN Spanning Tree (PVST).

stp: Specifies the Spanning Tree Protocol (STP).

udld: Specifies Unidirectional Link Direction (UDLD).

vtp: Specifies the VLAN Trunking Protocol (VTP).

Description

Use bpdu-tunnel dot1q to enable BPDU tunneling for a protocol on the ports.

Use undo bpdu-tunnel dot1q to disable BPDU tunneling for a protocol on the ports.

By default, BPDU tunneling for any protocol is disabled.

Settings made in Layer 2 Ethernet interface view or Layer 2 aggregate interface view take effect only on the Ethernet interface or aggregate interface. Settings made in port group view take effect on all ports in the port group.

Before enabling BPDU tunneling for HGMP, LLDP, or STP on a port, disable the protocol on the port first.

To enable BPDU tunneling for PVST (which is a spanning tree protocol) on a port, disable STP first and then enable BPDU tunneling for STP on the port.

Do not enable BPDU tunneling for LACP, LLDP, or UDLD on the member port of a Layer 2 aggregation group.

Examples

# Disable STP on Ethernet 1/0/1, and then enable BPDU tunneling for STP on the port.

<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] undo stp enable
[Sysname-Ethernet1/0/1] bpdu-tunnel dot1q stp

# Disable STP for port group 1, and then enable BPDU tunneling for STP in the port group.

<Sysname> system-view
[Sysname] port-group manual 1
[Sysname-port-group-manual-1] group-member ethernet 1/0/1 to ethernet 1/0/6
[Sysname-port-group-manual-1] undo stp enable
[Sysname-port-group-manual-1] bpdu-tunnel dot1q stp

# Disable STP on Layer 2 aggregate interface Bridge-Aggregation 1, and then enable BPDU tunneling for STP on the Layer 2 aggregate interface.

<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] undo stp enable
[Sysname-Bridge-Aggregation1] bpdu-tunnel dot1q stp