I am attempting to come up with automated standards for our department linux machines to connect to our Cisco ISE (802.1X) network.
In the past I have simply added lines such as the following to the end of /etc/rc.local.
ifdown eth0
sleep3
wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -Dwired -ieth0 &
sleep 5
ifup eth0
Then in my /etc/wpa_supplicant/wpa_supplicant.conf I have:
country=US
ctrl_interface=/var/run/wpa_supplicant
update_config=1
ap_scan=0
network={
key_mgmt=IEEE8021X
eap=PEAP
identity="username"
password=""
eapol_flags=0
}
This seems to fit the bill but I know there is a much better way to do it and I was hoping someone could enlighten me!
Note: in this case it is a server and no Network Manager but I have had trouble getting the Network Manager gui and have fallen back to this method even with desktops.