

Run the stp root primary command on a device to configure the device as the root bridge.(Optional) Configure the root bridge and secondary root bridge.Run the stp mode stp command to set the working mode of the device to STP.īy default, the working mode of a device is MSTP.Run the system-view command to enter the system view.Then, the port only receives BPDUs, and does not forward data or send BPDUs. If the port's own configuration BPDU is superior, the configuration BPDU on the port is not updated and the port is blocked. If the calculated configuration BPDU is superior, the port is selected as the designated port and periodically sends the calculated configuration BPDU. Then the device compares the calculated configuration BPDU with the configuration BPDU received on the port. The device generates a configuration BPDU for each port based on the configuration BPDU on the root port and path cost of the root port.The root port is in the Forwarding state. A non-bridge device selects the port that receives the optimal configuration BPDU as the root port.All the ports on the root bridge are in Forwarding state. Then devices exchange configuration BPDUs and compare their root IDs to find the device with the smallest BID, which becomes the root bridge.

S1 sends configuration BPDUs to S2 through AP1, so S1 is the designated bridge for S2, and AP1 is the designated port on S1.ĭuring network initialization, every device considers itself the root bridge and sets the root ID to its own BID.

Three elements are involved in trimming a ring network into a tree network: root bridge, root port, and designated port. Root Bridge, Root Port, and Designated Port
