monapi
Posts: 45
Joined: Tue Aug 07, 2018 7:53 am

switch raspberry pi 3 between access point and none access point

Mon Aug 20, 2018 6:16 pm

hello, i use https://learn.adafruit.com/setting-up- ... t/overview tutorial and make my raspberry pi 3 an access point, after that i can't connect to the internet neither via wifi nor via ethernet cable. with this tutorial when i see the DHCP status it says faild but when i make wlan0 up my raspberry turn to an access point and give IP to my cell phone. i need internet in the access point mode its my first question how can i have it?
and i want to connect to the internet in access point mode with cable but i need VPN to connect to my internet and i don't have one on my raspberry so i can't connect with cable. i want to use my raspberry as picroft so i need internet. i need a way to switch between these moods. can someone help me? thank you.

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

Re: switch raspberry pi 3 between access point and none access point

Mon Aug 20, 2018 6:27 pm

Try here
http://www.raspberryconnect.com/network ... pcd-method
In the first paragraphs they have various links to various setup, pick one that fits what you want.

monapi
Posts: 45
Joined: Tue Aug 07, 2018 7:53 am

Re: switch raspberry pi 3 between access point and none access point

Tue Aug 21, 2018 6:26 am

thanks for your help.
to use the new tutorial how should i cancel the last one. should i delete the OS and install anew one?

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

Re: switch raspberry pi 3 between access point and none access point

Tue Aug 21, 2018 7:51 am

monapi wrote:
Tue Aug 21, 2018 6:26 am
thanks for your help.
to use the new tutorial how should i cancel the last one. should i delete the OS and install anew one?
Up to you,
either see which bits are different and modify yours.
Reverse what you did.
Or send a few minutes rewriting the sdcard.

monapi
Posts: 45
Joined: Tue Aug 07, 2018 7:53 am

Re: switch raspberry pi 3 between access point and none access point

Tue Aug 21, 2018 9:17 am

i use
sudo rm /etc/dhcp/dhcp.conf
and command like this and delete all the files that i open by sudo.
and try to use your tutorial but when i open this
sudo nano /etc/dhcpcd.conf
to edit it and add

Code: Select all

interface wlan0
    static ip_address=192.168.4.1/24
    nohook wpa_supplicant
there isn't any default command in it and the page is blank i put command in it and when i save the file with ctrl+x+y
it didn't get out of the file .
and i cant run
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
this command.
i have this problem with all the sudo nano commands.
please help me.
thank you.

Return to “Raspberry Pi OS”