EX Switches provide Layer 2 loop prevention through Spanning Tree Protocol (STP), Rapid Spanning Tree protocol (RSTP), and Multiple Spanning Tree Protocol (MSTP). Root protection increases the efficiency of STP, RSTP, and MSTP by allowing network administrators to manually enforce the root bridge placement in the network. This article explains the steps to configure this feature for the EX Switches.
Peer STP applications running on switch interfaces exchange a special type of frame called a bridge protocol data unit (BPDU). Switches communicate interface information using BPDUs to create a loop-free topology that ultimately determines the root bridge and which interfaces block or forward traffic in the spanning tree. However, a root port elected through this process has the possibility of being wrongly elected. A user bridge application running on a PC can generate BPDUs, too, and interfere with root port election. To prevent this from happening, enable root protection on interfaces that should not receive superior BPDUs from the root bridge and should not be elected as the root port. These interfaces are typically located on an administrative boundary and are designated ports. When root protection is enabled on an interface:
Switch> show spanning-tree interface Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-0/0/0.0 128:513 128:513 32768.0019e253b3c0 200000 FWD DESG ge-0/0/45.0 128:558 128:558 32768.0019e253b3c0 20000 FWD DESG ge-0/0/46.0 128:559 128:559 32768.0019e253b3c0 20000 FWD DESG ge-0/0/47.0 128:560 128:1008 8192.002283685400 20000 FWD
ROOT
Switch# set protocols mstp interface ge-0/0/47.0 no-root-port Switch# show protocols mstp interface ge-0/0/47.0 { no-root-port; }
Switch> show spanning-tree interface Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-0/0/0.0 128:513 128:2 24576.0014a99fb280 200000 FWD ROOT ge-0/0/45.0 128:558 128:558 32768.0019e253b3c0 20000 FWD DESG ge-0/0/46.0 128:559 128:559 32768.0019e253b3c0 20000 FWD DESG ge-0/0/47.0 128:560 128:1008 8192.002283685400 20000 BLK ALT (Root-Incon) ge-1/0/0.0 128:625 128:625 32768.0019e253b3c0 200000 FWD DESG Switch> run show spanning-tree interface ge-0/0/47.0 detail Spanning tree interface parameters for instance 0 Interface name : ge-0/0/47.0 Port identifier : 128.560 Designated port ID : 128.1008 Port cost : 20000 Port state : Blocking Designated bridge ID : 8192.00:22:83:68:54:00 Port role : Alternate (Root-Inconsistent) Link type : Pt-Pt/NONEDGE Boundary port : Yes