Networking

Enterprise Wi‑Fi authenticates via RADIUS but dynamic VLAN assignment ignored — clients stay on default VLAN

sara_solve
1mo ago
Environment

Environment

Enterprise Wi‑Fi: Aruba/Cisco APs (RADIUS client) authenticating against FreeRADIUS backend; WLAN configured to accept Tunnel‑VLAN assignment via RADIUS Attrs (Tunnel-Private-Group-ID / IETF8021‑Q‑Tag). Switch ports are access ports expecting dynamic VLAN change via RADIUS (voice/data setup).

Symptoms

Symptoms

User devices successfully authenticate and get IP addresses, but remain in default VLAN. Traffic to internal subnets is blocked by access control. RADIUS accounting shows Access‑Accept returned; AP logs no authentication failures.

Observations

Observations

FreeRADIUS debug (radiusd -X) shows Access‑Accept includes Reply‑Message and Tunnel‑Private‑Group‑ID attributes present. AP debug logs do not show VLAN assignment applied. Switch logs show no VLAN change events. When static VLAN manually set per SSID, behaviour works.

Already attempted

Already attempted

Restarted FreeRADIUS and AP; reconfigured RADIUS reply format to include Tunnel‑Private‑Group‑ID as string and numeric variants; tried adding VLAN in AP config as fall-back. No success. Confirmed RADIUS secret and client IPs match.

Question

Question

What steps confirm whether the VLAN attribute is being interpreted by the AP or switch, and how to fix dynamic VLAN assignment so clients are placed into the correct VLAN on successful authentication?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
noahnode Answer
user
Posted 1mo ago • 0 confirmations

Start by checking the RADIUS Access‑Accept packet and the AP's expected attribute type. Run FreeRADIUS in debug mode ('radiusd -X') and note exactly which attributes and types (string vs integer) are returned. Then confirm the AP supports dynamic‑VLAN assignment and which attribute it expects (RFC Tunnel-Private-Group-ID vs vendor-specific). Update your FreeRADIUS reply to use the AP's required attribute format (or use the vendor module) and test. Verify by authenticating a client and watching AP logs for 'VLAN assigned' or by checking client IP/Gateway. If switch involvement is required, confirm the switch accepts dynamic VLAN updates or use 802.1X port-based VLANs as fallback.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1mo ago• Trouble ID

Most likely causes

RADIUS attributes are present but in the wrong format/type (string vs integer) for the AP/vendor, so AP ignores VLAN reply. 70%
Wireless AP not configured or licensed to accept dynamic VLAN assignment from RADIUS; feature disabled. 50%
Switch ports configured as static access and do not accept dynamic VLAN changes from AP or RADIUS CoA, so client remains on default VLAN. 40%

Summary

Dynamic VLAN failures typically stem from one of: attribute format mismatch (vendor-specific vs RFC attribute), AP not configured to accept dynamic VLANs, switch-side lack of CoA/port-control support, or the RADIUS reply using the wrong attribute (Tunnel-Private-Group-ID vs Tunnel-Pvt-Group-Name vs Filter‑ID). Diagnostics: capture full RADIUS debug, check AP vendor docs for required attribute types and vendor-specific attribute IDs, ensure AP is in RADIUS dynamic VLAN mode, and confirm switch supports per-port VLAN updates via the chosen method (RADIUS VLAN assignment vs RADIUS CoA). If AP acts as the VLAN enforcer, the switch must accept dynamic VLANs (or use 802.1X with port-based control).

Suggested Fixes

Diagnostic step 1
Enable verbose RADIUS debugging: run 'radiusd -X' (or equivalent) and capture full Access‑Accept packet; confirm exact attribute IDs/types returned.
Diagnostic step 2
Check AP vendor docs for required RADIUS attribute (name, type) and adjust FreeRADIUS reply to use the vendor-specific module or correct attribute type (integer vs string).
Diagnostic step 3
Verify AP configuration: ensure 'dynamic VLAN' or 'VLAN assignment via RADIUS' is enabled and licensed; check AP log for ignored attributes.

Continue troubleshooting

Matched from the title, description and tags