d42
Posts: 11
Joined: Sun May 05, 2013 10:46 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat May 18, 2013 11:50 am

SirLagz wrote: Do you have a static IP address set ?
Hi SirLagz,

yes I have, /etc/network/interfaces is configured as written in your tutorial:

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

iface wlan0 inet static
  address 192.168.42.1
  netmask 255.255.255.0

#allow-hotplug wlan0
#iface wlan0 inet manual
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp

up iptables-restore < /etc/iptables.ipv4.nat
I just reinstalled the whole pi to start with a clean installation but it doesn't work either. I also removed parts of your /etc/default/ifplugd solution because wlan0 wasn't showing up anymore after the change. I had to change the "HOTPLUG" back to the original. Now wlan0 is back but still without an IP address :cry:

Code: Select all

INTERFACES="eth0"
HOTPLUG_INTERFACES="all"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
I also have problem starting hostapd at boot time:

Code: Select all

pi@raspberrypi ~ $ sudo update-rc.d hostapd enable
update-rc.d: using dependency based boot sequencing
update-rc.d: error: no runlevel symlinks to modify, aborting!
pi@raspberrypi ~ $ 
Thanks for your help

Cheers
Torsten

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat May 18, 2013 1:47 pm

Something doesn't seem right there...

Can you post outputs of lsusb, lsmod and ifconfig -a ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

d42
Posts: 11
Joined: Sun May 05, 2013 10:46 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon May 20, 2013 5:49 pm

SirLagz wrote:Something doesn't seem right there...

Can you post outputs of lsusb, lsmod and ifconfig -a ?
Hi SirLagz,

wlan0 is up and running if I used ifconfig -a, I alway used just ifconfig and it isn't showed then.

I don't know if it helps but I also followed the instructions at http://www.jenssegers.be/blog/43/Realte ... spberry-Pi after the custom installation of hostapd I followed your tutorial
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
pi@raspberrypi ~ $ lsmod
Module Size Used by
snd_bcm2835 15846 0
snd_pcm 77560 1 snd_bcm2835
snd_seq 53329 0
snd_timer 19998 2 snd_pcm,snd_seq
snd_seq_device 6438 1 snd_seq
snd 58447 5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
snd_page_alloc 5145 1 snd_pcm
8192cu 489381 0
leds_gpio 2235 0
led_class 3562 1 leds_gpio
pi@raspberrypi ~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:15:f7:cc
inet addr:192.168.2.106 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:155 errors:0 dropped:0 overruns:0 frame:0
TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14175 (13.8 KiB) TX bytes:15800 (15.4 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1104 (1.0 KiB) TX bytes:1104 (1.0 KiB)

wlan0 Link encap:Ethernet HWaddr a0:f3:c1:1d:c3:6b
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)
Thanks for your help!

Cheers
Torsten

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Tue May 21, 2013 1:18 am

I missed this before - but you need to add 'auto wlan0' into /etc/network/interfaces for it to come up automatically on boot.
When it comes up, it should also have an IP address...
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

d42
Posts: 11
Joined: Sun May 05, 2013 10:46 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed May 22, 2013 5:42 pm

SirLagz wrote:I missed this before - but you need to add 'auto wlan0' into /etc/network/interfaces for it to come up automatically on boot.
When it comes up, it should also have an IP address...
Hi SirLagz,

thanks! This helped, wlan0 is now up and has an IP address. Great! Unfortunately I still have a problem starting hostapd on boot.

Code: Select all

pi@raspberrypi ~ $ sudo update-rc.d hostapd enable
update-rc.d: using dependency based boot sequencing
update-rc.d: error: no runlevel symlinks to modify, aborting!
Do you have any ideas?

Thanks for your help!
Cheers
Torsten

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu May 23, 2013 1:02 am

Not sure about the startup scripts...
are you using the Realtek version of hostapd or the default Raspbian one ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

d42
Posts: 11
Joined: Sun May 05, 2013 10:46 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu May 23, 2013 12:11 pm

SirLagz wrote:Not sure about the startup scripts...
are you using the Realtek version of hostapd or the default Raspbian one ?
Hi SirLagz,

I am using the realtek one as written on http://www.jenssegers.be/blog/43/Realte ... spberry-Pi However it was working before I reinstalled the Pi. I had the problem that wlan0 wasn't obtaining an IP address but the startup script was alright. Now it's the other way around :lol:

Cheers
Torsten

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu May 23, 2013 12:52 pm

lol, always fun when that happens :)

What happens when you run hostapd by itself ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

d42
Posts: 11
Joined: Sun May 05, 2013 10:46 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu May 23, 2013 7:40 pm

SirLagz wrote:lol, always fun when that happens :)

What happens when you run hostapd by itself ?
Well, it works just fine :) The Pi becomes an AP.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Fri May 24, 2013 2:04 am

I'd install hostapd again, then find out where the binary is stored, and copy the realtek binary over the packaged one.
And then just don't update hostapd.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

dickolsson
Posts: 1
Joined: Tue Jun 11, 2013 6:11 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Tue Jun 11, 2013 6:24 am

I had trouble getting the hotspot working with the newest image (2013-05-25-wheezy-raspbian.img) and the Edimax USB dongle (using the RTL8192CU driver described at http://blog.sip2serve.com/post/38010690 ... -rtl8192cu).

When I had configured everything I could successfully authenticate and connect to the hotspot, but I couldn't ping anything except the router. Basically no Internet connection as a connecting client, although the RPi could definitely access the Internet. So to me it seems to have been a problem around the firewall, NAT, ip forwarding or something...

So, I tried the exact same steps on the previous image (2013-02-09-wheezy-raspbian.img) because I had it working a couple of weeks ago on another RPi, and that worked! So it seems to me that there's something that's incompatible between this tutorial and the latest Raspbian image in my setup.

d42
Posts: 11
Joined: Sun May 05, 2013 10:46 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Jun 15, 2013 11:46 am

Hi, short update from my side. If anybody else encounters the problem. I installed hostapd and uninstalled it again. Afterwards I installed the modified realtek version. That did the trick!

Cheers
Torsten

User avatar
kbailey
Posts: 40
Joined: Fri Feb 08, 2013 6:22 am
Location: Largo Florida USA
Contact: ICQ Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Jun 17, 2013 1:30 am

wifi good. secured wifi nogood.
When I follow the tutorial for the open access wifi it works fine. When I then make the mods described to implement the secured network, nothing happens, as in not even a signal or a complaint type of nothing. Were it to bark like a duck it would be an improvement. Here is the conf file:
root@raspberrypi:/etc/hostapd# cat /etc/hostapd/hostapd.conf
interface=wlan0
#driver=nl80211
ssid=PI_net_1
hw_mode=g
channel=9
#macaddr_acl=0
auth_algs=1
#ignore_broadcast_ssid=0
#wpa=2
#wpa_passphrase=Wom.pum
#wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP
#rsn_pairwise=COMP
#
wmm_enabled=0

Note that the system is working at this moment as an open access wifi access point; the secured service items are commented out.

Any suggestions? :?: :?
-Cheers!
-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-
Computers are the new Logos.
Does this compute?

Cael
Posts: 96
Joined: Sat Jul 07, 2012 7:08 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed Jun 19, 2013 11:53 am

i cant seem to get hostapd to recognise the rt2800usb driver as valid. (i have an TendaW311T MicroUSB Dongle which is loaded by the RT5730 driver) i know this dongle can be set in mastermode as using the windows utility for XP and 7.you can run it as such.

using rt2800usb or nl80211 for driver produces:

pi@raspberrypi ~/rtl $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Line 2: invalid/unknown driver '(shows reguardless what driver i use)'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'

i'm using the NOOBS1.1 image of raspbian i'll try w/ the direct download of raspbian but somethinsg not right. adafruits tutorial on this. telsl to download a spefic version from realtek. however that version's now lacking wpa_supplicant_hostapd in the zip.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed Jun 19, 2013 12:06 pm

Cael wrote:i cant seem to get hostapd to recognise the rt2800usb driver as valid. (i have an TendaW311T MicroUSB Dongle which is loaded by the RT5730 driver) i know this dongle can be set in mastermode as using the windows utility for XP and 7.you can run it as such.

using rt2800usb or nl80211 for driver produces:

pi@raspberrypi ~/rtl $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Line 2: invalid/unknown driver '(shows reguardless what driver i use)'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'

i'm using the NOOBS1.1 image of raspbian i'll try w/ the direct download of raspbian but somethinsg not right. adafruits tutorial on this. telsl to download a spefic version from realtek. however that version's now lacking wpa_supplicant_hostapd in the zip.
Realtek hostapd is just for the RTL8188CUS/8192 chipset sticks.
Your RT5370 should work out of the box with the nl80211 drivers.

Can you run "iw list" (yes there is a space between iw and list) and paste what comes up ?
You may need to run apt-get install iw to get the utility.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

dknelson
Posts: 1
Joined: Fri Jun 21, 2013 5:08 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Fri Jun 21, 2013 5:14 am

I am stuck. Everything is running but when I try to connect to the wifi network it just times out. What could be causing the Pi to reject my connection? I had to do some custom stuff in addition to the tutorial, such as uninstall hostapd and install a custom one for RTl8192cu. This modification allowed me to see the network on my network list.

Deliberatus
Posts: 14
Joined: Thu Jan 31, 2013 10:10 pm

Re: [Tutorial] Using the Raspberry Pi as a WiFi hostspot

Sun Jun 23, 2013 5:22 am

Linus wrote:The guy in this http://sirlagz.net/2012/08/09/how-to-us ... er-part-1/ tutorial uses

Code: Select all

iw list
to determine if the dongle has Acces Point capabilities.
Hokay, what is "iw" and does it eat much, and what's the title of the package to grab to aquire it?

-Deliberatus
:?:

Deliberatus
Posts: 14
Joined: Thu Jan 31, 2013 10:10 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Jun 23, 2013 5:48 am

"iw"s in tghe package iw, and one can download and install it with this command:

apt-get iw install

Which will do the trick.

Cael
Posts: 96
Joined: Sat Jul 07, 2012 7:08 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu Jun 27, 2013 10:03 am

sorry i just moved this past weekend and i must of left the SD card behind just bought a new 8GB SD card so i'll try again.

zetta
Posts: 1
Joined: Sat Jul 20, 2013 4:00 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Jul 20, 2013 4:08 pm

Is it possible to use this method to turn my Pi into a hotspot, while still maintaining a wi-fi connection to my home router (and ideally routing the packets to my home router via wi-fi instead of ethernet)?

poing
Posts: 1132
Joined: Thu Mar 08, 2012 3:32 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Jul 21, 2013 2:42 pm

You'll need two WiFi dongles for that. Earlier in this thread I explained how, just search a few pages backwards.

rbn
Posts: 162
Joined: Tue Dec 27, 2011 8:32 pm
Location: Near Peterborough
Contact: Website

WiFi hotspot...Reverse direction anyone?

Mon Jul 22, 2013 8:46 pm

Great tutorial. I have built an access point using this, but with a modified hostapd because I have an Edimax EW-7811Un dongle.
However my point in writing is to say that if anyone is interested in a router which goes in the opposite direction, i.e. fixed wireless input port, serving a different network on the wired ethernet port, which supports dhcp, then I have recently done a project to do this. It was developed to support my internet ready TV connecting it to my wireless broadband router. The propriety wireless usb dongle offered by the TV manufacturer was an alternative that was too expensive!

This setup could also feed a network switch with several ports which could support a separate wired network.

Details in this post http://www.raspberrypi.org/phpBB3/viewt ... 36&t=50466
or here on my Blog http://rbnrpi.wordpress.com/project-lis ... -ready-tv/

oldfart
Posts: 20
Joined: Wed Feb 06, 2013 11:50 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed Jul 24, 2013 9:08 pm

Hi
Having some problems ...
Got an ebay item:- Raspberry Pi Wi-Fi adapter dongle Ralink RT5370 RTL8188CUS with external antenna
plugged it in (via powered USB hub)
results of dmesg:

Code: Select all

[ 1363.235939] usb 1-1.3.4: new high-speed USB device number 7 using dwc_otg
[ 1363.353857] usb 1-1.3.4: New USB device found, idVendor=148f, idProduct=5370
[ 1363.353887] usb 1-1.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1363.353904] usb 1-1.3.4: Product: 802.11 n WLAN
[ 1363.353917] usb 1-1.3.4: Manufacturer: Ralink
[ 1363.353929] usb 1-1.3.4: SerialNumber: 1.0
[ 1363.445883] usb 1-1.3.4: reset high-speed USB device number 7 using dwc_otg
[ 1363.583562] phy1 -> rt2800_init_eeprom: Error - Invalid RF chipset 0x3070 detected.
[ 1363.583589] phy1 -> rt2x00lib_probe_dev: Error - Failed to allocate device.
ifup wlan0 gives loads of erros

tried

Code: Select all

wget http://ftp.de.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-ralink_0.39_all.deb
and then dpkg -i firmware-ralink_0.39_all.deb

still no joy
Any ideas??

namaku0
Posts: 1
Joined: Thu Jul 25, 2013 3:53 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu Jul 25, 2013 4:34 am

Hi, new user and first post here.

I followed the tutorial here: http://elinux.org/RPI-Wireless-Hotspot, and after a couple of minute
(I have some experiences with Linux 8-)) I successfully turn my Raspberry Pi and my old and
unused USB WiFi dongle (Edimax EW-7318USG with Ralink RT2501USB/RT2601USB
chipsets) into a wireless Router/Access Point.

I want to hear from anyone who has been using their Raspberry Pi as wireless Router/AP
for a long time--let's just say more than 1 month of system uptime. How is the reliability?
what WiFi chip used? Operating System used? Usage pattern? Or anything you can share.

This may sounds silly and not worth the hassle, but I am thinking/planning of using my
Raspberry Pi as NAS and (maybe another) as Router/AP. (You can tell me not to do it but
at least give me a good reason :|)

That is all, sorry if I ask too much, and sorry for my English. Thanks.

MattF
Posts: 55
Joined: Tue Feb 12, 2013 10:01 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu Jul 25, 2013 11:21 am

I've been running with excellent stability using a TP-Link TL-WN822N for a long time now.

This uses the ath9k_htc driver and firmware.
This means no more than 8 stations at anyone point in time, which in some use cases is a problem for me.
(At least the firmware, and driver and both OS, but the platform is fairly memory constrained, and thus there is always going to be a limit to the number of concurrent stations that can be supported).

Has anyone successfully supported a larger (say 32, 64?) number of concurrent connections on a different USB WiFi adapter?

Thanks

Return to “Networking and servers”