143
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet)
Example
Enable the BPDU filter function for port 2:
T1500-28PCT(config)# interface fastEthernet 1/0/2
T1500-28PCT(config-if)# spanning-tree bpdufilter
spanning-tree bpduguard
Description
The spanning-tree bpduguard command is used to enable the BPDU protect
function for a port. With the BPDU protect function enabled, the port will set itself
automatically as ERROR-PORT when it receives BPDU packets, and the port
will disable the forwarding function for a while. To disable the BPDU protect
function, please use no spanning-tree bpduguard command.
Syntax
spanning-tree bpduguard
no spanning-tree bpduguard
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet)
Example
Enable the BPDU protect function for port 2:
T1500-28PCT(config)# interface fastEthernet 2
T1500-28PCT(config-if)# spanning-tree bpduguard
spanning-tree guard loop
Description
The spanning-tree guard loop command is used to enable the Loop Protect
function for a port. Loop Protect is to prevent the loops in the network brought by
recalculating STP because of link failures and network congestions. To disable
the Loop Protect function, please use no spanning-tree guard loop command.