




| Excerpt from the Cisco PDF (above): The switch with the lower Bridge ID (BID) is used to determine the root bridge priority. The BID consists of the root bridge priority and the MAC address assigned to the switch. The BID is not a real number. The root bridge priority is expressed in decimal form and the MAC address is expressed in HEX. The default bridge priority has a value of 32768. The current Root Bridge in the above sample output is ALSwitch2 because it has a lower MAC address. The root bridge priority is at the beginning of the BID. The bridge priority is a very large number. The root bridge priority will always determine the length of the BID because the MAC address is a fixed length. Newer Cisco switches default to PVST. VLAN 1 will be used for this configuration. The available priority value range is 0 to 61440 in increments of 4096. The default value is 32768. The lower the number, the more likely the switch will be chosen as the root switch. Valid priority values are 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, and 61440. All other values are rejected. For Catalyst 3550 switches with the extended system ID release 12.1(8)EA1 and later, the spanning-tree vlan 1 root primary command can be used to set the switch priority to 24576. If all other switches in the VLAN have the default priority, this switch will become the root bridge for VLAN 1. |



| Excerpt from the Cisco PDF (above): PVST+ is automatically enabled on 802.1Q trunks. No user configuration is required. The external spanning-tree behavior on access ports and Inter-Switch Link (ISL) trunks is not affected by PVST+. Cisco IOS supports a maximum of 128 spanning-tree instances. |


|
Excerpt from the Cisco PDF (above): The STP hello timers can be adjusted to decrease the convergence time. Use the diameter keyword to specify the Layer 2 network diameter. The diameter is the maximum number of switch hops between any two end stations in the Layer 2 network. When the network diameter is specified, the switch automatically sets an optimal hello time, forward-delay time, and maximum-age time for the network. This can significantly reduce STP convergence time. Use the hello keyword to override the automatically calculated hello time. Use the show spanning-tree vlan 1 bridge command to check the current STP timers. |
| Excerpt from the Cisco PDF (above): Only the forward delay and the max aging times were changed. The root command with the diameter option should be used to change the STP timers. Default STP timers should not be changed without careful consideration, and if changed, they should be changed only from the Root Bridge. The following commands can be used to change the STP timers: • spanning-tree vlan vlan-id hello-time seconds • spanning-tree vlan vlan-id forward-time seconds • spanning-tree vlan vlan-id max-age seconds |

| Switch | VTP Domain | VTP Mode |
| DS1 | lab10 | Server |
| DS2 | lab10 | Client |
| P1S1 | lab10 | Client |
| P2S1 | lab10 | Client |
| Excerpt from the Cisco PDF (above): PVST is the default STP behavior. However, it has two disadvantages. First, PVST is a Cisco proprietary protocol so it cannot work with other vendor products. Second, PVST creates spanning-tree instances for every VLAN. This can be very processor intensive. MST will be implemented to reduce the processor utilization and load balancing will be provided over the distribution layer switches. |
VLAN |
Name |
10 |
Accounting |
20 |
Marketing |
30 |
Engineering |
40 |
HumanResource |
50 |
GraphicDesign |
| Excerpt from the Cisco PDF (above): Multiple Spanning-Tree Protocol (MST) uses RSTP for rapid convergence. MST enables VLANs to be grouped into a spanning-tree instance. Each instance has a spanning-tree topology that is independent of the other spanning-tree instances. This architecture provides multiple forwarding paths for data traffic and enables load balancing. This also reduces the number of spanning-tree instances that are required to support a large number of VLANs. MST regions are used to partition the network. All switches in the same region must have the same VLAN-to-instance mapping, the same configuration revision number, and the same name. MST groups a few VLANs into one spanning-tree instance unlike PVST, which has a spanning-tree instance for every VLAN. This reduces the number spanning-tree processes required and enhances the switch performance. MST support 16 instances, numbered 1 through 15. MST is configured in the MST configuration mode. It is enabled in the global configuration mode. |

| Excerpt from the Cisco PDF (above): Configure the distribution layer switch as the root bridge to make the network more efficient. To configure a switch to become the root, use the spanning-tree mst instance-id root global configuration command. This will change the switch priority from the default value of 32768 to a significantly lower value. With the lowest root priority, this switch will become the root switch for the specified spanning-tree instance. When this command is entered, the switch will check the switch priorities of the root switches. The switch will set its own priority for the specified instance to 24576 because of the extended system ID support. If any root switch for the specified instance has a switch priority lower than 24576, the switch will set its own priority to 4096 less than the lowest switch priority. |
| Excerpt from the Cisco PDF (above): The [DS1 switch] is now the root bridge with a priority of 24576. Use the spanning-tree mst 1 priority command to manually set the MST root priority. The spanning-tree mst 1 root primary command will dynamically configure the lowest priority. |

| Switch | VTP Domain | VTP Mode |
| DS1 | lab10 | Server |
| DS2 | lab10 | Client |
| P1S1 | lab10 | Client |
| P2S1 | lab10 | Client |
VLAN |
Name |
10 |
Accounting |
20 |
Marketing |
| Excerpt from the Cisco PDF (above): Set a distribution layer switch as the root bridge to increase network efficiency. To further increase efficiency, split the load between the two distribution layer switches. DLSwitch1 will become the root bridge for VLAN 10 and DLSwitch2 will become the root bridge for VLAN 20. Cisco switches use per-VLAN spanning tree (PVST) by default. The range for the priority value is 0 to 61440 in increments of 4096. The default value is 32768. The lower the number, the more likely the switch will be chosen as the root bridge. Valid priority values are 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, and 61440. All other values are rejected. |
| Excerpt from the Cisco PDF (above): The purpose of this lab is to use PortFast, UplinkFast, BPDU guard, root guard, and UDLD to control STP behavior on a port. Scenario: A new redundant switched network has just been implemented. The default behavior of Spanning-Tree Protocol (STP) has created some undesirable results. The ports take up to 50 seconds to reach forwarding state. This prevents DHCP clients from receiving an IP address during normal boot-up. PortFast will be used to prevent this problem in the future. Enabling PortFast can create a security risk in a switched network. A port configured with PortFast will go into blocking state if it receives a Bridge Protocol Data Unit (BPDU). An unauthorized device can send BPDUs into the PortFast interface and set a port to blocking. When the port is in blocking state it will accept all BPDUs. This could lead to false STP information that enters the switched network and causes unexpected STP behavior. Bridge Guard Data Unit (BGDU) will be used to prevent unauthorized BPDUs from entering the switched network through PortFast enabled ports. When the active uplink between the two switches is broken, it takes the redundant link 30 seconds to complete the spanning-tree process before bringing up the backup, or blocked, link. This results in a temporary network outage for users. UplinkFast will be used to reduce STP convergence time. ALSwitch2 is connected with a slower and more unreliable connection. The network administrator wants to prevent the ALSwitch2 from becoming the root bridge or from being in the path to the root bridge. ALSwitch2 should be avoided as much as possible. Root guard will be used to prevent ALSwitch2 from becoming the root bridge. ALSwitch1 is connected to the distribution layer with Gigabit Ethernet links. If the transmit or receive link in a fiber cable is disconnected or cut, then it could lead to a unidirectional link. Unidirectional links can transmit or receive data, but not both. Unidirectional links have an adverse effect on the network. Use UniDirectional Link Detection (UDLD) protocol to prevent unidirectional links from occurring. |

| Excerpt from the Cisco PDF (above): When the BPDU guard feature is enabled on the switch, STP shuts down PortFast enabled interfaces that receive BPDUs instead of putting them into a blocking state. PortFast-enabled interfaces do not receive BPDUs in a valid configuration. The receipt of a BPDU by a PortFast enabled interface indicates an invalid configuration such as the connection of an unauthorized device. The BPDU guard feature blocks BPDUs by placing the interface in the ErrDisable state. The BPDU guard feature provides a secure response to invalid configurations because the interface must be manually placed back in service. |

| Excerpt from the Cisco PDF (above): Prevent ALSwitch2 from becoming the root or from being in the path to the root. The Layer 2 network of a service provider (SP) can include many connections to switches that are not owned by the SP. STP can reconfigure itself in this type of topology and select a customer switch as the STP root switch. The root-guard feature can be configured on interfaces that connect to switches outside of the customer network. STP calculations can be used to identify an interface in the customer network as the root port. Root guard will place this interface in the root-inconsistent or blocked state to prevent the customer switch from becoming the root switch or from being in the path to the root. |
| Excerpt from the Cisco PDF (above): A unidirectional link occurs when traffic sent by the local device is received by the neighbor but traffic from the neighbor is not received by the local device. This indicates that the transmit or receive part of the connection is broken. This can be caused by a cut or disconnected cable. UDLD is a Layer 2 protocol that enables devices connected through fiber-optic or twisted-pair Ethernet cables to monitor the physical configuration of the cables and detect a unidirectional link. All connected devices must support UDLD for the protocol to identify and disable unidirectional links. When UDLD detects a unidirectional link, it shuts down the affected port and sends out an alert. Unidirectional links can cause a variety of problems such as spanning-tree topology loops. |

| Switch | VTP Domain | VTP Mode |
| DS1 | lab10 | Server |
| P1S1 | lab10 | Client |
| P2S1 | lab10 | Client |
VLAN |
Name |
10 |
Accounting |
20 |
Marketing |
| Excerpt from the Cisco PDF (above): An EtherChannel is composed of individual Fast EtherChannel (FEC) or Gigabit EtherChannel (GEC) links, which are bundled into a single logical link, as shown in the graphic. GEC provides fullduplex bandwidth of up to 16 Gbps between a switch and another switch or host. FEC provides the ability to combine eight 100-Mbps full duplex links for a 1.6-Gbps full duplex link. |


| Excerpt from the Cisco PDF (above): Verify the port aggregation protocol (PAgP) operation. The PAgP facilitates the automatic creation of EtherChannels by exchanging packets between Ethernet interfaces. By using PAgP, the switch learns the identity of partners capable of supporting PAgP and learns the capabilities of each interface. It then dynamically groups similarly configured interfaces into a single logical link, channel, or aggregate port. These interfaces are grouped based on hardware, administrative, and port parameter constraints. For example, PAgP groups the interfaces with the same speed, duplex, native VLAN, VLAN range, trunking status, and trunking type. After grouping the links into an EtherChannel, PAgP adds the group to the spanning tree as a single switch port. |

| Excerpt from the Cisco PDF (above): EtherChannel balances the traffic load across the links in a channel. This is accomplished by reducing part of the binary pattern formed from the addresses in the frame to a numerical value that selects one of the links in the channel. EtherChannel load balancing can use either source MAC or destination MAC address forwarding. The load balancing decision is based on source MAC address by default. |