Network Bytes · Episode 110 · CCNA 5.8
"802.1X: logging in at the switch port"
With 802.1X, a switch port stays locked and passes only login messages until you log in. Your device asks to join, the switch acts as the guard, and a login server checks your password or certificate. If the server says yes, the port unlocks; if not, it stays shut.
The open-door problem
Most office switch ports are wide open: plug any device into a wall jack and the port starts forwarding its traffic right away. That is handy, but it also means anyone who walks into the lobby, finds a spare jack and plugs in a laptop is on your network. Port-based access control fixes this by making each port ask "who are you?" before it lets ordinary traffic through.
Three roles: asks, guards, checks
IEEE 802.1X (spoken "eight oh two dot one X") defines three roles:
- The supplicant is the device that asks to join, such as your laptop.
- The authenticator is the switch (or a wireless access point). It is the guard at the door.
- The authentication server checks who you are. It is usually a RADIUS server.
The video skips the formal names and just says laptop, switch and login server, but the CCNA uses these three terms.
Locked until the server says yes
Before you log in, the port is in the unauthorized state. It drops your normal traffic and passes only EAP over LAN (EAPoL) frames, the login messages, plus a few control protocols such as CDP and STP. Your laptop sends its credentials, either a username and password (for example with PEAP) or a certificate (EAP-TLS). The switch passes them on to the RADIUS server using EAP (Extensible Authentication Protocol). If the server accepts them, it tells the switch, and the port moves to the authorized state: now your ordinary traffic flows. If the server rejects them, the port stays shut.
Why it matters
802.1X ties network access to a person or device identity, not to a physical jack. A stranger with a laptop in the lobby gets nowhere, because the port never unlocks for them. It also fits with AAA (authentication, authorization and accounting): the server can log who connected and when, and can even place a user in a particular VLAN.
Try it yourself
On a Windows laptop, open Services and look for Wired AutoConfig: that is the built-in 802.1X client for wired ports. Then open the network adapter's properties: once Wired AutoConfig is running, an Authentication tab appears with a checkbox to "Enable IEEE 802.1X authentication". On a Mac, an office Wi-Fi network that asks for a username and password (WPA2- or WPA3-Enterprise) is using 802.1X behind the scenes.
Good to know
- CCNA 5.8 asks you to differentiate authentication, authorization and accounting concepts; 802.1X is the usual example of port-based access control. EP61 covers AAA and EP58 covers port security.
- IEEE 802.1X defines three roles: the supplicant (client device), the authenticator (switch or wireless access point) and the authentication server, usually a RADIUS server.
- An unauthorized port passes only EAPoL frames, plus a few control protocols such as CDP and STP. The switch relays the EAP messages to the RADIUS server, and on success the port moves to the authorized state. The server can also assign a VLAN (left out of the video).
- Credentials can be a username and password (for example PEAP) or a certificate (EAP-TLS).
- On Wi-Fi, 802.1X is what WPA2-Enterprise and WPA3-Enterprise use.
- Some switches fall back to MAC Authentication Bypass for printers and phones, or put failed clients into a guest or restricted VLAN instead of keeping the port fully shut. The video simplifies this to "it stays shut".
- The comment question assumes every port has 802.1X enabled and counts a port with nothing plugged in as locked.
For CCNA learners
CCNA exam topic 5.8 asks you to differentiate authentication, authorization and accounting concepts. Know the three 802.1X roles (supplicant, authenticator, authentication server), that the server is usually RADIUS, and that an unauthorized port passes only EAPoL until authentication succeeds.
Answer to the comment question
12 ports. Each of the 36 logged-in devices unlocks its own port, so 48 − 36 = 12 ports are still locked. That counts every port with 802.1X enabled, including any with nothing plugged in.
Test your knowledge
Quick quiz: "802.1X: logging in at the switch port"
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- Cisco, "Configuring IEEE 802.1X Port-Based Authentication": the client, switch and authentication server roles, and how an unauthorized port passes only login traffic
- IEEE, "IEEE 802.1X-2020: Port-Based Network Access Control": the standard itself
- IETF, "RFC 3748: Extensible Authentication Protocol (EAP)": the login messages carried between the client, the switch and the server
- Pearson IT Certification, "Cisco 802.1x Concepts and Configuration": exam-level walkthrough of 802.1X on Cisco switches
Video transcript
How can a switch port stay locked until you log in?
Normally, plug any device into a wall jack, and the switch port lets it straight onto the network.
With 802.1X, the port stays locked. It only passes login messages.
Your laptop asks to join. The switch is the guard. A login server checks your password or certificate.
The guard passes your login to the server. If the server says yes, the port unlocks. If not, it stays shut.
So a stranger who plugs into a spare jack in the lobby gets nowhere.
48 ports use 802.1X. 36 devices have logged in, one per port. How many ports are still locked? Comment your answer below!
That's your byte.
More from Network Bytes
- EP107"Security awareness and physical access control"
- EP108"Root Guard"
- EP112"Cloud-managed switches and access points"
- EP113"IPv6 SLAAC: an address with no DHCP server"