CLI Guide

Table Of Contents
Layer 2 Switching Commands 799
clear spanning-tree detected-protocols
Use the clear spanning-tree detected-protocols command to restart the
protocol migration process (force the renegotiation with neighboring
switches) on all interfaces or on the specified interface.
Syntax
clear spanning-tree detected-protocols [ interface-id ]
interface-id—An Ethernet or port channel interface identifier
Default Configuration
This command has no default setting.
Command Mode
Privileged Exec mode
User Guidelines
This feature is used only when working in RSTP or MSTP mode.
Example
The following example restarts the protocol migration process (forces the
renegotiation with neighboring switches) on Gi1/0/1.
show spanning-tree spanning-tree
forward-time
spanning-tree
portfast
spanning-tree vlan
forward-time
show spanning-tree
summary
spanning-tree guard spanning-tree
portfast bpdufilter
default
spanning-tree vlan
hello-time
show spanning-tree
vlan
spanning-tree
loopguard
spanning-tree
portfast default
spanning-tree vlan
max-age
spanning-tree spanning-tree max-
age
spanning-tree port-
priority (Interface
Configuration)
spanning-tree vlan root
spanning-tree auto-
portfast
spanning-tree max-
hops
spanning-tree vlan
priority