I'm trying to test out 802.1x in a virtual environment but I haven't been able to find any good resources/guides on how to do that.
The scenario is something like this:
I have a Linux host machine (OS: ubuntu jammy) with a couple of lxc containers running
Both of the containers are connected to a linux bridge, so they can communicate with each other directly. (like a miniature 2-node network inside the main machine)
One of the containers is running FreeRadius
I want the other other container to authenticate itself to the network using the first (radius) container as the authentication server, so i can be able to play around with things like EAP-TLS and various 802.1x capabilities and see how it looks.
hostapd says it can be used as an authenticator, but all the guides and videos I've been able to find online only talk about using it to set up a linux machine as a wireless access point or hotspot - never any mention of just using hostapd to authenticate itself on a wired network.
I understand that this isn't an ideal setup and in the real world you would probably want this functionality offloaded to the switch instead of being on the client, but for testing purposes - can it be done?