-
Notifications
You must be signed in to change notification settings - Fork 10
RPI WIFI
firepick1 edited this page May 10, 2014
·
3 revisions
Although it is possible to rely on CAT5 cable to establish your Raspberry Pi network connection, the extra tangle of wire will soon prove annoying. The instructions on this page will help you set up Raspberry Pi to have either wired or wireless network connection.
@Requires
- Wi-Fi USB adapter (e.g. Edimax USB)
- Powered USB hub for Raspberry Pi (e.g., Plugable)
- Save a backup copy of /etc/network/interfaces
-
sudo vi /etc/network/interfaces
set up Raspberry Pi for wireless and/or wired Ethernet connection
# automatically install loopback network interface auto lo iface lo inet loopback # use DHCP to determine Raspberry Pi IP address for first (eth0) network card iface eth0 inet dhcp # automatically install wireless network interface auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-scan-ssid 1 wpa-ap-scan 1 wpa-key-mgmt WPA-PSK wpa-proto RSN WPA wpa-pairwise CCMP TKIP wpa-group CCMP TKIP wpa-ssid "ENTER-YOUR-WIRELESS-ROUTER-SSID" wpa-psk "ENTER-YOUR-WIFI-PASSWORD" iface default inet dhcp
-
sudo reboot
reboot to apply your interface changes -
ifconfig
list network interfaces to see your wired (eth0) as well as your wireless (wlan0) internet addresses:
eth0 Link encap:Ethernet HWaddr b8:27:eb:af:8e:3b inet addr:192.168.1.88 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6654 errors:0 dropped:0 overruns:0 frame:0 TX packets:116 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:366807 (358.2 KiB) TX bytes:6400 (6.2 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 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:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan0 Link encap:Ethernet HWaddr 80:1f:02:a2:d9:21 inet addr:192.168.1.97 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17822 errors:0 dropped:10 overruns:0 frame:0 TX packets:1009 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4165583 (3.9 MiB) TX bytes:150050 (146.5 KiB)