set spantree spanguard

Use this command to enable or disable the Spanning Tree span guard function.

Syntax

set spantree spanguard {enable | disable}

Parameters

enable | disable Enables or disables the span guard function.

Defaults

None.

Mode

All command modes.

Usage

When enabled, this prevents an unauthorized bridge from becoming part of the active Spanning Tree topology. It does this by disabling a port that receives a BPDU when that port has been defined as an edge (user) port (as described in set spantree adminedge). This port will remain disabled until the amount of time defined by set spantree spanguardtimeout has passed since the last seen BPDU or the port is manually unlocked (as described in clear / set spantree spanguardlock).

Example

This example shows how to enable the span guard function:

System(rw)->set spantree spanguard enable