802.1X is a network access control standard that authenticates devices and users before granting network access, offering stronger security and greater flexibility than MAC address-based port security.
802.1x Network Access Control
Port security uses MAC addresses in order to control which devices have access into the network. There's a couple of problems with port security though.
Number one is that MAC address spoofing is very easy. So I could just spoof the MAC address of a machine and then gain connectivity into a network.
The other problem is portability. If I want to move that machine from one location to another location, I have to change that on the switch as well, because that MAC address is associated with a port. So if I move it to another port, then I have to associate that MAC address with another port. So those are some problems with implementing port security.
Instead, there is a better solution. 802.1X is a much better solution. It gives us much more granular control over the environment, and we have much better options that we can implement with 802.1X. We can base it off of a machine, a device that's on the network, or we could base it off of the user, or we could base it off of both a user and a machine. So we've got a lot of options on how we control the access into this network.
Some ways that we can implement 802.1X are with something like certificates, where we install a certificate on the machine and that machine's certificate gives them access to the rest of the network. Or maybe it's some sort of user credentials that the user has. Or maybe something like a smart card reader that gains them access into this network. Or perhaps it's some sort of pre-shared key that's already set up. But we can set these things up either by giving it to the user or onto the machine, setting up the machine to do that.
So now the machine can access any of the ports that we specify, so there's some portability there. Plus, it can't be duplicated, it can't be mimicked, unless somebody were to steal those certificates or they steal the credentials. But other than that, they don't have access into this local area network.
Some terminology when it comes to 802.1X. The supplicant is going to be the device that needs the access. The authenticator is going to be the device that's going to be authenticating the supplicant, or that the supplicant is making connection into. And then the authentication server is actually what's going to grant the yay or nay: is this acceptable or is this not acceptable?
There's quite a few mechanisms in place to make this all happen. It is definitely more complicated than implementing port security. One of the things we need is a AAA authentication server — so that's this authentication server over here. We would set up some sort of AAA services on there that would communicate between this switch and the authentication server. And then the supplicant communicates with the authenticator. So we have quite a bit of communication that happens across here.
Since there's quite a bit of communication that happens across here, we do have protocols that help facilitate this. So we have AAA protocols over here on the right side, between the authenticator and the authentication server. And then between the supplicant and the authenticator, we have protocols there as well. We use EAP for the authentication piece of this, and then it gets encapsulated with something like EAPoL, or RADIUS, or Diameter, or TACACS. There are different protocols out there, but there are protocols that go into making all of this communication happen.
Now, this can be a more complicated setup, so I quite honestly don't see it as much in the wired networks. Most of the businesses that I've worked with, it just hasn't made sense to implement 802.1X, because of various reasons. And so you don't see it as much on the LAN side, the local area network, on this side of it. But what you do see a lot of times is on the wireless side. I've definitely had a lot of implementations where I've implemented it on the wired side. And there's some advantages over just a simple pass key, and we can do setups like certificates and that type of thing. So there's a lot of advantages to setting this up on the wireless side.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →