The following is what my file looks like in raspberian:
/etc/network/interfaces
auto lo
iface lo inet loopback iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.1.100
gateway 192.168.1.254
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.0
wpa-confraspberian's /etc/wpa.config
iface default inet dchp/etc/network/interfaces
/etc/wpa.config
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.1.100
gateway 192.168.1.254
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.0
wpa-conf /etc/wpa.config
iface default inet dchp
network={
ssid=""
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
psk=""
}/etc/wpa.config
network={
ssid="*******"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
psk="*******"
}
I am assuming that my wifi dongle is already installed, because when I run ifconfigifconfig
I get the following at the end:
wlan0 Link encap:Ethernet HWaddr 00:18:4d:46:9c:ca UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:18:4d:46:9c:ca
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)