Supplicant, authenticator and RADIUS server, EAPOL, authorised and unauthorised ports, EAP methods and a basic configuration.
Intermediate · 10 min read
Technical definition
802.1X is an IEEE standard for port-based network access control. A device must authenticate to a server before the switch port or wireless association lets it send ordinary traffic.
Three roles
802.1X: three roles, two protocols
Before success the port passes only EAPOL. After success it opens fully, and the server can also assign a VLAN. This is port-based network access control.
The 802.1X roles and protocols
On small screens, swipe sideways or focus the diagram and use the arrow keys.
EAPOL is the Layer 2 protocol between supplicant and switch. Between the switch and the server the same EAP data is carried inside RADIUS messages.
What happens when a device connects
The link comes up. The port is unauthorised: it passes only EAPOL, and optionally CDP and STP.
The switch sends an EAP request for the identity, or the supplicant starts with EAPOL-Start.
The switch relays the EAP exchange to the RADIUS server.
The server sends Access-Accept or Access-Reject.
On accept the port becomes authorised. The server can also assign a VLAN or an ACL.
Common EAP methods
EAP methods at CCNA depth
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Know the idea of each method, not the details, for the CCNA.
Basic IOS configuration
This configuration was written from documentation and has not been run on a device. Commands vary by platform and software version.
authentication port-control auto turns 802.1X on for the port. The server address and key are examples.
Example output · based on Cisco documentation; exact format varies by platform and software version
SW1#show dot1x all
Sysauthcontrol Enabled
Dot1x Protocol Version 3
Dot1x Info for GigabitEthernet0/5
PAE = AUTHENTICATOR
PortControl = AUTO
ReAuthentication = Disabled
Example output. Use show authentication sessions to see whether a device is authorised and in which VLAN.
Test yourself
Predict · scenario 1
In 802.1X, which device blocks the port until authentication succeeds?
Predict · scenario 2
Which protocol carries EAP between the supplicant and the switch?
Predict · scenario 3
Before authentication succeeds, which traffic does an unauthorised 802.1X port normally pass?
FAQ
What is EAP?
The Extensible Authentication Protocol is a framework that carries the actual login exchange: a certificate (EAP-TLS), a password inside a tunnel (PEAP), and others. 802.1X is how EAP is carried between the device and the switch.
What happens to a device with no supplicant?
The port stays unauthorised. A network may use MAC authentication bypass to admit known devices such as printers by MAC address, or place them in a guest VLAN.
Is 802.1X for wireless too?
Yes. WPA2-Enterprise and WPA3-Enterprise use 802.1X, with the access point as the authenticator.