Docsity

Spanning Tree Protocol Question and answers correctly solved 2026/2027, Study Guides, Projects, Research of Advanced Education

Toggle sidebar
bg1
Spanning Tree Protocol Question and
answers correctly solved 2026/2027
What STP is enabled by default on Cisco switches? - correct answer PVST+
You receive the following output from a switch:
S2#sh spanning-tree
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 32769
Address 0001.42A7.A603
Cost 4
Port 26(GigabitEthernet1/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
[output cut]
Which are true regarding this switch?
A. The switch is a root bridge.
B. The switch is a non-root bridge.
C. The root bridge is four switches away.
D. The switch is running 802.1w.
E. The switch is running STP PVST+. - correct answer B, D. The switch is not the
root bridge for VLAN 1 or the output would tell us exactly that. We can see that the
root bridge for VLAN 1 is off of interface G1/2 with a cost of 4, meaning it is directly
connected. Use the command show cdp nei to find your root bridge at this point.
Also, the switch is running RSTP (802.1d), not STP.
If you want to effectively disable STP on a port connected to a server, which
command would you use?
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Spanning Tree Protocol Question and answers correctly solved 2026/2027 and more Study Guides, Projects, Research Advanced Education in PDF only on Docsity!

Spanning Tree Protocol Question and

answers correctly solved 2026/

What STP is enabled by default on Cisco switches? - correct answer PVST+ You receive the following output from a switch: S2#sh spanning-tree VLAN Spanning tree enabled protocol rstp Root ID Priority 32769 Address 0001.42A7.A Cost 4 Port 26(GigabitEthernet1/2) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec [output cut] Which are true regarding this switch? A. The switch is a root bridge. B. The switch is a non-root bridge. C. The root bridge is four switches away. D. The switch is running 802.1w. E. The switch is running STP PVST+. - correct answer B, D. The switch is not the root bridge for VLAN 1 or the output would tell us exactly that. We can see that the root bridge for VLAN 1 is off of interface G1/2 with a cost of 4, meaning it is directly connected. Use the command show cdp nei to find your root bridge at this point. Also, the switch is running RSTP (802.1d), not STP. If you want to effectively disable STP on a port connected to a server, which command would you use?

A. disable spanning-tree B. spanning-tree off C. spanning-tree security D. spanning-tree portfast - correct answer D. If you have a server or other devices connected into your switch that you're totally sure won't create a switching loop if STP is disabled, you can use something called PortFast on these ports. Using it means the port won't spend the usual 50 seconds to come up while STP is converging. Understand this doesn't completely disable STP, just stops any port configured with PortFast from transitioning the different port states, and immediately puts the port into forwarding state. Which of the following would you use to find the VLANs for which your switch is the root bridge? A. show spanning-tree B. show root all C. show spanning-tree port root VLAN D. show spanning-tree summary - correct answer A, D. It is important that you can find your root bridge, and the show spanning-tree command will help you do this. To quickly find out which VLANs your switch is the root bridge for, use the show spanning-tree summary command. You want to run the new 802.1w on your switches. Which of the following would enable this protocol? A. Switch(config)#spanning-tree mode rapid-pvst B. Switch#spanning-tree mode rapid-pvst C. Switch(config)#spanning-tree mode 802.1w D. Switch#spanning-tree mode 802.1w - correct answer A. 802.1w is the also called Rapid Spanning Tree Protocol. It is not enabled by default on Cisco switches, but it is a better STP to run because it has all the fixes that the Cisco extensions provide with 802.1d. Remember, Cisco runs RSTP PVST+, not just RSTP.

Which of the following are true regarding RSTP? A. RSTP speeds the recalculation of the spanning tree when the layer 2 network topology changes. B. RSTP is an IEEE standard that redefines STP port roles, states, and BPDUs. C. RSTP is extremely proactive and very quick, and therefore it absolutely needs the 802.1 delay timers. D. RSTP (802.1w) supersedes 802.1d while remaining proprietary. E. All of the 802.1d terminology and most parameters have been changed. F. 802.1w is capable of reverting to 802.1d to interoperate with traditional switches on a per-port basis. - correct answer A, B, F. RSTP helps with convergence issues that plague traditional STP. Rapid PVST+ is based on the 802.1w standard in the same way that PVST+ is based on 802.1d. The operation of Rapid PVST+ is simply a separate instance of 802.1w for each VLAN What does BPDU Guard perform? A. Makes sure the port is receiving BPDUs from the correct upstream switch. B. Makes sure the port is not receiving BPDUs from the upstream switch, only the root. C. If a BPDU is received on a BPDU Guard port, PortFast is used to shut down the port. D. Shuts down a port if a BPDU is seen on that port. - correct answer D. BPDU Guard is used when a port is configured for PortFast, or it should be used, because if that port receives a BPDU from another switch, BPDU Guard will shut that port down to stop a loop from occurring. How many bits is the sys-id-ext field in a BPDU? A. 4 B. 8 C. 12

D. 16 - correct answer C. To allow for the PVST+ to operate, there's a field inserted into the BPDU to accommodate the extended system ID so that PVST+ can have a root bridge configured on a per- STP instance. The extended system ID (VLAN ID) is a 12-bit field, and we can even see what this field is carrying via the show spanning-tree command output. There are four connections between two switches running RSTP PVST+ and you want to figure out how to achieve higher bandwidth without sacrificing the resiliency that RSTP provides. What can you configure between these two switches to achieve higher bandwidth than the default configuration is already providing? A. Set PortFast and BPDU Guard, which provides faster convergence. B. Configure unequal cost load balancing with RSTP PVST+. C. Place all four links into the same EtherChannel bundle. D. Configure PPP and use multilink. - correct answer C. PortFast and BPDU Guard allow a port to transition to the forwarding state quickly, which is great for a switch port but not for load balancing. You can somewhat load balance with RSTP, but that is out of the scope of our objectives, and although you can use PPP to configure multilink (bundle links), this is performed on asynchronous or synchronous serial links. Cisco's EtherChannel can bundle up to eight ports between switches. In which circumstance are multiple copies of the same unicast frame likely to be transmitted in a switched LAN? A. During high-traffic periods B. After broken links are reestablished C. When upper-layer protocols require high reliability D. In an improperly implemented redundant topology - correct answer D. If the Spanning Tree Protocol is not running on your switches and you connect them together with redundant links, you will have broadcast storms and multiple frame copies; you will have broadcast storms and multiple frame copies being received by the same destination device..

enable LACP, although just configuring the channel-group command under your interfaces will enable the bundle, but options A and D are the best Cisco objective answers. Which two commands would guarantee your switch to be the root bridge for VLAN 30? A. spanning-tree vlan 30 priority 0 B. spanning-tree vlan 30 priority 16384 C. spanning-tree vlan 30 root guarantee D. spanning-tree vlan 30 root primary - correct answer A, D. You can set the priority to any value from 0 through 61,440 in increments of 4,096. Setting it to zero (0) means that the switch will always be a root as long as it has a lower MAC than another switch with its bridge ID also set to 0. You can also force a switch to be a root for a VLAN with the spanning-tree vlan vlan# root primary command. Why does Cisco use its proprietary extension of PVST+ with STP and RSTP? A. Root bridge placement enables faster convergence as well as optimal path determination. B. Non-root bridge placement clearly enables faster convergence as well as optimal path determination. C. PVST+ allows for faster discarding of non-IP frames. D. PVST+ is actually an IEEE standard called 802.1w. - correct answer A. By using per-VLAN spanning tree, the root bridge can be placed in the center of where all the resources are for a particular VLAN, which enables optimal path determination. Which are states in 802.1d? A. Blocking B. Discarding C. Listening D. Learning

E. Forwarding F. Alternate - correct answer A, C, D, E. Each 802.1d port transitions through blocking, listening, learning, and finally forwarding after 50 seconds, by default. RSTP uses discarding, learning, and forwarding only. Which of the following are roles in STP? A. Blocking B. Discarding C. Root D. Non-designated E. Forwarding F. Designated - correct answer A, C, D, E, F. The roles a switch port can play in STP are root, non-root, designated, non-designated, forwarding, and blocking. Discarding is used in RSTP, and disabled could be a role, but it's not listed as a possible answer. What STP feature causes an interface to be placed in the forwarding state as soon as the interface is physically active? a. STP b. EtherChannel c. Root Guard d. PortFast - correct answer d. PortFast Which of the following facts determines how often a nonroot bridge or switch sends an 802.1D STP hello BPDU message? a. The hello timer as configured on that switch. b. The hello timer as configured on the root switch. c. It is always every 2 seconds.

b. Forwarding Consider the following command output: SW1# show interfaces f0/11 status Port Name Status Vlan Duplex Speed Type Fa0/11 connected 3 a-full 100 10/100BaseTX A frame arrives on this same switch's port F0/1, an access port in VLAN 3. The frame is destined to MAC address FFFF.FFFF.FFFF. Which of the following statements is true, based on the information about F0/11 in the show command output, about whether SW will forward the frame out port F0/11? a. The output confirms that SW1 will definitely forward the frame out F0/11. b. The output confirms that SW1 will definitely not forward the frame out F0/11. c. The output confirms that it is possible for SW1 to forward the frame out F0/11, but not definitely. - correct answer c. The output confirms that it is possible for SW to forward the frame out F0/11, but not definitely. An Ethernet frame arrives at switch SW1, entering on port F0/1. F0/1 does not trunk. SW1 forwards the frame out F0/2. Which of the following statements is true about the logic SW1 uses when forwarding the frame? a. Forward based on MAC table entries for the F0/1's access VLAN b. Forward based on MAC table entries for the F0/2's access VLAN c. Forward based on MAC table entries for the F0/1's native VLAN d. Forward based on MAC table entries in all VLANs - correct answer A. The switch forwarding process considers MAC table entries for one VLAN only. That VLAN is based on the inbound interface, and for an access interface, that VLAN is the access VLAN assigned to the inbound interface. The VLAN is never determined by the outbound interface (F0/2 in this case). The native VLAN could not matter because the inbound interface was not a trunk.

How is a incoming Frame process without STP? - correct answer Step 1. Determine the VLAN in which the frame should be forwarded, as follows: A. If the frame arrives on an access interface, use the interface's access VLAN. B. If the frame arrives on a trunk interface, use the VLAN listed in the frame's trunking header. Step 2. Add the source MAC address to the MAC address table, with incoming interface and VLAN ID. Step 3. Look for the destination MAC address of the frame in the MAC address table, but only for entries in the VLAN identified at Step 1. Follow one of the next steps depending on whether the destination MAC is found: A. Found: Forward the frame out the only interface listed in the matched address table entry B. Not found: Flood the frame out all other access ports in that same VLAN and out all trunk ports that list this VLAN as fully supported (active, in the allowed list, not pruned, STP forwarding) What does it mean when a port in blocking state? - correct answer The port is not learning mac address and ignoring frames entering that port. This affect what is displayed on the mac address-table. What will a switch do when it receives a frame destine for a different vlan? - correct answer The switch must determine the VLAN in which the frame arrived. Then forwards the frame out ports in that same VLAN only or out a trunk ports that supports that VLAN. A _____ port or a ______ port determines how the switch determines the incoming frame's VLAN - correct answer access , trunk The show interfaces status display what information? - correct answer the interfaces status, vlan, speed and duplex and if it's a trunk or access port

How is the Hello timer determine? - correct answer It is set by the root bridge. All switches use the timers as dictated by the root switch, which the root lists in its periodic hello BPDU messages.