Table of Contents

Linux configuration guide

Configuration guide for the SISSA Wired Network (dot1x authentication), using wpa_supplicant.


a) With your preferred text editor create the /etc/wpa_supplicant/SISSA-WIRED.wpa_supplicant.conf configuration file and insert the following lines:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=0

network={
        key_mgmt=IEEE8021X
        eap=PEAP
        phase2="auth=MSCHAPV2"
        identity="yourSISSAusername"
        password="yourSISSApassword"
        eapol_flags=0
}

Insert your SISSA username and your SISSA password (the same of your SISSA webmail) in the identity and password fields.

b) Dependig on your distribution you have to continue in different ways.
If you click on your laptop OS distribution name in the following lines,
you will be “ placed ” at the beginning of specific instruction.

Generic Linux distribution
Ubuntu/Debian based distributions
Fedora/RedHat distributions



Generic Linux distribution

GL-a) Run the following command in order to activate the wpa_supplicant daemon:

wpa_supplicant -c /etc/wpa_supplicant/SISSA-WIRED.wpa_supplicant.conf -i eth0 -D wired -B

GL-b) To check the correct status of wpa_supplicant daemon, run the following commands:
wpa_cli
……. then
status

During running wpa_cli program, type status...
Please check the value of the following parameters:

wpa_state=ASSOCIATED


GL-c) Open another terminal and start network service:

ifup eth0


GL-d) Use again the wpa_cli command and check its result;
the last line should be the following:

CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully


END OF Generic Linux distribution CONFIGURATION GUIDE



Ubuntu/Debian based distributions

U&D-a) Using a text editor add the following lines at the end of the file: /etc/network/interfaces

auto eth0
iface eth0 inet dhcp
        wpa-driver wired
        wpa-conf /etc/wpa_supplicant/SISSA-WIRED.wpa_supplicant.conf

U&D-b) Enable the network service:
sudo /etc/init.d/networking start

END OF Ubuntu/Debian based distribution CONFIGURATION GUIDE



Fedora/RedHat distributions

F&RH-a) Edit the file /etc/sysconfig/wpa_supplicant, then modify the value of the following parameters:

INTERFACES="-i eth0"
DRIVERS="-D wired"
OTHER_ARGS="-w -f /var/log/wpa_supplicant.log"

Please note that these parameters are in different lines.
Modify carefully the value of the parameters...

F&RH-b) Enable the wpa_supplicant daemon and the network service:
service wpa_supplicant start
service network start

Enable the services in the correct order.

END OF Fedora/RedHat based distribution configuration guide