Wifi on station

From PlcWiki

Revision as of 01:18, 6 March 2010 by Jan (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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=static BROADCAST=xx.xx.xx.xx NETMASK=255.255.255.0 IPADDR=xx.xx.xx.xx GATEWAY=xx.xx.xx.xx SEARCH="sas-automotive.com"

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) edit /etc/rc.local, add

  1. wifi treatment

if [ ! -e /var/run/wpa_supplicant/wlan0 ]; then

   wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -B

fi

5) reboot

Personal tools