girish_kumar
Posts: 31
Joined: Thu Sep 12, 2013 5:59 pm

Raspberry Pi as WiFi Access point

Mon May 29, 2017 3:42 pm

Folks,
I am trying to configure, Raspberry Pi as WiFi access point
I am following the instructions given at

http://raspberrypihq.com/how-to-turn-a- ... fi-router/

I followed all the instructions, at the final stage I am getting an error
while starting the DHCP server

sudo service isc-dhcp-server start
[email protected]:~ $ sudo service isc-dhcp-server start
Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.se rvice' and 'journalctl -xn' for details.
[email protected]:~ $

I tried many option to fix this, but none has helped
Can anyone in the group give any clues

Regards
Girish

User avatar
B.Goode
Posts: 9562
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspberry Pi as WiFi Access point

Mon May 29, 2017 3:46 pm

See 'systemctl status isc-dhcp-server.se rvice' and 'journalctl -xn' for details
Is there anything relevant in the places mentioned?

If you don't understand what is there, paste it here in case someone more knowledgeable can interpret it.

fruitoftheloom
Posts: 21964
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi as WiFi Access point

Mon May 29, 2017 3:52 pm

girish_kumar wrote:Folks,
I am trying to configure, Raspberry Pi as WiFi access point
I am following the instructions given at

http://raspberrypihq.com/how-to-turn-a- ... fi-router/

I followed all the instructions, at the final stage I am getting an error
while starting the DHCP server

sudo service isc-dhcp-server start
[email protected]:~ $ sudo service isc-dhcp-server start
Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.se rvice' and 'journalctl -xn' for details.
[email protected]:~ $

I tried many option to fix this, but none has helped
Can anyone in the group give any clues

Regards
Girish
Why are you following a 4 year old Rasphian Wheezy tutorial ???

What is wrong with the tutorial in the Raspberry Pi Website Help Section ???

https://www.raspberrypi.org/documentati ... s-point.md
Retired disgracefully.....
......to an uncomplicated life !

Rather than negativity think outside the box !

User avatar
bensimmo
Posts: 4306
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Raspberry Pi as WiFi Access point

Mon May 29, 2017 5:10 pm

From memory of battling that error once upon a while back, picking up an old SD card and updating it.

When you debug using what it says and searching..
You may find it's because you are using a broken hostapd. Remove everything you have done (easiest if you start fresh really) and follow the official one given above.
That or remove hostapd you installed and get the normal one back.

girish_kumar
Posts: 31
Joined: Thu Sep 12, 2013 5:59 pm

Re: Raspberry Pi as WiFi Access point

Tue May 30, 2017 5:22 pm

Hello fruitoftheloom

>>Why are you following a 4 year old Rasphian Wheezy tutorial ???
>>What is wrong with the tutorial in the Raspberry Pi Website Help Section ???
>>https://www.raspberrypi.org/documentati ... s-point.md[/quote]

The reason I had followed the 4 years post is, I am NOT using raspberry pi3 instead I am using the first version of
raspberry pi with the latest images. REmember those Rpi with just 2 USB port, I have one lying around so decided build
a product out of it where it acts as wifi access point

Another question I have is : I am using TP-Link Wifi adapter it uses Realtek chip inside
does this support wifi access point ?

HOw do I know whether my wifi adapter can work as Wifi access or not ?

Regards
Girish

User avatar
rpdom
Posts: 16313
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberry Pi as WiFi Access point

Tue May 30, 2017 5:57 pm

girish_kumar wrote:The reason I had followed the 4 years post is, I am NOT using raspberry pi3 instead I am using the first version of
raspberry pi with the latest images. REmember those Rpi with just 2 USB port, I have one lying around so decided build
a product out of it where it acts as wifi access point
It doesn't matter which Pi you use. The old post only applies to the old images. If you are using the latest images you need to use newer instructions.
Another question I have is : I am using TP-Link Wifi adapter it uses Realtek chip inside
does this support wifi access point ?
Probably. Which Realtek chip?

User avatar
bensimmo
Posts: 4306
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Raspberry Pi as WiFi Access point

Tue May 30, 2017 6:45 pm

You will know when you do it the raspberrypi way and it complains.
But you may find you need to set some of the /etc/hostapd/hostapd.conf options a bit differently, I have to for one of my chipsets (RT????), iirc it was, for me, rsn_pairwise=CCMP needed removing as it didn't like it. Found after digging through debugging info stuff.

Just see how it goes, the WiFi adaptor is only reliant on the 'hostapd' file. The rest is just the same.

fruitoftheloom
Posts: 21964
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi as WiFi Access point

Tue May 30, 2017 6:47 pm

girish_kumar wrote: The reason I had followed the 4 years post is, I am NOT using raspberry pi3 instead I am using the first version of
raspberry pi with the latest images. REmember those Rpi with just 2 USB port, I have one lying around so decided build
a product out of it where it acts as wifi access point
So you are then running Raspbian Wheezy 2015-09-28 release ? and NOT Raspbian Jessie 2017-04-10 ?
Retired disgracefully.....
......to an uncomplicated life !

Rather than negativity think outside the box !

girish_kumar
Posts: 31
Joined: Thu Sep 12, 2013 5:59 pm

Re: Raspberry Pi as WiFi Access point

Wed May 31, 2017 2:34 am

>> So you are then running Raspbian Wheezy 2015-09-28 release ? and NOT Raspbian Jessie 2017-04-10 ?[/quote]

I am not using Raspbian Wheezy 2015-09-28 release (This is a very old one)
instead I am using RASPBIAN JESSIE LITE 2017-04-10 downloaded recently from raspberry site

Regards
Girish
Last edited by girish_kumar on Wed May 31, 2017 2:41 am, edited 1 time in total.

girish_kumar
Posts: 31
Joined: Thu Sep 12, 2013 5:59 pm

Re: Raspberry Pi as WiFi Access point

Wed May 31, 2017 2:37 am

Another question I have is : I am using TP-Link Wifi adapter it uses Realtek chip inside
does this support wifi access point ?
Probably. Which Realtek chip?[/quote]

The device I am having is: TP-LINK: TL-WN723N V3

After attaching the device I did lsmod and I see the following output

[email protected] ~ $ 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:8179 Realtek Semiconductor Corp.

Does this device support wifi access point feature ?
Regards
Girish

fruitoftheloom
Posts: 21964
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi as WiFi Access point

Wed May 31, 2017 6:19 am

girish_kumar wrote: I am not using Raspbian Wheezy 2015-09-28 release (This is a very old one)
instead I am using RASPBIAN JESSIE LITE 2017-04-10 downloaded recently from raspberry site

Regards
Girish
Therefore my question stands as to why you are following a 4 year old Wheezy Tutorial ?

When the RPF provide a Tutorial for Jessie, model of RPi is immaterial !!
Retired disgracefully.....
......to an uncomplicated life !

Rather than negativity think outside the box !

fruitoftheloom
Posts: 21964
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi as WiFi Access point

Wed May 31, 2017 6:25 am

girish_kumar wrote:
The device I am having is: TP-LINK: TL-WN723N V3

After attaching the device I did lsmod and I see the following output

[email protected] ~ $ 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:8179 Realtek Semiconductor Corp.

Does this device support wifi access point feature ?
Regards
Girish
Your WiFi requires driver / firmware: viewtopic.php?f=28&t=62371
Last edited by fruitoftheloom on Wed May 31, 2017 7:22 am, edited 1 time in total.
Retired disgracefully.....
......to an uncomplicated life !

Rather than negativity think outside the box !

girish_kumar
Posts: 31
Joined: Thu Sep 12, 2013 5:59 pm

Re: Raspberry Pi as WiFi Access point

Wed May 31, 2017 7:13 am

fruitoftheloom wrote:
girish_kumar wrote: I am not using Raspbian Wheezy 2015-09-28 release (This is a very old one)
instead I am using RASPBIAN JESSIE LITE 2017-04-10 downloaded recently from raspberry site

Regards
Girish

Therefore my question stands as to why you are following a 4 year old Wheezy Tutorial ?

When the RPF provide a Tutorial for Jessie, model of RPi is immaterial !!
To be frank, I started with a clean slate, downloaded the latest rasbian images and started with the instructions in RPF, but it did not work. So I started reading into the each and every line of the document, thinking that I had missed some step or did something wrong, that is when I noticed the one sentence" Note that this documentation was tested on a Raspberry Pi 3"""

This made me to think that I should try alternate instructions and went with the four year old, page.

Since you had confirmed that Pi model does not matter and what matters in version of JESSIE image, I am confident that something has gone wrong either with my setting or my Wifi Adapter needs some special settings which is not mentioned in the step. Will try again and let you know

Thanks a lot for confirming that fact that Pi version is a not problem I am really happy to know that,

Regards
Girish

girish_kumar
Posts: 31
Joined: Thu Sep 12, 2013 5:59 pm

Re: Raspberry Pi as WiFi Access point

Wed May 31, 2017 6:38 pm

girish_kumar wrote:
fruitoftheloom wrote:
girish_kumar wrote: I am not using Raspbian Wheezy 2015-09-28 release (This is a very old one)
instead I am using RASPBIAN JESSIE LITE 2017-04-10 downloaded recently from raspberry site

Regards
Girish

Therefore my question stands as to why you are following a 4 year old Wheezy Tutorial ?

When the RPF provide a Tutorial for Jessie, model of RPi is immaterial !!
To be frank, I started with a clean slate, downloaded the latest rasbian images and started with the instructions in RPF, but it did not work. So I started reading into the each and every line of the document, thinking that I had missed some step or did something wrong, that is when I noticed the one sentence" Note that this documentation was tested on a Raspberry Pi 3"""

This made me to think that I should try alternate instructions and went with the four year old, page.

Since you had confirmed that Pi model does not matter and what matters in version of JESSIE image, I am confident that something has gone wrong either with my setting or my Wifi Adapter needs some special settings which is not mentioned in the step. Will try again and let you know

Thanks a lot for confirming that fact that Pi version is a not problem I am really happy to know that,

Regards
Girish
Folks,

Thanks to everyone who helped me to solve the problem, now it solved, I am able to see the wifi signals from raspberry pi on my mobile and it is able to connect to it

There were two problems
1. The driver for my Wifi Adapter was missing in Rasbian, so I installed it as per the suggestion from fruitoftheloom
2. *Still I get a error*: When I create a bridge I get the following error
[email protected]:~ $ sudo systemctl stop hostapd
[email protected]:~ $ sudo vi /etc/dhcpcd.conf
[email protected]:~ $ sudo brctl addbr br0
[email protected]:~ $ sudo brctl addif br0 eth0 wlan0
can't add wlan0 to bridge br0: Operation not supported

Googled a lot to find out the reason, but did not help. Finally did a reboot and did the above steps again and it worked

In short the problem is solved

Regards
Girish

drgeoff
Posts: 10319
Joined: Wed Jan 25, 2012 6:39 pm

Re: Raspberry Pi as WiFi Access point

Thu Jun 01, 2017 7:33 am

girish_kumar wrote: In short the problem is solved
Girish
Is it? viewtopic.php?f=36&t=185053

girish_kumar
Posts: 31
Joined: Thu Sep 12, 2013 5:59 pm

Re: Raspberry Pi as WiFi Access point

Thu Jun 01, 2017 10:43 am

drgeoff wrote:
girish_kumar wrote: In short the problem is solved
Girish
Is it? viewtopic.php?f=36&t=185053
Related to this itself
AS described access point work well as a internet sharing device.

but it does not work as stand alone device. More specifically the computers are not getting IP address from DNSmasq in standalone mode, this is explained in detail at viewtopic.php?f=36&t=185053

Regards
Girish

julien.launay
Posts: 51
Joined: Wed Mar 30, 2016 5:22 am

Re: Raspberry Pi as WiFi Access point

Sat Jun 09, 2018 11:51 am

Hello,

Can you give me a step by step tutorial to setup a raspberry as an access point on stretch?
I try to follow these tuto, but nothing works!
https://raspberrypi.stackexchange.com/q ... an-stretch

Thanks to help me.

Julien

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Raspberry Pi as WiFi Access point

Sat Jun 09, 2018 12:09 pm

This is the one I edited for Stretch. It works for me.
https://www.raspberrypi.org/documentati ... s-point.md

Return to “Networking and servers”