Wifi on station

From PlcWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with 'To bring station to wifi follow these steps: 1) create or update /etc/sysconfig/network-scripts/ifcfg-wlan0 ONBOOT=yes USERCTL=no PEERDNS=yes IPV6INIT=no DEVICE=wlan0 BOOTPROTO…')
Line 1: Line 1:
 +
== Wifi setup ==
 +
To bring station to wifi follow these steps:
To bring station to wifi follow these steps:
1) create or update /etc/sysconfig/network-scripts/ifcfg-wlan0
1) create or update /etc/sysconfig/network-scripts/ifcfg-wlan0
-
ONBOOT=yes
+
ONBOOT=yes<br/>
-
USERCTL=no
+
DEVICE=wlan0<br/>
-
PEERDNS=yes
+
TYPE=Wireless<br/>
-
IPV6INIT=no
+
ESSID=xxxx<br/>
-
DEVICE=wlan0
+
RATE=auto<br/>
-
BOOTPROTO=static
+
-
BROADCAST=xx.xx.xx.xx
+
BOOTPROTO=static<br/>
-
NETMASK=255.255.255.0
+
IPADDR=x.x.x.x<br/>
-
IPADDR=xx.xx.xx.xx
+
NETMASK=x.x.x.x<br/>
-
GATEWAY=xx.xx.xx.xx
+
BROADCAST=x.x.x.x<br/>
-
SEARCH="sas-automotive.com"
+
NETWORK=x.x.x.x<br/>
 +
GATEWAY=x.x.x.x<br/>
 +
 +
USERCTL=no<br/>
 +
NM_CONTROLLED=no<br/>
 +
MODE=Managed<br/>
 +
PEERDNS=yes<br/>
 +
IPV6INIT=no
2) disable eth0, edit /etc/sysconfig/network-scripts/ifcfg-eth0
2) disable eth0, edit /etc/sysconfig/network-scripts/ifcfg-eth0
-
ONBOOT=no
 
-
3) edit /etc/wpa_supplicant/wpa_supplicant.conf
+
ONBOOT=no
-
Add output from command "wpa_passphrase <ssid> <passphrase>
+
 
 +
3) edit /etc/wpa_supplicant/wpa_supplicant.conf, add output from command  
 +
 
 +
"wpa_passphrase <ssid> <passphrase>
 +
 
 +
4) set service "wpa_supplicant" to be started on boot
 +
 
 +
chkconfig wpa_supplicant on
 +
 
 +
5) set system parameter in file /etc/sysconfig/wpa_supplicant
 +
 
 +
INTERFACES="-iwlan0"
-
4) edit /etc/rc.local, add
+
6) reboot
-
# wifi treatment
+
It is good to have physical access to station to be able in case of problems make corrections ;). To use both interfaces one active and one as backup see [[Bonding]].
-
if [ ! -e /var/run/wpa_supplicant/wlan0 ]; then
+
-
    wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -B
+
-
fi
+
-
5) reboot
+
== Related articles ==
 +
[[Bonding]]

Revision as of 14:06, 2 February 2011

Wifi setup

To bring station to wifi follow these steps:

1) create or update /etc/sysconfig/network-scripts/ifcfg-wlan0

ONBOOT=yes
DEVICE=wlan0
TYPE=Wireless
ESSID=xxxx
RATE=auto
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=x.x.x.x
BROADCAST=x.x.x.x
NETWORK=x.x.x.x
GATEWAY=x.x.x.x
USERCTL=no
NM_CONTROLLED=no
MODE=Managed
PEERDNS=yes
IPV6INIT=no

2) disable eth0, edit /etc/sysconfig/network-scripts/ifcfg-eth0

ONBOOT=no

3) edit /etc/wpa_supplicant/wpa_supplicant.conf, add output from command

"wpa_passphrase <ssid> <passphrase>

4) set service "wpa_supplicant" to be started on boot

chkconfig wpa_supplicant on

5) set system parameter in file /etc/sysconfig/wpa_supplicant

INTERFACES="-iwlan0"

6) reboot

It is good to have physical access to station to be able in case of problems make corrections ;). To use both interfaces one active and one as backup see Bonding.

Related articles

Bonding

Personal tools