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

IEEE 802.1X-2020 §1Access-RequestRFC 2865 · DRAFT STANDARD · June 2000Access-AcceptRFC 2865 · DRAFT STANDARD · June 2000

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.

SupplicantData blockedAuthenticatorPort: unauthorizedRADIUSEAPoL
  • Link
  • Blocking
  • Packet in flight
  • Discarded
  • Emphasis
Select a device to read its state. Arrow keys walk the topology.
Text equivalent of this diagram
Devices and links at this step
ElementKindState
Supplicanthost
AuthenticatorswitchPort: unauthorized
RADIUScloud
SupplicantAuthenticatorlinkup · EAPoL
AuthenticatorRADIUSlinkup
1 / 3

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.

An ordinary frame. The group bit in the first octet of the destination is clear, so a switch forwards it to one port rather than flooding it.

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

Authenticator with 802.1X on an access port and RADIUS toward the AAA server.

Cisco IOS-XE 17.15 · Catalyst 9300, Catalyst 9200draft

  1. aaa new-model
    aaa authentication dot1x default group radius
    aaa authorization network default group radius

    Method lists for port authentication and network authorization. The authenticator relays EAP to RADIUS; it does not terminate EAP methods itself.

    RFC 2865 §4.1

  2. dot1x system-auth-control

    Enables 802.1X system-wide so interface port-control can take effect.

    IEEE 802.1X-2020 §1

  3. interface GigabitEthernet1/0/1
     switchport mode access
     authentication port-control auto
     dot1x pae authenticator

    Port 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.

  1. A device with no supplicant is left without network access, and nothing in the logs explains why.

    Narrow it down

    1. Check whether the port is waiting for an EAPOL response that will never come.
    2. Confirm whether MAC authentication bypass is configured as a fallback.
    3. 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 Bypass
  2. Authentication succeeds and the device lands in the wrong VLAN.

    Narrow it down

    1. Check which attributes the authentication server returns.
    2. Confirm the switch is configured to accept a dynamic VLAN assignment.
    3. 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 2000
  3. Devices behind an IP phone lose access when the phone reboots, or gain access they should not have.

    Narrow it down

    1. Check the host mode on the port — single, multi-domain, or multi-host.
    2. Confirm whether the phone and the PC authenticate separately.
    3. 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 Mode
  4. All access ports fail closed when RADIUS is unreachable.

    Narrow it down

    1. Check AAA method lists and critical/inaccessible VLAN policies.
    2. 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 Bypass
  5. Failed authentications still get full network access.

    Narrow it down

    1. Inspect guest / auth-fail VLAN configuration.
    2. 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.

Printer · no supplicantNo EAPoLAuthenticator802.1X: timeoutRADIUS
  • Link
  • Blocking
  • Packet in flight
  • Discarded
  • Emphasis
Select a device to read its state. Arrow keys walk the topology.
Text equivalent of this diagram
Devices and links at this step
ElementKindState
Printer · no supplicanthost
Authenticatorswitch802.1X: timeout
RADIUScloud
Printer · no supplicantAuthenticatorlinkup
AuthenticatorRADIUSlinkup
1 / 3

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.

PCInherits port trustIP phoneAccess portHost-mode: multi-hostRADIUS
  • Link
  • Blocking
  • Packet in flight
  • Discarded
  • Emphasis
Select a device to read its state. Arrow keys walk the topology.
Text equivalent of this diagram
Devices and links at this step
ElementKindState
PChost
IP phonehost
Access portswitchHost-mode: multi-host
RADIUScloud
IP phoneAccess portlinkup
PCIP phonelinkup
Access portRADIUSlinkup
1 / 3

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

Check yourself

  • A printer with no supplicant is denied access. What is the intended fallback?
  • What role does the switch play in the exchange?
  • A phone with a PC behind it needs which host mode?
  • Does 802.1X encrypt traffic on the port?
  • Authentication succeeds but the host is in the wrong VLAN. What should you check?
  • What carries EAP between the supplicant and the authenticator on the wire?
  • How does MACsec relate to 802.1X?
  • Why order 802.1X before MAB?