Use it when a FlexConnect AP needs a trunk carrying its management VLAN plus locally switched client VLANs.
AP trunk connection
An AP connects to a trunk port when it switches client traffic locally (FlexConnect or autonomous), so its client VLANs must be allowed on the trunk.
1. FlexConnect/local-switching APs use trunk ports.
2. Native VLAN = AP management.
3. Allow client VLANs.
4. Match FlexConnect VLAN mappings.
5. Prune unneeded VLANs.
trunk → native mgmt VLAN → client VLANs locally switched
Context & applicabilityCommon mistakes · platform/version boundaries
- Client VLANs not allowed on the trunk or not mapped in the flex profile.
- Native VLAN mismatch (AP management lands in the wrong VLAN).
- STP not configured for trunk edge (
spanning-tree portfast trunk). - Mapping VLAN IDs that exist centrally but not at the branch.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- FlexConnect and autonomous APs connect to trunk ports when they switch several client VLANs locally.
- The native VLAN usually carries AP management.
- Allowed VLANs on the trunk must include every locally switched WLAN VLAN.
show interfaces <ap-port> trunk— allowed VLANs, native VLANshow cdp neighbors <ap-port> detail— AP
ReferenceWhat it is1 section · depth on demand
Switch port for a FlexConnect AP
interface GigabitEthernet1/0/10
switchport mode trunk
switchport trunk native vlan 50 ! AP management (untagged)
switchport trunk allowed vlan 50,20,30 ! client VLANs used locally
spanning-tree portfast trunk
Documented example, not captured output. The AP's management IP is in the native VLAN; client VLANs must match the flex profile VLAN mappings.
ReferenceWhy it matters1 section · depth on demand
Overview
When an access point puts client traffic directly onto local VLANs — in FlexConnect local switching or standalone operation — the switch port must be a trunk that carries those VLANs. The AP sends its own management traffic untagged, so the trunk's native VLAN must be the AP management VLAN.
An AP on a trunk port: required for FlexConnect local switching, autonomous APs and some fabric designs, so client VLANs can be tagged at the AP.
interface Gi1/0/11
description AP-FLEX-01
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,20,30
spanning-tree portfast trunk
The native VLAN must be the AP management VLAN, because the AP sends its own traffic untagged.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Connecting an AP to a trunk port
FlexConnect APs that switch client traffic locally put each WLAN's traffic on a VLAN at the AP's own switch port. Cisco's Catalyst 9800 best practices guide says those APs need trunk mode, recommends spanning-tree portfast trunk, and recommends pruning the trunk to the VLANs configured on the AP.
SW(config)# interface GigabitEthernet1/0/21
SW(config-if)# description AP-BR1-03 FlexConnect
SW(config-if)# switchport mode trunk
SW(config-if)# switchport trunk native vlan 50
SW(config-if)# switchport trunk allowed vlan 50,210,220
SW(config-if)# switchport nonegotiate
SW(config-if)# spanning-tree portfast trunk
SW(config-if)# power inline auto
WLC(config)# wireless profile flex BRANCH1-FLEX
WLC(config-wireless-flex-profile)# native-vlan-id 50
WLC(config-wireless-flex-profile)# vlan-name CORP-USERS
WLC(config-wireless-flex-profile-vlan)# vlan-id 210
SW# show interfaces GigabitEthernet1/0/21 trunk
Port Mode Encapsulation Status Native vlan
Gi1/0/21 on 802.1q trunking 50
Port Vlans allowed on trunk
Gi1/0/21 50,210,220
The AP sends its own management and CAPWAP traffic untagged, so the switch port's native VLAN is the AP management VLAN. The flex profile's native VLAN ID must match it (the configuration model technote lists the native VLAN ID among the flex profile settings).
| Switch trunk | Flex profile | Result |
|---|---|---|
| Native 50, allowed 50,210,220 | Native 50, VLANs 210 and 220 | Works |
| Native 1, allowed 50,210 | Native 50 | AP gets an address in the wrong VLAN, or none |
| VLAN 220 not allowed | WLAN mapped to VLAN 220 | Clients on that WLAN get no address |
Local versus FlexConnect switching
| Local mode | FlexConnect local switching | |
|---|---|---|
| Client traffic | Through the controller | Directly at the branch |
| AP port | Access | Trunk |
| Survives WAN loss | No | Yes, for already associated clients and local authentication |
| Latency to the controller | Limited to 20 ms (best practices guide) | Can be higher |
FlexConnect suits branches; local mode suits campuses with the controller nearby.
Documented example, not captured output.
Mechanics
Important negative cases include mismatched trunk/native VLAN, inconsistent bundle parameters, blocked/discarding state, root change, MAC instability, partial member failure or err-disable.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Wireless → Physical WLAN Infrastructure → AP trunk connection. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/wireless/index.html · confidence 94%