gauravsharma0190
Posts: 125
Joined: Tue Oct 28, 2014 6:36 am

making pi as hotspot

Wed Sep 11, 2019 11:14 am

hello there,
i am working on raspberry pi 3 and Os version raspbian 2019-10-07 buster.
i want to make pi as a access point so anther pi can connect to it.
i gone through some links
https://pimylifeup.com/raspberry-pi-wir ... ess-point/
https://www.shellvoide.com/wifi/setup-w ... asq-linux/
here i have done all the steps and reboot my system , but there is no access point which i can see.
i want to use address 10.42.0.1
and ip's to be assigned in range 10.42.0.50-100
with no security and password.
another video link i have seen in which it can directly do with gui.
here is the linkhttps://www.youtube.com/watch?v=XgcDipALFOc
but also can't able to do it.
please provide the solution.

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

Re: making pi as hotspot

Wed Sep 11, 2019 11:29 am

gauravsharma0190 wrote:
Wed Sep 11, 2019 11:14 am
hello there,
i am working on raspberry pi 3 and Os version raspbian 2019-10-07 buster.
i want to make pi as a access point so anther pi can connect to it.
i gone through some links
https://pimylifeup.com/raspberry-pi-wir ... ess-point/
https://www.shellvoide.com/wifi/setup-w ... asq-linux/
here i have done all the steps and reboot my system , but there is no access point which i can see.
i want to use address 10.42.0.1
and ip's to be assigned in range 10.42.0.50-100
with no security and password.
another video link i have seen in which it can directly do with gui.
here is the linkhttps://www.youtube.com/watch?v=XgcDipALFOc
but also can't able to do it.
please provide the solution.

https://www.raspberrypi.org/documentati ... s-point.md
Retired disgracefully.....

gauravsharma0190
Posts: 125
Joined: Tue Oct 28, 2014 6:36 am

Re: making pi as hotspot

Wed Sep 11, 2019 11:52 am

i don't want password in my hotspot because of some project then how can i do it.
another thing is i want my hotspot ip as 10.42.0.100
and its ip range 101-200. then how can do that??
also i got error in this step
sudo service dhcpcd restart
here is the errors

dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: e
Active: failed (Result: exit-code) since Tue 2018-11-13 20:31:30 IST; 1min 20
Process: 1111 ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -b (code=exited, status=6)

Nov 13 20:31:30 raspberrypi systemd[1]: Starting dhcpcd on all interfaces...
Nov 13 20:31:30 raspberrypi dhcpcd[1111]: Not running dhcpcd because /etc/networ
Nov 13 20:31:30 raspberrypi dhcpcd[1111]: defines some interfaces that will use
Nov 13 20:31:30 raspberrypi dhcpcd[1111]: DHCP client or static address
Nov 13 20:31:30 raspberrypi systemd[1]: dhcpcd.service: Control process exited,
Nov 13 20:31:30 raspberrypi systemd[1]: Failed to start dhcpcd on all interfaces
Nov 13 20:31:30 raspberrypi systemd[1]: dhcpcd.service: Unit entered failed stat
Nov 13 20:31:30 raspberrypi systemd[1]: dhcpcd.service: Failed with result 'exit

Last edited by gauravsharma0190 on Wed Sep 11, 2019 12:07 pm, edited 1 time in total.

Andyroo
Posts: 4466
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: making pi as hotspot

Wed Sep 11, 2019 12:05 pm

To set the dhcp range change
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
Have a careful read of the linked page.

As for no password - not a good idea so I’m not going there :lol:
Need Pi spray - these things are breeding in my house...

gauravsharma0190
Posts: 125
Joined: Tue Oct 28, 2014 6:36 am

Re: making pi as hotspot

Wed Sep 11, 2019 12:13 pm

yeah i know its not a good idea but i just need to connect some other board with it which is moving and then check some security algorithm.
so random board can connect. i just not want to share internet over hotspot.
i read the page.

hippy
Posts: 5942
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: making pi as hotspot

Wed Sep 11, 2019 12:27 pm

Don't know if this will help but these are my verbatim notes for enabling AP access with no password as a Captive Portal on a 3B under Buster. I have my AP as 10.10.10.10, allocating 10.10.10.100-200. Should be easy enough to modify.

After installation and configuration, I have been calling these CLI commands from a Python program to enable and disable the AP on demand and it seems to be working fine and as expected.

Code: Select all

SETUP AS A WIRELESS ACCESS POINT
================================

SETUP

  sudo apt-get install hostapd
  sudo apt-get install dnsmasq

Stop them running by default 

  sudo systemctl stop dnsmasq
  sudo systemctl stop hostapd

SETUP DHCPCD

  sudo nano /etc/dhcpcd.conf

    interface wlan0
    static ip_address=10.10.10.10/24
    nohook wpa_supplicant

SETUP HOSTAPD

  sudo nano /etc/hostapd/hostapd.conf

    interface=wlan0
    driver=nl80211
    ssid=MyHotspot
    hw_mode=g
    channel=8
    wmm_enabled=0
    macaddr_acl=0
    auth_algs=1
    ignore_broadcast_ssid=0
    country_code=GB
    ieee80211n=1
    ieee80211d=1
 
  sudo nano /etc/default/hostapd

    #DAEMON_CONF=""
    to
    DAEMON_CONF="/etc/hostapd/hostapd.conf"

SETUP DMSMASQ

  Add to the bottom of 

  sudo nano /etc/dnsmasq.conf

    interface=wlan0
    address=/#/10.10.10.10
    dhcp-range=10.10.10.100,10.10.10.200,255.0.0.0,12h
    no-resolv
    log-facility=/var/log/dnsmasq.log
    log-queries

TO START THINGS UP

  sudo systemctl start hostapd
  sudo systemctl start dnsmasq

TO STOP IT RUNNUNG

  sudo systemctl stop hostapd
  sudo systemctl stop dnsmasq

TO TURN IT OFF ENTIRELY

  sudo systemctl stop    hostapd
  sudo systemctl stop    dnsmasq
  sudo systemctl disable hostapd
  sudo systemctl disable dnsmasq

TO START AGAIN AFTER BEING TURNED OFF ENTIRELY

  sudo systemctl enable hostapd
  sudo systemctl enable dnsmasq
  sudo systemctl start  hostapd
  sudo systemctl start  dnsmasq

TO SEE LOGGING

  sudo cat /var/log/dnsmasq.log

IF WE GET MASKED ERRORS

  sudo systemctl unmask hostapd
  sudo systemctl enable hostapd
  sudo systemctl start  hostapd

  sudo systemctl unmask dnsmasq
  sudo systemctl enable dnsmasq
  sudo systemctl start  dnsmasq

CREDITS

https://andrewmichaelsmith.com/2013/08/raspberry-pi-wi-fi-honeypot/

gauravsharma0190
Posts: 125
Joined: Tue Oct 28, 2014 6:36 am

Re: making pi as hotspot

Thu Sep 12, 2019 5:33 am

no, it doesn't work for me. in this video it tells
here is the linkhttps://www.youtube.com/watch?v=XgcDipALFOc
without any file changes.
it works for me with one board which i has followed a month back. but it not work now.

Ernst
Posts: 1231
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: making pi as hotspot

Thu Sep 12, 2019 6:58 am

gauravsharma0190 wrote:
Wed Sep 11, 2019 11:14 am
i am working on raspberry pi 3 and Os version raspbian 2019-10-07 buster.
gauravsharma0190 wrote:
Thu Sep 12, 2019 5:33 am
no, it doesn't work for me. in this video it tells
here is the linkhttps://www.youtube.com/watch?v=XgcDipALFOc
without any file changes.
it works for me with one board which i has followed a month back. but it not work now.
Turn your Raspberry Pi 3 into a Wi-Fi Hotspot
Amine Tech
Published on Jun 17, 2018
Looking at the archives the most likely raspbian release used in the video is stretch from 2018-04-18.
https://downloads.raspberrypi.org/raspb ... 018-04-19/
The road to insanity is paved with static ip addresses

gauravsharma0190
Posts: 125
Joined: Tue Oct 28, 2014 6:36 am

Re: making pi as hotspot

Thu Sep 12, 2019 7:06 am

Ernst wrote:
Thu Sep 12, 2019 6:58 am
gauravsharma0190 wrote:
Wed Sep 11, 2019 11:14 am
i am working on raspberry pi 3 and Os version raspbian 2019-10-07 buster.
gauravsharma0190 wrote:
Thu Sep 12, 2019 5:33 am
no, it doesn't work for me. in this video it tells
here is the linkhttps://www.youtube.com/watch?v=XgcDipALFOc
without any file changes.
it works for me with one board which i has followed a month back. but it not work now.
Turn your Raspberry Pi 3 into a Wi-Fi Hotspot
Amine Tech
Published on Jun 17, 2018
Looking at the archives the most likely raspbian release used in the video is stretch from 2018-04-18.
https://downloads.raspberrypi.org/raspb ... 018-04-19/
No, its 2019-11-13 version file on which my one of Pi board is running with the hotspot with this method.

Ernst
Posts: 1231
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: making pi as hotspot

Thu Sep 12, 2019 7:18 am

gauravsharma0190 wrote:
Thu Sep 12, 2019 7:06 am
Ernst wrote:
Thu Sep 12, 2019 6:58 am
Looking at the archives the most likely raspbian release used in the video is stretch from 2018-04-18.
https://downloads.raspberrypi.org/raspb ... 018-04-19/
No, its 2019-11-13 version file on which my one of Pi board is running with the hotspot with this method.
Impossible !! We have not yet reached that date.

still stretch (not buster): https://downloads.raspberrypi.org/raspb ... 018-11-15/
The road to insanity is paved with static ip addresses

gauravsharma0190
Posts: 125
Joined: Tue Oct 28, 2014 6:36 am

Re: making pi as hotspot

Fri Sep 13, 2019 12:01 pm

Ernst wrote:
Thu Sep 12, 2019 7:18 am
gauravsharma0190 wrote:
Thu Sep 12, 2019 7:06 am
Ernst wrote:
Thu Sep 12, 2019 6:58 am
Looking at the archives the most likely raspbian release used in the video is stretch from 2018-04-18.
https://downloads.raspberrypi.org/raspb ... 018-04-19/
No, its 2019-11-13 version file on which my one of Pi board is running with the hotspot with this method.
Impossible !! We have not yet reached that date.

still stretch (not buster): https://downloads.raspberrypi.org/raspb ... 018-11-15/
Dear sir,
I Can send you that screen shot and also the version on which it runs.

Ernst
Posts: 1231
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: making pi as hotspot

Fri Sep 13, 2019 12:14 pm

gauravsharma0190 wrote:
Fri Sep 13, 2019 12:01 pm
Ernst wrote:
Thu Sep 12, 2019 7:18 am
gauravsharma0190 wrote:
Thu Sep 12, 2019 7:06 am

No, its 2019-11-13 version file on which my one of Pi board is running with the hotspot with this method.
Impossible !! We have not yet reached that date.

still stretch (not buster): https://downloads.raspberrypi.org/raspb ... 018-11-15/
Dear sir,
I Can send you that screen shot and also the version on which it runs.
No, I can not.

What I am pointing out is that you are using a Youtube demonstration from Jun 17, 2018 to install software using Buster.
At that moment in time Buster was not available, Stretch was the current version.
That means that the demonstration needs Stretch if it does not work on Buster.
You stated that you done the same installation using a release from 2018-11-13, in that case this is also Stretch and I have given you the link where you can download that release.

If you want to use Buster, and not Stretch, then you will have the contact the author of the youtube video to ask for help.
The road to insanity is paved with static ip addresses

Return to “Beginners”