Recently I setup a raspberry pi to talk to the internet via ethernet here. I asked myself how do you configure Ethernet and wireless on the radpberry pi?
Today I added a wireless card and set it up so it can talk to the network too.
Step 1: Wireless Dongle.
I purchased 1x EDUP Model EP-N8537 Wireless LAN 150Mbps USB Adapter from eBay for $7.95 ( , item).
Step 2: Configuration.
I plugged my new Wireless card into Windows and ran the following command to get the MAC Address for the new card. Write the Mac Address down.
I then connected to my ADSL router and went to the Static IP section under LAN/DHCP.
I added a static IP reservation for this mac address to my router and gave it an IP that I was happy with.
I then booted the Raspberry Pi (don’t connect the Wireless card yet). I typed the following command to open the network interfaces file.
sudo nano /etc/network/interfaces
I deleted the contend of my interfaces file and typed this in.
face io inet loopback
iface eth0 inet static
iface wlan0 inet static
If you are unsure of what to type above go and check out the hundreds of awesome and free security/networking podcasts here https://www.grc.com/securitynow.htm.
I ran a safe shutdown, inserted the WLAN adapter and rebooted.
Now I can use the ethernet or WIFI.
No drivers or non fee DEB packages were installed to get this NIC working.
Bonus tip: I am using a Ethernet over Power adapter connected to a wireless extender to allow my arduino/raspberry pi to connect to my router.
Arduino/Pi -> Gigabit Switch -> EoP A -> 240v (50m) -> EoP B -> 100MB Switch -> WiFi (30m) Extender A -> WiFI -> WiFi Extender B -> Router -> Internet