Configuring stp – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 362

330
Network OS NETCONF Operations Guide
53-1003231-02
Configuring STP
24
Configuring STP
To configure STP, perform the following steps.
1. Issue the <edit-config> RPC to configure the <protocol> node in the
urn:brocade.com:mgmt:brocade-interface namespace.
2. Under the <protocol> node, include the <spanning-tree> node from the
urn:brocade.com:mgmt:brocade-xstp namespace.
3. Under the <spanning-tree> node, include the <stp> node element to configure global STP
parameters.
“Enabling STP, RSTP, MSTP, PVST, or Rapid PVST”
on page 338 for details.
4. Under the STP node, designate the root switch using the <bridge-priority> leaf node.
“Specifying the bridge priority for all xSTP”
through 61440 and the priority values can be set only in increments of 4096. The default value
is 32768.
<protocol xmlns="urn:brocade.com:mgmt:brocade-interface">
<spanning-tree>
<stp>
<bridge-priority>28672</bridge-priority>
</stp>
</spanning-tree>
</protocol>
5. Optional: Enable the port fast feature on switch ports that connect directly to workstations or
PCs.
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>22/0/10</name>
<shutdown xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
<spanning-tree>
<portfast>
<portfastbasic/>
</portfast>
</spanning-tree>
</tengigabitethernet>
</interface>
“Enabling port fast (STP and PVST)”
6. Repeat
for every port connected to a workstation or PC.
NOTE
Do not enable port fast on ports that connect to other switches.
Enabling port fast on ports can cause temporary bridging loops, in both trunking and
non-trunking mode.
7. To influence selection of the root port, set the port priority.
The range is 0 through 240 in increments of 16. The default is 128. A lower number designates
a higher priority.