Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
services:network:internal:portauth:linux:info-linux [2009/12/22 11:07]
marina
services:network:internal:portauth:linux:info-linux [2011/05/02 11:59] (current)
marina
Line 1: Line 1:
 ====== Linux configuration guide ====== ====== Linux configuration guide ======
-{{  services:​sqrman.gif ​ }} 
  
-Configuration guide for the SISSA Wired Network (dot1x authentication),​ using  **wpa_supplicant**\\ +Configuration guide for the SISSA Wired Network (dot1x authentication),​ using  **wpa_supplicant**.\\ 
-This setting should be done only when a port authentication is required: +
-{{page>:​services:​network:​internal:​portauth:​place-list}}+
 \\ \\
 a) With your preferred text editor create the **/​etc/​wpa_supplicant/​SISSA-WIRED.wpa_supplicant.conf** ​ configuration file a) With your preferred text editor create the **/​etc/​wpa_supplicant/​SISSA-WIRED.wpa_supplicant.conf** ​ configuration file
Line 17: Line 15:
         eap=PEAP         eap=PEAP
         phase2="​auth=MSCHAPV2"​         phase2="​auth=MSCHAPV2"​
-        identity="​**//​yourusername//​**"​ +        identity="​**//​yourSISSAusername//​**"​ 
-        password="​**//​yourpassword//**"+        password="​**//​yourSISSApassword//**"
         eapol_flags=0         eapol_flags=0
 } }
 </​xterm>​ </​xterm>​
  
-Insert ​your //**yourusername**// and //**yourpassword**// (the same of your SISSA webmail) in the //​identity//​ and //​password//​ fields.\\+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.\\ 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, \\ +If you click on //​your ​laptop OS distribution ​name// ​in the following lines, \\ 
-you will be "​placed"​ at the beginning of specific instruction.+you will be " placed " at the beginning of specific instruction.
  
 **[[#​Generic Linux distribution]]**\\ **[[#​Generic Linux distribution]]**\\
Line 35: Line 33:
 ---- ----
 ---- ----
 +
 ====Generic Linux distribution ==== ====Generic Linux distribution ====
-**<​color ​DarkSlateGray>GL-a) </​color>​** Run the following command in order to activate the wpa_supplicant daemon:\\+**<​color ​teal>GL-a) </​color>​** 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** \\ **wpa_supplicant -c /​etc/​wpa_supplicant/​SISSA-WIRED.wpa_supplicant.conf -i eth0 -D wired -B** \\
 \\ \\
-**<​color ​DarkSlateGray>GL-b) </​color>​** To check the correct status of wpa_supplicant daemon, run the following commands:\\+**<​color ​teal>GL-b) </​color>​** To check the correct status of wpa_supplicant daemon, run the following commands:\\
 **wpa_cli**\\ **wpa_cli**\\
 ....... then\\ ....... then\\
 **status**\\ **status**\\
  
-{{:​services:​network:​internal:​portauth:​linux:​dot1xlinux3gen.jpg|During running wpa_cli program, type status...}}\\+{{:​services:​network:​internal:​portauth:​linux:​dot1xlinux13gen.jpg|During running wpa_cli program, type status...}}\\
 Please check the value of the following parameters:​\\ Please check the value of the following parameters:​\\
 <​code>​ <​code>​
-inserire campi fondamentali e loro contenuto+wpa_state=ASSOCIATED
 </​code>​ </​code>​
 \\ \\
-**<​color ​DarkSlateGray>GL-c) </​color>​** ​ Open another terminal and start network service:\\+**<​color ​teal>GL-c) </​color>​** ​ Open another terminal and start network service:\\
  
 **ifup eth0**\\ **ifup eth0**\\
  
 \\ \\
-**<​color ​DarkSlateGray>GL-c) Use again the **wpa_cli** command and check its result;\\ +**<​color ​teal>GL-d </​color>​**  ​Use again the **wpa_cli** command and check its result;\\ 
-the last lines should be the following:​\\+the last line should be the following:​\\
 <​code>​ <​code>​
-inserire campi fondamentali e loro contenuto+CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
 </​code>​ </​code>​
 \\ \\
Line 67: Line 66:
  
 ==== Ubuntu/​Debian based distributions ==== ==== Ubuntu/​Debian based distributions ====
- +**<​color ​Maroon>U&D-a </​color>​** ​Using a text editor ​add the following lines at the end of the file:  
-**Manually launch network services and wpa_supplicant on Ubuntu/​Debian based distributions** +**/​etc/​network/​interfaces** 
- +<code>
-   ​* ​**<​color ​red1) </​color>​** ​With your preferred ​text editor ​edit the file **/​etc/​network/​interfaces** ​and add the following lines: +
-<xterm>+
 auto eth0 auto eth0
 iface eth0 inet dhcp iface eth0 inet dhcp
         wpa-driver wired         wpa-driver wired
         wpa-conf /​etc/​wpa_supplicant/​SISSA-WIRED.wpa_supplicant.conf         wpa-conf /​etc/​wpa_supplicant/​SISSA-WIRED.wpa_supplicant.conf
-</xterm+</code
-{{:​services:​network:​internal:​portauth:​linux:​dot1xlinux8gen.png|nano /​etc/​network/​interfaces and insert previous lines...}}\\ +**<​color ​Maroon>U&D-b) </​color>​** ​Enable the network ​service:\\ 
-\\ +**sudo /​etc/​init.d/​networking start**\\
-   ​* ​**<​color ​red2) </​color>​** ​Start network ​services+
-<​xterm>​ +
-sudo /​etc/​init.d/​networking start +
-</​xterm>​ +
-{{:​services:​network:​internal:​portauth:​linux:​dot1xlinux9gen.png|sudo /​etc/​init.d/​networking start}}\\+
 \\ \\
 END OF Ubuntu/​Debian based distribution CONFIGURATION GUIDE END OF Ubuntu/​Debian based distribution CONFIGURATION GUIDE
Line 89: Line 81:
 ---- ----
 ==== Fedora/​RedHat distributions ==== ==== Fedora/​RedHat distributions ====
-**Manually launch network services and wpa_supplicant on Fedora/RedHat distributions**+**<color purple>​F&​RH-a) ​ </color>** Edit the file **/​etc/​sysconfig/​wpa_supplicant**, then modify the value of the following parameters:​\\
  
-   * **<color red> 1) </​color>​** With your preferred text editor edit the file**/​etc/​sysconfig/​wpa_supplicant** and modify the lines //​INTERFACES//,​ //DIRVERS// and //​OTHER_ARGS//​ +<code>
-<xterm>+
 INTERFACES="​-i eth0" INTERFACES="​-i eth0"
-DIRVERS="​-D ​wext"+DRIVERS="​-D ​wired"
 OTHER_ARGS="​-w -f /​var/​log/​wpa_supplicant.log"​ OTHER_ARGS="​-w -f /​var/​log/​wpa_supplicant.log"​
-</xterm+</code> 
-{{:​services:​network:​internal:​portauth:​linux:​dot1xlinux10gen.jpg|nano /​etc/​sysconfig/​wpa_supplicant and modify previous lines...}}\\+Please note that these parameters are in different lines.\\ 
 +{{:​services:​network:​internal:​portauth:​linux:​dot1xlinux10gen.jpg|Modify carefully the value of the parameters...}}\\
 \\ \\
-   ​* ​**<​color ​red2) </​color>​** ​Launch ​the services ​wpa_supplicant and then network service: +**<​color ​purple>F&RH-b </​color>​** ​Enable ​the wpa_supplicant ​daemon ​and the network service:\\ 
-<​xterm>​ +**service wpa_supplicant start**\\ 
-service wpa_supplicant start +**service network start**\\ 
-..... + 
-service network start +{{:​services:​network:​internal:​portauth:​linux:​dot1xlinux11gen.jpg|Enable the services in the correct order.}}\\
-..... +
-</​xterm>​ +
-{{:​services:​network:​internal:​portauth:​linux:​dot1xlinux11gen.jpg|service wpa_supplicant start and service netork start}}\\+
 \\ \\
-END OF Fedora/​RedHat based distribution ​CONFIGURATION GUIDE+END OF Fedora/​RedHat based distribution ​configuration guide
 ---- ----
 ---- ----