Adding a USB wifi dongle on Pi as router

This has been shown several times on internet, but people are using different method.
http://blog.yam.com/cistychang/article/61517499
This one use Pi to have PPPoE connection, and hostapd as access point, so other device can access to the device.
Then he make wifi as fix IP, using following as IP forwarding.
 dnsmasq (isc-dhcp-server seems to work as well) using apt-get install dnsmasq


ADAFruit has also a very good article:
https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point
They also go through a lot of pages:
I used the following pages as a guide to create this tutorial, please note many of them will not work completely, but check them out if you are interested!
So, they decide to tell us to do this:
 sudo apt-get install hostapd isc-dhcp-server

the also mention that there is a chance thathostapd can't work, then need to complie your own hostapd...   

Additional Note:
http://blog.thepihut.com/how-to-setup-wifi-on-the-raspberry-pi-raspbian/
If simply wish to use wifi to connect pi to an hotspot. here are 2 possibilities:
1. use the wpa gui, but you will need to do it every time after reboot.
2. using command line, will keep the last connection in file, and re connect on next connection.

留言

這個網誌中的熱門文章

Heltec ESP32+OLED+Lora, hardware testing

micro SD card for ESP32, on lolin32 with OLED and heltec 32 lora oled

Install Network Time Protocol(NTP) on BeagleBone with Angstrom linux and set local time zone