mac

194
port priority is, the higher the priority is.
Example: Set the port priority as 4096 on the port 1.
Switch(Config-If-Ethernet1/1)#spanning-tree port-priority 4096
6.1.27 spanning-tree priority
Command: spanning-tree priority <bridge-priority>
no spanning-tree priority
Function: Configure the spanning-tree priority; the no spanning-tree priority
command restores the default priority.
Parameter: <bridge-priority> is the priority of the bridging switch. Its value should be
round times of 4096 between 0 and 61440, such as 0, 4096, 8192… 61440.
Command Mode: Global Mode.
Default: Priority is 32768.
Usage Guide: The bridge ID can be altered by changing the priority of the switch. Further,
the priority information can also be used for voting of the root bridge and the specified
ports. The bridge priority value of the switch is smaller, however the priority is higher.
Example: Configure the priority is 4096.
Switch(config)#spanning-tree priority 4096
6.1.28 spanning-tree rootguard
Command: spanning-tree rootguard
no spanning-tree rootguard
Function: Set the port is root port, ―no spanning-tree rootguardcommand sets the port
is non-root port.
Parameter: None.
Command mode: Port Mode.
Default: Port is non-root port.
Usage Guide: The command is used in Port Mode, if the port is configured to be a
rootguand port, it is forbidden to be a MSTP root port. If superior BPDU packet is received
from a rootguard port, MSTP did not recalculate spanning-tree, and just set the status of
the port to be root_inconsistent (blocked).If no superior BPDU packet is received from a
blocked rootguard port, the port status will restore to be forwarding. The rootguard
function can maintain a relative stable spanning-tree topology when a new switch is added
to the network.
Example: Set the port 1 is root port.