bpdu-tunnel stp vlan

Function

The bpdu-tunnel stp vlan command configures an interface to allow tagged bridge protocol data units (BPDUs) to pass.

The undo bpdu-tunnel stp vlan command restores the default configuration.

By default, an interface does not forward tagged BPDUs.

Format

bpdu-tunnel stp vlan vlan-id1 [ to vlan-id2 ]

undo bpdu-tunnel stp vlan vlan-id1 [ to vlan-id2 ]

Parameters

Parameter Description Value
vlan-id1

Specifies a VLAN range. <lowVid> specifies the start VLAN ID.

The value is an integer ranging from 1 to 4094.

vlan-id2

Specifies a VLAN range. <highVid> specifies the end VLAN ID.

<highVid> must be greater than <lowVid>. <lowVid> and <highVid> specify a VLAN range.

If you do not specify to <highVid>, the interface allows only BPDUs with VLAN ID being <lowVid> to pass.

The value is an integer ranging from 1 to 4094.

Views

Layer 2 100GE interface view, Layer 2 10GE interface view, 25GE-L2 view, 400GE-L2 view, Layer 2 40GE interface view, Layer 2 50GE interface view, Layer 2 Eth-Trunk interface view, Layer 2 GE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ethernet write

Usage Guidelines

Usage Scenario

When different user networks are connected to the same interface of a PE on the convergence layer and the user networks need to send BPDUs over the carrier network to perform the spanning tree calculation, the BPDUs from the user networks carry VLAN tags. You can run the stp bpdu vlan command to configure the VLAN IDs of the BPDUs.

Run the bpdu-tunnel stp vlan command on the user-side interfaces of the PEs. In this situation, the PEs do not send BPDUs to their CPUs for processing. Instead, they transparently transmit the BPDUs through BPDU tunnels over the carrier network to user networks.

In most cases, the bpdu-tunnel stp vlan command is configured on the user-side interface of a PE.

Prerequisites

If the interface is a Layer 3 interface, it must have been switched to a Layer 2 interface using the portswitch command.

Configuration Impact

If the bpdu-tunnel stp vlan command is run more than once, all configurations take effect.

Follow-up Procedure

If a spanning tree protocol is enabled on the interface, run the stp disable command to disable the spanning tree protocol.

Precautions

The bpdu-tunnel stp vlan and bpdu-tunnel enable commands cannot be both configured on the same interface. If they are both configured, the system prompts a configuration conflict.

Example

# Configure 0/1/1 to allow the pass of BPDUs carrying VLAN IDs in the range of 100 to 200.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] portswitch
[*HUAWEI-GigabitEthernet0/1/1] bpdu-tunnel stp vlan 100 to 200
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic