Configuring STP

The process for configuring STP is as follows:

  1. Enable STP using the below NETCONF statement.
    <protocol xmlns="urn:brocade.com:mgmt:brocade-interface">
    	<spanning-tree xmlns="urn:brocade.com:mgmt:brocade-xstp”>
    		<stp></stp>
    	</spanning-tree>
    </protocol>
  2. Designate the root switch by using the bridge‐priority command. The range is 0 through 61440 and the priority values can be set only in increments of 4096.
    <protocol xmlns="urn:brocade.com:mgmt:brocade-interface">
    	<spanning-tree xmlns="urn:brocade.com:mgmt:brocade-xstp">
    		<stp>
    			<bridge-priority>32768</bridge-priority>
    		</stp>
    	</spanningtree>
    </protocol>
  3. Enable port fast on switch ports by using the spanning-tree portfast command.
    Note

    Note

    Note the following conditions:
    • Port fast only needs to be enabled on ports that connect to workstations or PCs. Repeat these commands for every port connected to workstations or PCs. Do not enable port fast on ports that connect to other switches.
    • If BPDUs are received on a port fast enabled interface, the interface loses the edge port status unless it receives a shut/no shut.
    • Enabling port fast on ports can cause temporary bridging loops, in both trunking and nontrunking mode.
    <interface xmlns="urn:brocade.com:mgmt:brocade-interface">
    	<ethernet>
    		<name>2/5</name>
    		<spanning-tree xmlns="urn:brocade.com:mgmt:brocade-xstp">
    			<portfast>
    				<portfastbasic></portfastbasic>
    			</portfast>
    		</spanning-tree>
    	</ethernet>
    </interface>