< Home

stp tc-restriction enable

Function

The stp tc-restriction enable command enables the TC restriction function.

The undo stp tc-restriction enable command disables the TC restriction function.

By default, the TC restriction function is disabled.

Format

stp tc-restriction enable

undo stp tc-restriction enable

Parameters

None

Views

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view, 25GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If link flapping occurs on an STP-enabled Layer 2 network, the flapping port sends BPDUs carrying the TC flag (or TCN flag in STP mode) to instruct other devices on the Layer 2 network to update ARP and MAC entries. In special scenarios, however, the customer does not want a port to update ARP or MAC entries after it receives TC or TCN packets. In this case, you can run the stp tc-restriction enable command on the port to enable the TC restriction function. After this function is enabled, the port neither updates its local ARP or MAC entries after receiving TC or TCN packets, nor advertises the TC or TCN information to other devices through other ports.

Precautions

After the command is run, ARP and MAC entries may fail to be updated correctly, causing a long packet loss duration in the case of topology changes. Therefore, exercise caution when you run this command.

Example

# Enable the TC restriction function on GE0/0/1.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] stp tc-restriction enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >