Support Library
802.1X Explained: Port-Based Access Control
IEEE 802.1X is the standard that keeps a switch port or Wi-Fi network closed until the connecting device proves who it is. The device talks EAP to the switch or access point, which relays it to a RADIUS server that decides whether to let it in.
The short answer
Without 802.1X, anything plugged into a live wall jack gets an address and can start talking to the network. With 802.1X, the port only passes authentication traffic until the device has authenticated. The standard, currently IEEE 802.1X-2020, defines three roles:
| Role | What it is | What it does |
|---|---|---|
| Supplicant | Software on the laptop, phone, printer or IP phone | Presents credentials, usually a certificate or a username and password |
| Authenticator | The switch port or Wi-Fi access point | Keeps the port closed, relays the conversation, and applies the result |
| Authentication server | A RADIUS server, often part of a network access control (NAC) product | Checks the credentials against a directory or certificate authority and returns accept or reject, plus policy |
The same mechanism secures wired ports and WPA2-Enterprise or WPA3-Enterprise Wi-Fi. It is one of the main ways a network enforces Zero Trust policy at the point where a device first connects.
How a device authenticates, step by step
Two protocols carry the conversation. Between the device and the switch it is EAP over LAN (EAPOL), a Layer 2 protocol that works before the device has an IP address. Between the switch and the server it is RADIUS with EAP support. The switch is a relay: it never sees the password or private key inside the EAP method.
What "port-based" means
802.1X splits each port into two logical ports. The uncontrolled port always passes EAPOL frames, which use EtherType 0x888E. The controlled port carries everything else, and stays closed until authentication succeeds. On wired networks EAPOL frames are usually sent to the reserved multicast address 01-80-C2-00-00-03, which ordinary switches do not forward, so the conversation stays between the device and the port it is plugged into.
Real ports often carry more than one device. Switch vendors offer host modes for this, under names that vary by vendor:
- Single host. One authenticated device per port; a second MAC address is treated as a violation.
- Multi-domain. One data device and one voice device, such as a PC plugged into the back of an IP phone, each authenticated separately.
- Multi-auth. Every MAC address on the port must authenticate on its own.
- Multi-host. The first device authenticates and opens the port for every device behind it. This is the weakest mode, because anything plugged into a small switch behind an authenticated PC gets in too.
EAP methods: how the device proves itself
EAP is a framework, not a single method. The method decides what credential is used and how well it is protected. The common ones:
| Method | Defined in | Credential | Notes |
|---|---|---|---|
| EAP-TLS | RFC 5216, with TLS 1.3 in RFC 9190 | Client certificate and private key | Mutual certificate authentication, no password to phish or guess. The usual recommendation for managed devices; see Certificate-Based Authentication |
| PEAP with MS-CHAPv2 | Microsoft's [MS-PEAP] specification | Username and password-derived MS-CHAPv2 challenge-response inside a TLS tunnel | Widely supported, but only as safe as the device's check of the server certificate. MS-CHAPv2 itself is weak if captured |
| EAP-TTLS | RFC 5281 | An inner method such as PAP, CHAP, MS-CHAP or EAP inside a TLS tunnel | Similar to PEAP; common with non-Windows clients and in eduroam |
| TEAP | RFC 9930, which replaced RFC 7170 | Certificates or passwords, and can chain machine and user | Lets one session prove both the device and the signed-in user |
Without strict server validation, a rogue PEAP or EAP-TTLS server can capture authentication material. PEAP-MS-CHAPv2 exchanges password-derived challenge-response material; EAP-TTLS depends on the inner method and can send a literal password with PAP. Configure both trusted CA and expected server name in the supplicant profile, preferably through device management, instead of asking users to accept a prompt.
Password-based methods are getting harder to run on Windows. Credential Guard, which Microsoft turns on by default on many Windows 11 Enterprise and Education devices from version 22H2, blocks single sign-on with saved credentials for MS-CHAPv2-based methods. That is one more reason many organizations are moving managed devices to EAP-TLS.
What the server sends back
An Access-Accept can carry policy as well as a yes. RFC 3580 describes how RADIUS attributes are used with 802.1X:
| Attribute | Effect |
|---|---|
| Tunnel-Type = VLAN, Tunnel-Medium-Type = 802, Tunnel-Private-Group-ID | Dynamic VLAN assignment: puts the port in the VLAN named or numbered in the last attribute |
| Filter-Id or a vendor-specific access list | Applies a named or downloaded access list to the session |
| Session-Timeout with Termination-Action = RADIUS-Request | Re-authenticates the device after the given number of seconds |
Policy can also change after the device connects. With RADIUS Change of Authorization (CoA), the server can tell the switch to re-authenticate a session, move it to another VLAN or disconnect it, for example when an endpoint security tool reports that the device has been compromised. This is how a network gets the continuous re-evaluation that Zero Trust calls for.
802.1X on Wi-Fi
WPA2-Enterprise and WPA3-Enterprise are 802.1X on a wireless network. The access point is the authenticator, and the EAP method produces key material that the RADIUS server sends to the access point in the Access-Accept. The access point and device then run the 4-way handshake to derive encryption keys for that session.
The practical difference from a shared password (WPA2-Personal or WPA3-Personal) is that every user and device has its own credential and its own keys. Removing one person's access means disabling one account or revoking one certificate, not changing the password on every device. WPA3-Enterprise also has an optional 192-bit mode with stronger cryptographic suites for high-security networks.
Encrypting the wire with MACsec
802.1X on its own authenticates a device but does not encrypt wired traffic. Since the 2010 revision, 802.1X also defines the MACsec Key Agreement protocol (MKA), which uses the result of authentication to key IEEE 802.1AE MACsec. MACsec encrypts and integrity-protects each frame on the link between the device and the switch, which also stops an attacker from slipping a device in between an authenticated PC and its port. It needs MACsec support in both the switch and the device's network adapter, so it is more common between switches than at the access edge.
Rolling it out without locking people out
- Start in monitor mode. Most switch vendors offer a mode that runs 802.1X and logs the results but lets traffic through regardless. Run it until you know which devices pass, which fail, and why.
- Handle devices that cannot authenticate. Printers, cameras and building systems often have no supplicant. Use MAC Authentication Bypass with profiling for them, and give them a restricted VLAN or access list.
- Plan for the server being down. Decide what a port does when no RADIUS server answers. Many switches can put ports in a "critical" VLAN so that a server outage does not take the whole floor offline.
- Mind the timers. A switch waits for an answer to its identity requests before falling back to MAB. With some vendors' defaults that is about 90 seconds, long enough for a device to time out on DHCP. Shorter timers or running MAB first are common fixes.
- Move to enforcement in stages. A middle "low-impact" stage that allows DHCP, DNS and a few services before authentication is common. Closed mode, where only EAPOL passes until authentication, is the end goal.
Troubleshooting
| Symptom | Likely cause |
|---|---|
| Switch shows no EAPOL response from a Windows PC | The Wired AutoConfig service is not running or no wired profile is configured. Windows does not enable wired 802.1X by default |
| Device fails right after the server sends its certificate | The device does not trust the server's CA, the server name does not match the profile, or the device clock is wrong |
| Access-Reject for a device that should be allowed | Check the reject reason in the RADIUS server's log: expired or revoked certificate, unknown account, or a policy rule that did not match |
| Device authenticates but lands in the wrong VLAN | The VLAN attributes are missing or misspelled, or the VLAN does not exist on that switch |
| Connections drop at regular intervals | Re-authentication is failing, often because a user password changed or a certificate expired |
Useful commands for checking a session:
| Command | Where | What it shows |
|---|---|---|
| netsh lan show interfaces | Windows, wired | Whether 802.1X is enabled on the adapter and the last authentication result |
| netsh wlan show interfaces | Windows, Wi-Fi | The connected network, its authentication type and the radio state |
| wpa_cli status | Linux with wpa_supplicant | The EAP state, method and whether the port is authorized |
| show access-session interface Gi1/0/1 details | Cisco IOS XE switch | Which method succeeded, the user or MAC, and the VLAN and policy applied |
FAQ
Is WPA2-Enterprise the same as 802.1X?
WPA2-Enterprise and WPA3-Enterprise are Wi-Fi security modes that use 802.1X for authentication. The 802.1X exchange proves who the device is, and the Wi-Fi 4-way handshake then turns the resulting key material into encryption keys for that session.
Does 802.1X encrypt traffic on a wired network?
No. On its own it only authenticates the device before the port opens. Wired encryption needs MACsec, which 802.1X can key through the MACsec Key Agreement protocol if both the switch and the device support it.
What happens to users if the RADIUS server goes down?
New connections cannot authenticate, and re-authentication of existing ones fails. Most deployments run at least two RADIUS servers and configure switches with a critical VLAN or similar fallback so that ports still work in a limited way during an outage.
Can someone bypass 802.1X by plugging in a small switch?
In multi-host mode, yes: one authenticated device opens the port for everything behind it. Single-host, multi-domain and multi-auth modes require each MAC address to authenticate, and MACsec goes further by encrypting the link so an inserted device cannot use the authenticated session.
Sources and further reading
- IEEE 802.1 Working Group: 802.1X Port-Based Network Access Control: the current revision is IEEE Std 802.1X-2020
- RFC 3748: Extensible Authentication Protocol (EAP)
- RFC 3579: RADIUS Support for EAP
- RFC 3580: IEEE 802.1X RADIUS Usage Guidelines: VLAN assignment and session attributes
- RFC 5216: The EAP-TLS Authentication Protocol
- RFC 9190: EAP-TLS 1.3
- RFC 5281: EAP Tunneled TLS (EAP-TTLS)
- RFC 9930: Tunnel Extensible Authentication Protocol (TEAP) Version 1
- RFC 5176: Dynamic Authorization Extensions to RADIUS: Change of Authorization and Disconnect messages
- Microsoft Learn: Credential Guard known issues and considerations: effect on MS-CHAPv2-based Wi-Fi and VPN authentication