802.1X adds an authentication step between plugging in and getting connected. Until a device proves who it is, the port forwards only EAPOL authentication frames, so DHCP, ARP and everything else stays blocked.
Three parties take part in every exchange:
- Supplicant. This is the device asking for access, such as a laptop with 802.1X configured in its wired network settings. Windows, macOS, Linux, iOS and Android all ship with a supplicant built in.
- Authenticator. The UniFi switch relays the conversation between device and server. It enforces the outcome but never decides it.
- Authentication server. A RADIUS server checks the credentials and returns an accept or reject. The reply can also carry a VLAN assignment.
On the UniFi side, the setup has three pieces. First, you create a RADIUS profile under Settings > Profiles that points at a server — either the built-in RADIUS server on a UniFi gateway such as a Dream Machine or Cloud Gateway, or an external server like FreeRADIUS or Windows NPS.
Next, you enable 802.1X control on the switch itself, choosing that RADIUS profile and a fallback VLAN. Finally, you set the 802.1X mode on each port profile, which is where most of the nuance lives.
The per-port modes break down as follows:
- Force Authorized. No authentication happens, and the port behaves like an ordinary switch port. Uplinks, gateway ports and AP ports belong here.
- Force Unauthorized. The port never forwards client traffic at all. It's a blunt instrument, but it works as a hard lockout.
- Auto. The port requires a successful 802.1X exchange from a supplicant before it forwards anything. This is the right mode for workstation jacks.
- MAC-Based. The switch authenticates the device using its MAC address as the credential. No supplicant is needed on the device.
- Multi-Host. Once one device on the port authenticates, every device behind it is allowed through. It exists for phones and small passthrough setups.
Dynamic VLAN assignment is where 802.1X becomes more than a gate. When the RADIUS reply carries the standard tunnel attributes — Tunnel-Type set to VLAN (13), Tunnel-Medium-Type set to 802 (6) and Tunnel-Private-Group-ID set to the VLAN ID — the switch places the device on that network regardless of the port's native VLAN.
The built-in UniFi RADIUS server handles this through the VLAN field on each user account. As a result, a single Workstation profile can serve every desk: a staff laptop lands on the trusted LAN, a contractor's credentials land on a restricted network, and nobody re-patches anything.
The EAP method matters too. The built-in server works with username-and-password methods such as PEAP-MSCHAPv2, which is quick to roll out, while certificate-based EAP-TLS — stronger, since no reusable password ever crosses the wire — usually means pointing the RADIUS profile at an external server.
Note that 802.1X support varies across the switch lineup. Most managed Standard, Pro and Enterprise models support it, but the smallest models carry a reduced feature set, so confirm on the datasheet or in our UniFi switch buying guide before you plan a rollout around a specific unit.