Guide
MSTP, EtherChannel and switching resilience (CCNP ENCOR)
This guide explains Catalyst spanning-tree behavior and EtherChannel resilience, including the IOS and IOS XE details needed to reason through common ENCOR questions.
9 parts · 21 practice questions
Spanning tree and switching resilience
Spanning Tree Protocol prevents Layer 2 loops by selecting a loop-free active topology and placing redundant paths into a non-forwarding state. Classic IEEE 802.1D has Disabled, Blocking, Listening, Learning, and Forwarding states. Rapid STP (RSTP, IEEE 802.1w) uses three states: Discarding, Learning, and Forwarding. Discarding combines the old Disabled, Blocking, and Listening behaviors.
RSTP assigns port roles as well as states. A Root Port is the switch's best path to the root bridge, and a Designated Port forwards for its LAN segment. An Alternate Port offers an alternate path toward the root and can take over if the Root Port fails. With RSTP, the new Root Port immediately transitions to forwarding after the old Root Port is blocked, when a new Root Port is selected. A Backup Port backs up a Designated Port on a shared segment, typically where the switch has multiple connections to that segment. Alternate and Backup ports normally discard traffic.
PortFast is for an edge interface connected to an end host. It moves the interface directly to forwarding without waiting for the normal STP delay. BPDU Guard protects that edge: when enabled globally for PortFast ports, or directly on an interface, receipt of a BPDU puts the port into err-disabled state. Global BPDU Guard applies to operational PortFast ports; interface BPDU Guard applies even without PortFast. Restore an err-disabled port after correcting the cause, using the platform's recovery policy or manual interface recovery.
Root Guard keeps a designated port from accepting a superior BPDU and becoming a path toward an unexpected root. It places the affected port into root-inconsistent blocking state while superior BPDUs arrive, then recovers when they stop. Loop Guard addresses a different failure: if BPDUs stop arriving on a Root or Alternate port, such as because of a unidirectional link, it prevents that port from becoming Designated and forwarding, leaving it loop-inconsistent until BPDUs resume.
interface GigabitEthernet1/0/1
spanning-tree portfast
spanning-tree bpduguard enable
spanning-tree guard root
spanning-tree guard loopPVST+
PVST+ runs a separate spanning-tree instance for each VLAN, allowing each VLAN to have its own forwarding topology. On an 802.1Q trunk with native VLAN 1, VLAN 1 BPDUs are sent untagged to both the IEEE STP MAC address 01:80:C2:00:00:00 and the PVST+ MAC address 01:00:0C:CC:CC:CD. Non-VLAN 1 PVST+ BPDUs use the PVST+ MAC address and carry the corresponding VLAN tag. If PVST+ interworks with IEEE spanning tree, a consistent native VLAN is required; VLAN or trunk mismatches can place a port into a PVID-inconsistent or type-inconsistent state to prevent loops.
Rapid PVST+
Rapid PVST+ applies RSTP behavior independently to each VLAN. It retains the three RSTP states, Discarding, Learning, and Forwarding, and the Root, Designated, Alternate, and Backup roles. An Alternate Port offers a path toward the root switch beyond the current Root Port. A Backup Port backs up a Designated Port toward the leaves of the spanning tree and can exist when a switch has multiple connections to a shared LAN segment.
MSTP regions and instances
Multiple Spanning Tree Protocol (MSTP), IEEE 802.1s, groups VLANs onto a smaller number of spanning-tree instances. Catalyst 9500 IOS XE 26 supports up to 65 instances per region, allowing many VLANs to share an instance. Switches are in the same MST region only when the region name, revision number, and complete VLAN-to-instance mapping match. A mismatch makes the link a region boundary; the switches then interoperate using the common spanning-tree information rather than sharing the same region configuration.
- Maximum instances
- Up to 65 per region
- Region match
- Name, revision number, and complete VLAN-to-instance mapping
- Instance 0
- Internal Spanning Tree (IST)
Instance 0 is the Internal Spanning Tree (IST), which carries the region's spanning-tree information. The Common and Internal Spanning Tree (CIST) connects regions to one another and to legacy IEEE 802.1D or 802.1w switches as one logical topology. Additional MST instances carry their topology records inside MST BPDUs, reducing the need to send a separate BPDU stream for every VLAN.
spanning-tree mst configuration
name CAMPUS
revision 1
instance 1 vlan 10-20
exit
spanning-tree mode mstLACP and PAgP EtherChannel negotiation
EtherChannel makes compatible physical links operate as one logical port channel. LACP is the IEEE link-aggregation protocol. Its Active mode sends negotiation packets; Passive waits for the other end. At least one end must be Active, so Active/Active and Active/Passive can form a channel, while Passive/Passive cannot. PAgP is Cisco's negotiation protocol: Desirable initiates and Auto waits, so Auto/Desirable and Desirable/Desirable can negotiate, while Auto/Auto cannot. The On mode forces a channel without negotiation and must be configured consistently at both ends; it does not negotiate with LACP or PAgP modes.
- LACP Active
- Sends negotiation packets
- LACP Passive
- Waits for the other end
- PAgP Auto/Auto
- Cannot negotiate
- On mode
- Forces a channel without negotiation
If a channel fails to form, check that both ends use compatible negotiation protocols and that member ports have matching Layer 2 or Layer 3 settings, speed/duplex, VLAN/trunk settings, and channel-group configuration. Auto/Desirable are PAgP modes, not LACP modes.
interface range GigabitEthernet1/0/1-2
channel-group 1 mode active
! Alternative LACP receiver mode: channel-group 1 mode passive
! PAgP modes: channel-group 1 mode desirable | autoBPDU Filter
BPDU Filter has different behavior at global and interface scope. Globally enabling PortFast BPDU Filter affects PortFast operational interfaces: they send a few BPDUs when the link comes up, then filter outgoing BPDUs. If such an interface receives a BPDU, it loses operational PortFast and filtering is disabled, so STP can operate normally. Interface-level spanning-tree bpdufilter enable suppresses sending and receiving BPDUs unconditionally on that port. That effectively removes STP protection there and can create a loop; reserve it for a deliberate edge-port use case.
spanning-tree portfast edge bpdufilter default
! Per-interface filtering (use with care):
interface GigabitEthernet1/0/10
spanning-tree bpdufilter enableEtherChannel load balancing
A Catalyst switch hashes selected packet fields to choose a member link for each flow; it does not split every packet of one flow across all links. Depending on platform, selectable inputs include source or destination MAC addresses, source or destination IP addresses, and TCP/UDP port numbers, alone or in combinations. The exact supported choices and default vary by Catalyst model and software. On the cited Catalyst 3650 guide, the default is source MAC. A hash choice that sees little variation can leave some links underused, so check actual traffic patterns and platform support when selecting a method.
port-channel load-balance src-dst-ip
show etherchannel load-balanceTopology Change Notification and MAC aging
In classic 802.1D STP, a port state change to or from forwarding can trigger a topology change. A switch sends a Topology Change Notification (TCN) BPDU toward the root bridge; the root signals the change by setting the TC flag in configuration BPDUs. Switches receiving the TC indication shorten dynamic MAC-address aging so stale locations are flushed sooner and traffic can be relearned on the new paths.
- Default MAC aging time
- 300 seconds
- Default Forward Delay
- 15 seconds
- Aging during TC period
- Reduced to 15 seconds
For the classic Cisco IOS 802.1D example, the default MAC aging time is 300 seconds and the default Forward Delay is 15 seconds. During the TC period, aging is reduced to the Forward Delay value, 15 seconds. These are the classic defaults; do not assume the same exact mechanism for RSTP or MSTP, whose topology-change signaling differs. To troubleshoot repeated flooding, inspect spanning-tree detail and track the interface that last triggered a topology change, then check for a flapping link or an end-host port missing PortFast.
show spanning-tree vlan 10 detailOSPF graceful restart helper behavior
In OSPF graceful restart, a restarting router signals its neighbors with a Grace LSA while its forwarding plane keeps using already-installed routes. An eligible neighbor enters helper mode: it preserves the full adjacency and continues advertising the restarting router as reachable while the topology remains stable. Helper operation requires a full adjacency, an unexpired grace period, and local policy allowing help. A Grace LSA flush after successful restart or grace-period expiration ends helper mode. When strict LSA checking is enabled, a changed LSA that would be flooded to the restarting router ends helper mode. Helper mode is enabled by default in the cited Cisco IOS XE implementation, but platform and release support should be checked.
Check your understanding
MSTP, EtherChannel and switching resilience (CCNP ENCOR)
All 9 sections · no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.