Skip to content

Switch STP Configuration

Dashboard Location: Switching > Configure > Switch Settings > STP

Switch Spanning Tree Protocol (STP) configuration in Meraki networks provides administrators with comprehensive loop prevention and network topology management capabilities, enabling rapid spanning tree protocol (RSTP) implementation, bridge priority customization, convergence optimization, and network stability assurance. This functionality supports automatic loop detection, failover mechanisms, redundant path management, and network topology optimization. STP configuration is essential for preventing broadcast storms, maintaining network stability, ensuring redundant connectivity, and providing automatic failover capabilities in enterprise switched networks.

Diagram

switch (meraki.domains.organizations.networks)

Section titled “switch (meraki.domains.organizations.networks)”
NameTypeConstraintMandatoryDefault Value
stpClass[stp]No

stp (meraki.domains.organizations.networks.switch)

Section titled “stp (meraki.domains.organizations.networks.switch)”
NameTypeConstraintMandatoryDefault Value
stp_bridge_priorityList[stp_bridge_priority]No
rstpBooleantrue, falseNo

stp_bridge_priority (meraki.domains.organizations.networks.switch.stp)

Section titled “stp_bridge_priority (meraki.domains.organizations.networks.switch.stp)”
NameTypeConstraintMandatoryDefault Value
switch_profilesListString[min: 1, max: 127]No
switchesListAny[String[matches: ^[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}$] or String[min: 1, max: 127]]No
stacksListString[min: 1, max: 127]No
stp_priorityIntegermin: 0, max: 61440Yes

Example-1: The example below demonstrates switch STP configuration.

This configuration manages Spanning Tree Protocol settings for loop prevention and network topology optimization. The example includes RSTP enablement and bridge priority configuration for network stability and redundancy management.

This configuration establishes loop prevention mechanisms using “stp” settings with “rstp” (true/false) for enabling Rapid Spanning Tree Protocol and “stp_bridge_priority” arrays containing “stacks” definitions for switch stack identification (here configured with “DEV_CORE” name) and “stp_priority” value of 28672 for bridge priority assignment. The configuration enables RSTP for faster convergence (2-3 seconds vs 30-50 seconds with classic STP), assigns custom bridge priorities to influence root bridge selection in network topology, and ensures loop-free network operation with automatic failover capabilities for redundant connections while maintaining optimal traffic paths.

meraki:
domains:
- name: !env domain
administrator:
name: !env org_admin
organizations:
- name: !env org
networks:
- name: !env network_name
product_types:
- appliance
- switch
- wireless
- camera
- sensor
- cellularGateway
switch:
stp:
rstp: true
stp_bridge_priority:
- stacks:
- "DEV_CORE"
stp_priority: 28672
# - switch_profiles:
# - 'DEV_CORE'
# stp_priority: 28672
# - switches:
# - '!env dmz_switch_01'
# stp_priority: 28672
# - switches:
# - 'L3Switch'
# stp_priority: 28672