White Belt: 802.1X Fundamentals: EAPOL, EAP and RADIUS
Plug a laptop into a wall jack and nothing happens until it proves who it is. That is IEEE 802.1X, and it is the same on a Catalyst, a Nexus, an Aruba, a Juniper or a wireless controller. This lesson is vendor-neutral on purpose: it covers what is actually on the wire, so that when you later configure a switch or read an ISE log you know what each line means.
The problem 802.1X solves
A switch port is a trust decision. Historically that decision was physical: if you could reach the jack, you were on the network. 802.1X moves the decision to an identity: the port stays closed until an authentication server says the device (or the person on it) is allowed, and tells the switch what they are allowed to do.
| Role (802.1X name) | What it is | Protocol it speaks |
|---|---|---|
| Supplicant | The endpoint: Windows, macOS, Linux, a phone, a printer with an 802.1X client. | EAP, carried in EAPOL frames on the Ethernet segment. |
| Authenticator | The switch or wireless controller. Also called the NAD (Network Access Device) or NAS (Network Access Server). | EAPOL toward the endpoint, RADIUS toward the server. It never understands the EAP method itself; it relays. |
| Authentication server | A RADIUS server: Cisco ISE, Aruba ClearPass, Microsoft NPS, FreeRADIUS. | RADIUS. It terminates EAP, checks identity, and returns a decision plus attributes. |
One sentence to remember
The supplicant and the server have a conversation (EAP). The switch is the phone line. It only cares about the last message: Accept or Reject.
The controlled and uncontrolled port
802.1X describes a physical port as two logical ports:
- The uncontrolled port is always open, but only for EAPOL frames. This is how the supplicant can talk to the switch before it is authenticated.
- The controlled port carries everything else (IP, ARP, DHCP, the lot). It is blocked until authentication succeeds, then opened with whatever restrictions the server returned.
Vendors add escape hatches on top of this model: a pre-authentication ACL that lets DHCP and DNS through so an imaging workflow works, an "open" or monitor mode that logs failures but does not block, and a critical VLAN used when every RADIUS server is unreachable. All of those are modifications to the controlled port; the uncontrolled EAPOL path is always there.
EAPOL: what is on the wire
EAPOL (EAP over LAN) is a tiny Ethernet encapsulation. It uses EtherType 0x888E and is sent to the multicast MAC 01:80:C2:00:00:03, the PAE group address. That address is in the reserved range that bridges do not forward, so EAPOL never crosses a switch: the conversation is strictly between the endpoint and the port it is plugged into.
| EAPOL packet type | Sent by | Purpose |
|---|---|---|
| EAPOL-Start | Supplicant | "I am here, please authenticate me." Optional; the switch will also prompt on link-up. |
| EAP-Packet | Both | Carries an EAP message. Nearly every frame in the exchange is this type. |
| EAPOL-Logoff | Supplicant | "I am leaving." The switch tears down the session and closes the controlled port. |
| EAPOL-Key | Both | Key material. Used by wireless (the 4-way handshake) and by MACsec on wired. |
EAP: the conversation inside
EAP (RFC 3748) is a request/response framework, not an authentication method. Its job is to negotiate a method (EAP-TLS, PEAP, TEAP and so on) and carry that method's messages. Every EAP message has a code (Request, Response, Success, Failure), an identifier to match request to response, and a type (Identity, or a method number).
Supplicant Authenticator (switch) RADIUS server
| | |
| ---- EAPOL-Start ---------> | |
| <---- EAP-Request/Identity - | |
| ---- EAP-Response/Identity >| --- Access-Request (EAP-Message) >|
| | <-- Access-Challenge (EAP-Message) |
| <---- EAP-Request (method) - | |
| ---- EAP-Response (method) >| --- Access-Request ------------- >|
| ... repeat until the method finishes (TLS handshake etc.) |
| | <-- Access-Accept + attributes --- |
| <---- EAP-Success ---------- | (or Access-Reject) |
| | port opens, VLAN/ACL applied |
- Identity. The switch asks who is there. The supplicant answers with an outer identity. For tunnelled methods this is often anonymous (
anonymous@corp.example); the real identity is sent later, inside TLS. - Method negotiation. The server proposes a method. If the supplicant does not support it, it replies with a NAK listing what it does support, and the server tries again or gives up.
- Method exchange. This is where the real work happens: a TLS handshake with certificates (EAP-TLS), or a TLS tunnel with a password inside (PEAP). It can take ten or more round trips.
- Result. The server sends Access-Accept or Access-Reject. The switch converts it to EAP-Success or EAP-Failure for the supplicant and acts on the port.
The switch cannot see inside
Once the method is TLS-based, the switch is relaying encrypted bytes. It cannot tell a certificate from a password. This is why every meaningful failure reason lives on the RADIUS server, not on the switch. The switch only knows "the server said no".
RADIUS: how the switch carries EAP to the server
The switch takes each EAP message and puts it inside a RADIUS Access-Request in the EAP-Message attribute (type 79). The server answers with Access-Challenge for every intermediate step, then Access-Accept or Access-Reject. RADIUS is UDP, normally port 1812 for authentication and 1813 for accounting, secured by a shared secret known to the switch and the server.
| RADIUS attribute in the request | Why the server cares |
|---|---|
User-Name | The outer identity from EAP-Response/Identity. For MAB it is the MAC address. |
Calling-Station-Id | The endpoint MAC. Used for profiling and endpoint lookups. |
NAS-IP-Address, NAS-Port-Id | Which switch and which port. Policy can key on location. |
NAS-Port-Type, Service-Type | Wired vs wireless, and 802.1X (Framed) vs MAB (Call-Check). ISE's built-in Wired_802.1X condition is just a match on these two. |
EAP-Message (79) | The EAP payload being relayed. |
Message-Authenticator (80) | An HMAC over the packet using the shared secret. Mandatory whenever EAP-Message is present; it is what proves the packet was not forged. |
State | Opaque token the server hands out in a Challenge; the switch echoes it so the server can match the next request to the same conversation. |
Authorization: what comes back in the Accept
An Access-Accept with no attributes just opens the port in its configured VLAN. The useful part of 802.1X is that the server can also say how to open it. The common attributes are standard RADIUS, so they work across vendors:
| Result | Attributes | Effect on the port |
|---|---|---|
| Dynamic VLAN | Tunnel-Type=VLAN (13), Tunnel-Medium-Type=802 (6), Tunnel-Private-Group-ID=<vlan> | The port is moved into that VLAN for this session. Same jack, different network depending on who plugged in. |
| ACL | Filter-Id (named ACL already on the switch) or a vendor attribute carrying a downloadable ACL | Traffic filtered per session without touching the port config. |
| Session-Timeout | Session-Timeout, Termination-Action | Forces re-authentication after N seconds so a revoked device does not stay on forever. |
| Vendor-specific | Vendor-Specific (26), e.g. Cisco cisco-av-pair | Security group tags, URL redirects for guest or posture portals, voice-domain permission. |
Two more messages round out the protocol. Accounting (Accounting-Request Start / Interim / Stop on port 1813) tells the server when the session began, how long it has been up, and when it ended; this is how the server knows which IP a session got. Change of Authorization (CoA, RFC 5176) goes the other direction: the server sends the switch an unsolicited message to re-authenticate or disconnect a session, which is how quarantine and posture changes happen mid-session.
Wired vs wireless
On wireless the same three roles exist; the access point or controller is the authenticator and the SSID is "WPA2-Enterprise" or "WPA3-Enterprise". The difference is what happens after EAP-Success. Wireless must also encrypt the air, so the EAP method produces a key (the MSK) that the server sends to the controller in the Accept. The controller and the client then run the 4-way handshake over EAPOL-Key frames to derive the actual encryption keys. "Enterprise" Wi-Fi is just 802.1X plus that key handoff. Wired links are unencrypted unless you add MACsec, which uses the same EAPOL-Key mechanism.
Devices with no supplicant
A printer that never sends EAPOL never authenticates. The standard has no answer for this; vendors do. MAC Authentication Bypass (MAB) is the switch giving up on EAP after a timeout and sending a RADIUS Access-Request with the MAC address as the username. It is not authentication in any strong sense, because MAC addresses are trivially spoofed, but it lets the same policy engine make a decision for every port. The ISE 802.1X and MAB lesson shows the configuration and the timers.
Try it: the authenticator side
Configure the switch half of 802.1X on a simulated Catalyst 9300: AAA, a RADIUS server for ISE at 10.20.0.50, dot1x system-auth-control, then the port. ISE itself is not simulated — the show commands return what a healthy, authorized port looks like.
Want goals and a checklist? Take the guided kata: 802.1X with MAB fallback · or open the full Practice Lab.
Summary
- Three roles: supplicant (EAP), authenticator (relays EAPOL to RADIUS), authentication server (decides).
- EAPOL is EtherType 0x888E to 01:80:C2:00:00:03 and never leaves the local link.
- EAP negotiates a method and carries it; the switch cannot see inside a TLS-based method.
- RADIUS relays EAP in attribute 79, protects it with Message-Authenticator, and keeps the conversation together with State.
- Access-Accept attributes (VLAN, ACL, timeout, vendor pairs) are the real payoff. Accounting and CoA complete the session lifecycle.
Next: which EAP method to pick, and why. Continue with EAP Methods Compared, or read RADIUS vs TACACS+ first if you want the AAA protocols side by side.