Skip to content

Switch Ports Configuration

Dashboard Location: Switching > Switch Ports

Physical Port Management and Configuration

Switch ports configuration in Meraki networks provides administrators with comprehensive control over individual switch port settings, enabling granular network access control, VLAN assignment, security policies, and performance optimization at the port level. This functionality supports network segmentation, access control policies, voice VLAN configuration, storm control, spanning tree protocol settings, and advanced features like MAC address filtering and port scheduling. Switch port configuration is essential for implementing secure network access, optimizing network performance, enforcing organizational policies, and maintaining network stability through proper port-level controls.

Diagram

Diagram

Classes

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

NameTypeConstraintMandatoryDefault Value
portsList[ports]No

ports (meraki.domains.organizations.networks.devices.switch)

NameTypeConstraintMandatoryDefault Value
nameStringmin: 1, max: 127No
tagsListString[min: 1, max: 255]No
enabledBooleantrue, falseNo
typeChoiceaccess, routed, stack, trunkNo
vlanAnyInteger[min: 1, max: 4094] or String[matches: `(?:[1-9][1-9][0-9][1-9][0-9]2
voice_vlanAnyInteger[min: 1, max: 4094] or String[matches: `(?:[1-9][1-9][0-9][1-9][0-9]2
allowed_vlansAnyInteger[min: 1, max: 4094] or String[matches: `(?:[1-9][1-9][0-9][1-9][0-9]2
stp_guardChoicebpdu guard, disabled, loop guard, root guardNo
link_negotiationStringmin: 1, max: 127No
udldChoiceAlert only, EnforceNo
access_policy_typeChoiceCustom access policy, MAC allow list, Open, Sticky MAC allow listNo
mac_allow_listListMACNo
sticky_mac_allow_listListMACNo
sticky_mac_allow_list_limitIntegermin: 1, max: 10No
peer_sgt_capableBooleantrue, falseNo
dai_trustedBooleantrue, falseNo
profileClass[profile]No
dot3azBooleantrue, falseNo
poeBooleantrue, falseNo
isolationBooleantrue, falseNo
rstpBooleantrue, falseNo
storm_controlBooleantrue, falseNo
flexible_stackingBooleantrue, falseNo
port_idsStringRegex: \d{1,3}No
port_schedule_nameStringmin: 1, max: 127No
access_policy_nameStringmin: 1, max: 127No
adaptive_policy_group_nameStringmin: 1, max: 127No

profile (meraki.domains.organizations.networks.devices.switch.ports)

NameTypeConstraintMandatoryDefault Value
enabledBooleantrue, falseNo
inameStringmin: 1, max: 127No
nameStringmin: 1, max: 127No

Examples

Example-1: The example below demonstrates switch port configuration using tested YAML configuration from pipeline fixtures.

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
devices:
- name: "!env access_switch_01"
switch:
ports:
- port_ids: 5,7,10,11,12
name: User Port
tags:
- tag1
enabled: true
type: access
vlan: 1
voice_vlan: 100
allowed_vlans: 1-100
isolation: true
rstp: true
stp_guard: bpdu guard
link_negotiation: Auto negotiate
port_schedule_name: "Weekend Only Port Schedule"
udld: Enforce
storm_control: true
adaptive_policy_group_name: "USERS"
stp_guard: "disabled"
link_negotiation: "Auto negotiate"
storm_control: true