L2 · security · draft
802.1X
Port-Based Network Access Control
EAPoL to the authenticator; RADIUS behind it. MAB is a fallback, not 802.1X.
Presenter modeEmbed this figure
Why it exists
Access ports need a proof of identity before forwarding. Shared VLAN membership alone is not admission control. IEEE 802.1X-2020 §1
802.1X authenticates; it does not encrypt the port. MACsec (802.1AE) is a separate hop-by-hop cipher often paired with it. IEEE 802.1X-2020 §1
EAPoL start to authorized port
The switch is an authenticator. It relays EAP between the supplicant and a RADIUS server; credentials are usually opaque to the switch.
The port starts unauthorized. The supplicant sends EAPoL-Start (or the authenticator solicits Identity). User data is blocked until authorization succeeds. Supplicant. Authenticator: Port unauthorized. RADIUS.
- Link
- Blocking
- Packet in flight
- Discarded
- Emphasis
Text equivalent of this diagram
| Element | Kind | State |
|---|---|---|
| Supplicant | host | — |
| Authenticator | switch | Port: unauthorized |
| RADIUS | cloud | — |
| Supplicant — Authenticator | link | up · EAPoL |
| Authenticator — RADIUS | link | up |
The port starts unauthorized. The supplicant sends EAPoL-Start (or the authenticator solicits Identity). User data is blocked until authorization succeeds.
What changed
- EAPoL-Start: Supplicant → Authenticator
- Authenticator: Port → unauthorized
- Data blocked
How it works
Supplicant and authenticator exchange EAPoL on the wire. The authenticator relays EAP to an authentication server, commonly via RADIUS. IEEE 802.1X-2020 §1
Access-Accept may assign VLAN or filter attributes. If the switch rejects or cannot apply them, the port may fall back to its static VLAN while still looking “successful”. Access-AcceptRFC 2865 · DRAFT STANDARD · June 2000
MAB is a MAC-as-identity fallback for endpoints without a supplicant. It is weaker and must be ordered after 802.1X. Cisco IOS XE — Configuring IEEE 802.1X Port-Based Authentication §MAC Authentication Bypass
On the wire
Constructed examples, encoded from the field table below them — not captured traffic.
- Physical
- A preamble and start-of-frame delimiter precede this, and the hardware removes them before any capture sees the frame. IEEE 802.3-2022
- MAC header
- Destination address, source address, and the EtherType naming the payload. IEEE 802.3-2022
- Payload and FCS
- Between 46 and 1500 octets, padded to the minimum, followed by a four-octet frame check sequence. IEEE 802.3-2022
Configure it
aaa new-model aaa authentication dot1x default group radius aaa authorization network default group radiusMethod lists for port authentication and network authorization. The authenticator relays EAP to RADIUS; it does not terminate EAP methods itself.
RFC 2865 §4.1
dot1x system-auth-controlEnables 802.1X system-wide so interface port-control can take effect.
IEEE 802.1X-2020 §1
interface GigabitEthernet1/0/1 switchport mode access authentication port-control auto dot1x pae authenticatorPort starts unauthorized until EAPoL succeeds. PAE role is authenticator toward the supplicant; RADIUS sits behind the switch.
Common mistake: Leaving trunk mode on a user port — 802.1X access designs usually want a single access VLAN until Accept assigns another.
Cisco IOS XE — Configuring IEEE 802.1X Port-Based Authentication §How to Configure 802.1X
Verify
show authentication sessions interface GigabitEthernet1/0/1- Session method (dot1x), status, and assigned VLAN when authorized.
show dot1x all- PAE state and whether system-auth-control is enabled.
Caveats
- Marked draft: syntax has not been checked against Cisco documentation or a device.
- MAB is a fallback path, not 802.1X — do not conflate the two in verify expectations.
When it breaks
Symptom first, because that is what you have when it happens.
A device with no supplicant is left without network access, and nothing in the logs explains why.
Narrow it down
- Check whether the port is waiting for an EAPOL response that will never come.
- Confirm whether MAC authentication bypass is configured as a fallback.
- Look at the order and priority of the authentication methods on the port.
Cause
Printers, cameras and older equipment have no supplicant. The port times out waiting for one and, without a fallback, denies access — correctly, and unhelpfully.
Fix
Configure MAC authentication bypass after dot1x. It is weaker, because a MAC address is trivially spoofed, and it is the difference between a policy that can be deployed and one that cannot.
Cisco IOS XE — Configuring IEEE 802.1X Port-Based Authentication §MAC Authentication BypassAuthentication succeeds and the device lands in the wrong VLAN.
Narrow it down
- Check which attributes the authentication server returns.
- Confirm the switch is configured to accept a dynamic VLAN assignment.
- Look at whether the VLAN named in the attribute exists on the switch.
Cause
The VLAN comes from the server, and if the switch is not accepting the assignment or the VLAN does not exist locally, the port falls back to its statically configured VLAN — which looks like success.
Fix
Verify the attributes on the wire and confirm the VLAN exists everywhere the device might connect.
Access-AcceptRFC 2865 · DRAFT STANDARD · June 2000Devices behind an IP phone lose access when the phone reboots, or gain access they should not have.
Narrow it down
- Check the host mode on the port — single, multi-domain, or multi-host.
- Confirm whether the phone and the PC authenticate separately.
- Look at what happens to the PC session when the phone drops.
Cause
Multi-host authenticates one device and opens the port for everyone behind it. Multi-domain authenticates a voice device and a data device separately, which is what a phone with a PC behind it actually needs.
Fix
Use multi-domain on ports with phones. Multi-host is the mode that authenticates one device and trusts whatever else appears.
Cisco IOS XE — Configuring IEEE 802.1X Port-Based Authentication §Host ModeAll access ports fail closed when RADIUS is unreachable.
Narrow it down
- Check AAA method lists and critical/inaccessible VLAN policies.
- Confirm server reachability from the switch source address.
Cause
Without a deliberate inaccessible-auth or critical VLAN policy, authenticator failure denies the port.
Fix
Design and test inaccessible authentication behavior; do not discover it during an AAA outage.
Cisco IOS XE — Configuring IEEE 802.1X Port-Based Authentication §Inaccessible Authentication BypassFailed authentications still get full network access.
Narrow it down
- Inspect guest / auth-fail VLAN configuration.
- Compare intended fail-closed policy with the applied VLAN and ACL.
Cause
An auth-fail or guest VLAN was configured as a broad permit rather than a restricted holding area.
Fix
Treat guest/fail VLANs as limited policy, not open access, unless that is the explicit design.
Cisco IOS XE — Configuring IEEE 802.1X Port-Based Authentication §Guest VLAN
Design notes
Multi-host is not “phone friendly” — it is “trust everything after one success”.
Failed sessions should fail closed. Guest VLAN is a policy choice, not a requirement of the standard.
Misconceptions
- “802.1X encrypts the traffic on the port.”
- It authenticates before allowing traffic and encrypts nothing. Encryption on a wired port is MACsec, which is a separate standard often deployed alongside it. IEEE 802.1X-2020 §1
- “The switch checks the credentials.”
- The switch is an authenticator and relays EAP between the supplicant and the authentication server. It usually cannot read the credentials at all — the EAP method is negotiated end to end between the device and the server. IEEE 802.1X-2020 §1
- “MAC authentication bypass is a reasonable substitute.”
- A MAC address is asserted by the device and trivially changed. It is a fallback for equipment that cannot do better, not an equivalent, and a port that falls back to it accepts anything that can read a label off a printer. Cisco IOS XE — Configuring IEEE 802.1X Port-Based Authentication §MAC Authentication Bypass
More walkthroughs
MAB after 802.1X for devices without a supplicantdesign-choice
Printers and cameras often have no EAP client. MAC authentication bypass is a weaker fallback ordered after 802.1X — not a substitute for it.
The port waits for EAPOL. Nothing answers. Without a fallback, the printer stays denied — correctly for 802.1X, unhelpfully for operations. Printer · no supplicant. Authenticator: 802.1X timeout. RADIUS.
- Link
- Blocking
- Packet in flight
- Discarded
- Emphasis
Text equivalent of this diagram
| Element | Kind | State |
|---|---|---|
| Printer · no supplicant | host | — |
| Authenticator | switch | 802.1X: timeout |
| RADIUS | cloud | — |
| Printer · no supplicant — Authenticator | link | up |
| Authenticator — RADIUS | link | up |
The port waits for EAPOL. Nothing answers. Without a fallback, the printer stays denied — correctly for 802.1X, unhelpfully for operations.
What changed
- No EAPoL
- Authenticator: 802.1X → timeout
Phone and PC need multi-domain, not multi-hostfailure
Multi-host authenticates one device and opens the port for everything behind it. Multi-domain authenticates voice and data separately.
Multi-host: the phone authenticates and the port trusts whatever else appears. Unplug the phone, plug a laptop — it may inherit access. PC. IP phone. Access port: Host-mode multi-host. RADIUS.
- Link
- Blocking
- Packet in flight
- Discarded
- Emphasis
Text equivalent of this diagram
| Element | Kind | State |
|---|---|---|
| PC | host | — |
| IP phone | host | — |
| Access port | switch | Host-mode: multi-host |
| RADIUS | cloud | — |
| IP phone — Access port | link | up |
| PC — IP phone | link | up |
| Access port — RADIUS | link | up |
Multi-host: the phone authenticates and the port trusts whatever else appears. Unplug the phone, plug a laptop — it may inherit access.
What changed
- Access port: Host-mode → multi-host
- Inherits port trust