Raspberry PI - wifi

Utworzono: 24 czerwiec 2015

apt-get install iw

apt-get install wireless-tools

apt-get install wpasupplicant

apt-get install firmware-ralink

 

mcedit /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# Interfejs LAN
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
# gateway 192.168.0.1

# WiFi
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/config_wifi.conf

# Wirtualny interfejs
iface wir inet static
address 10.0.0.100
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255

gateway 10.0.0.1

 

mcedit /etc/wpa_supplicant/config_wifi.conf

network={
ssid="NAZWA_SIECI"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="HASLO-DO-SIECI"
id_str="wir"
}

reboot