Switch STP Configuration
Dashboard Location: Switching > Configure > Switch Settings > STP
Spanning Tree Protocol Configuration
Section titled “Spanning Tree Protocol Configuration”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
Section titled “Diagram”Classes
Section titled “Classes”switch (meraki.domains.organizations.networks)
Section titled “switch (meraki.domains.organizations.networks)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| stp | Class | [stp] | No |
stp (meraki.domains.organizations.networks.switch)
Section titled “stp (meraki.domains.organizations.networks.switch)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| stp_bridge_priority | List | [stp_bridge_priority] | No | |
| rstp | Boolean | true, false | No |
stp_bridge_priority (meraki.domains.organizations.networks.switch.stp)
Section titled “stp_bridge_priority (meraki.domains.organizations.networks.switch.stp)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| switch_profiles | List | String[min: 1, max: 127] | No | |
| switches | List | Any[String[matches: ^[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}$] or String[min: 1, max: 127]] | No | |
| stacks | List | String[min: 1, max: 127] | No | |
| stp_priority | Integer | min: 0, max: 61440 | Yes |
Examples
Section titled “Examples”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