Raspberry Pi USB Wireless Network Card Configuration Method

by geekzhang on 2013-06-30 18:45:25

Raspberry Pi (commonly referred to as "RPi" in Chinese) is a credit card-sized computer designed for students to learn programming. It runs on a Linux-based system. Please refer to relevant articles for the installation process. If you're using a USB Mini wireless network card, you can refer to the configuration method below.

My USB wireless network card model is EDUP EP-N8508GS, priced at 29 yuan. If you fail to obtain an IP address dynamically via DHCP, you can refer to the following method:

1. Use the `lsusb` command to check if the USB WiFi chip is detected.

2. Use the `iwlist wlan0 scan` command to scan for available wireless networks.

3. Configure the file with `sudo nano /etc/network/interfaces` as follows:

```

auto lo

iface lo inet loopback

iface eth0 inet dhcp

# Static IP

auto wlan0

allow-hotplug wlan0

iface wlan0 inet static

address 192.168.1.239

netmask 255.255.255.0

gateway 192.168.1.1

wpa-ssid "Your SSID"

wpa-psk "Your WIFI Password"

# Route

up route add default gw 192.168.1.1

down route del default gw 192.168.1.1

```

After completing these steps, restart your Raspberry Pi.

Raspberry Pi official website: [http://www.raspberrypi.org/](http://www.raspberrypi.org/)

Raspberry Pi introduction: [http://zh.wikipedia.org/zh-cn/%E6%A0%91%E8%8E%93%E6%B4%BE](http://zh.wikipedia.org/zh-cn/%E6%A0%91%E8%8E%93%E6%B4%BE)

Recommended Taobao store: [http://item.taobao.com/item.htm?id=17342970994](http://item.taobao.com/item.htm?id=17342970994)