Go to advanced search

by presish
Mon Nov 22, 2021 8:03 pm
Forum: Networking and servers
Topic: Pi4 - Restart WiFi without Reboot
Replies: 8
Views: 384

Re: Pi4 - Restart WiFi without Reboot

ganzgustav22 wrote:
Sat Nov 20, 2021 8:33 am
Maybe try removing and inserting the brcm wifi kernel module. Ofcourse first stop wpa supplicant and dhcp daemon and make the interface down before removing the module.
How do you remove the kernel module?
by presish
Fri Nov 19, 2021 6:21 pm
Forum: Networking and servers
Topic: Pi4 - Restart WiFi without Reboot
Replies: 8
Views: 384

Re: Pi4 - Restart WiFi without Reboot

What commands is the Pi OS running during reboot that allows it to obtain a new IP and also implement the changes in the dhcpcd.conf file? the wpa_cli reconfigure command fails to execute if I switch from AP mode to original settings. It only works if I reboot the system. That seems to be the only d...
by presish
Wed Nov 17, 2021 11:05 pm
Forum: Networking and servers
Topic: Pi4 - Restart WiFi without Reboot
Replies: 8
Views: 384

Re: Pi4 - Restart WiFi without Reboot

Have you tried to restart the wpa_supplicant.service and the dhcpcd.service? sudo systemctl restart wpa_supplicant.service sudo systemctl restart dhcpcd.service But maybe that's not enough? There's also something here: https://forums.raspberrypi.com/viewtopic.php?t=198274 The suggestion in your lin...
by presish
Wed Nov 17, 2021 10:58 pm
Forum: Networking and servers
Topic: Pi4 - Restart WiFi without Reboot
Replies: 8
Views: 384

Re: Pi4 - Restart WiFi without Reboot

Have you tried to restart the wpa_supplicant.service and the dhcpcd.service? sudo systemctl restart wpa_supplicant.service sudo systemctl restart dhcpcd.service But maybe that's not enough? There's also something here: https://forums.raspberrypi.com/viewtopic.php?t=198274 The suggestion in your lin...
by presish
Wed Nov 17, 2021 10:28 pm
Forum: Networking and servers
Topic: Pi4 - Restart WiFi without Reboot
Replies: 8
Views: 384

Pi4 - Restart WiFi without Reboot

Hi all, I used to switch my RPi3B+ from behaving as it's own Access Point to a device on my network by restoring the original dnsmasq.conf and dhcpcd.conf files and then executing the: sudo ifdown wlan0 sudo ifup wlan0 Since switching to RPi4 and upgrading the OS to "Buster" I have had no ...
by presish
Fri Apr 09, 2021 6:52 pm
Forum: Networking and servers
Topic: Pi4 - Restart WiFi without Reboot
Replies: 2
Views: 455

Re: Pi4 - Restart WiFi without Reboot

The wpa_cli or rfkill commands can restart WIFI without reboot. See https://www.raspberrypi.org/forums/viewtopic.php?p=1655667#p1655667 I've tried using the wpa_cli but I get wpa_supplicant error even though I have put the original file back in. I have the option of making my Pi an AP so I don't kn...
by presish
Thu Apr 08, 2021 10:14 pm
Forum: Networking and servers
Topic: Pi4 - Restart WiFi without Reboot
Replies: 2
Views: 455

Pi4 - Restart WiFi without Reboot

I am trying to change the WiFi SSID/Passphrase and restart the network without a system reboot. Avoiding a reboot is essential as I am running a parallel script that is collecting data that I do not want to lose or have a gap in collection. I broadcast the Pi4 as an Access Point, login and submit my...
by presish
Tue Mar 23, 2021 5:34 pm
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

Re: RPi4 - Disable Access Point & Enable Default WiFi

To turn OFF the AP Broadcast and allow wlan0/other interface to take over: Place the original version of dnsmasq.conf file back into /etc/dnsmasq.conf Place the original version of dhcpcd.conf file back into /etc/dhcpcd.conf sudo service dnsmasq stop sudo service hostapd stop sudo /etc/init.d/apache...
by presish
Thu Mar 18, 2021 4:50 pm
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

Re: RPi4 - Disable Access Point & Enable Default WiFi

dnsmasq and hostapd are pretty easy. sudo service dnsmasq stop sudo service hostapd stop sudo service dnsmasq start sudo service hostapd start I'm not sure /etc/dhcpcd.conf will be as easy. Ya I am thinking I will need to use a text editor like "sed" to specifically edit the static IP lin...
by presish
Thu Mar 18, 2021 12:45 am
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

Re: RPi4 - Disable Access Point & Enable Default WiFi

My bad. Mine will start without that change to /etc/default/hostapd. It just took a while. You still have a valid /etc/wpa_supplicant/wpa_supplicant.conf file? Mine connected up as a station to my router in just a minute. So what I changed is /etc/dhcpcd.conf /etc/dnsmasq.conf and my access point s...
by presish
Thu Mar 18, 2021 12:30 am
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

Re: RPi4 - Disable Access Point & Enable Default WiFi

Those wouldn't affect wlan0 reverting to a station. My ap won't start without this in /etc/default/hostapd DAEMON_CONF="/etc/hostapd/hostapd.conf" My AP does start without the DAMON edit. Are you able to test out the link I followed on a Pi? I am not sure what setting has damaged the wlan0.
by presish
Thu Mar 18, 2021 12:18 am
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

Re: RPi4 - Disable Access Point & Enable Default WiFi

I just followed my own advice. I'm on my RPi4 that was an access point, but is now connected to the internet with wlan0 as a station. Now I'm going to change it back. The instructions never edited /etc/default/hostapd the default was: #DAEMON_CONF="" Should I leave it as is? Or uncomment ...
by presish
Thu Mar 18, 2021 12:05 am
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

Re: RPi4 - Disable Access Point & Enable Default WiFi

SurferTim wrote:
Thu Mar 18, 2021 12:04 am
I have a RPi4-4GB with an ap set my way.
Are you able to use "raspi-config" to manually setup WiFi still?

I am unsure what setting I changed that now has broken wpa_supplicant and also wlan0. Is there anything evident in the article I followed that would do this?
by presish
Thu Mar 18, 2021 12:01 am
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

Re: RPi4 - Disable Access Point & Enable Default WiFi

SurferTim wrote:
Wed Mar 17, 2021 11:57 pm
I saw it. I wrote the previous doc for the routed AP setup.
If you can't go thru that page and reverse what you did, then start over.
The previous doc for AP setup was also for Pi4? This one seems to work setting up the AP but not very easy to switch back.
by presish
Wed Mar 17, 2021 11:51 pm
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

Re: RPi4 - Disable Access Point & Enable Default WiFi

You should be able to comment out the changes. /etc/dhcpcd.conf comment out the static network settings on wlan0 /etc/dnsmasq.conf comment out the interface and dhcp-range stuff /etc/default/hostapd change DAEMON_CONF="/etc/hostapd/hostapd.conf" to DAEMON_CONF="" /etc/sysctl.con...
by presish
Wed Mar 17, 2021 11:34 pm
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

Re: RPi4 - Disable Access Point & Enable Default WiFi

That method didn't work for me. I can also add that when I run "raspi-config" to enter wifi that route fails. "Could not communicate with wpa_supplicant" "There was an error running option S1 Wireless LAN" NOTE: Connecting to my office WiFi was working fine until the AP...
by presish
Wed Mar 17, 2021 8:22 pm
Forum: Networking and servers
Topic: RPi4 - Disable Access Point & Enable Default WiFi
Replies: 17
Views: 1791

RPi4 - Disable Access Point & Enable Default WiFi

Hi Group, I have setup my Pi4 as an Access Point using https://www.raspberrypi.org/documentation/configuration/wireless/access-point-routed.md . Before setting up the AP I had connected my Pi4 to my home WiFi using the /etc/wpa_supplicant/wpa_supplicant.conf file. I am wondering how do I turn off th...
by presish
Thu Jan 30, 2020 6:52 pm
Forum: Networking and servers
Topic: dhcp settings
Replies: 2
Views: 1160

Re: dhcp settings

In dnsmasq there is the "dhcp-ignore" option that can be used in conjuction with "dhcp-host" declarations to limit which hosts the server will reply to. See the man page about these options and the standard "known" and "ignore" host tags. I suppose you could ...
by presish
Wed Jan 29, 2020 6:56 pm
Forum: Networking and servers
Topic: dhcp settings
Replies: 2
Views: 1160

dhcp settings

I am using my Pi3B+ as an access point. It is in an enclosed shell so I setup it up to broadcast an SSID with a static IP so I can SSH into it. I used dnsmasq and hostapd for setup. Basically followed the tutorial at https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md . ...
by presish
Tue Jan 28, 2020 7:13 pm
Forum: Networking and servers
Topic: Raspberry Pi 3B+ network priorities
Replies: 0
Views: 346

Raspberry Pi 3B+ network priorities

I have a WiFi (wlan0) connection and also a cellular (ppp0) connection running at the same time. I am curious which connection takes priority and also how can I change the priorities if needed? When I view "route" on the wlan0 and ppp0 setup it only shows wlan0. On my strictly cellular ppp...
by presish
Mon Jan 27, 2020 7:59 pm
Forum: Troubleshooting
Topic: apt-get update fast at startup but fails/times out few minutes later
Replies: 12
Views: 927

Re: apt-get update fast at startup but fails/times out few minutes later

Are you sure it's a 3B+ and not just a 3B? Because I'm pretty sure that Jessie won't work on a 3B+ without some funky firmware shenanigans. What does the following command return? cat /sys/firmware/devicetree/base/model;echo And Stretch was released between Buster and Jessie. Did you try Raspbian S...
by presish
Mon Jan 27, 2020 6:30 pm
Forum: Troubleshooting
Topic: apt-get update fast at startup but fails/times out few minutes later
Replies: 12
Views: 927

Re: apt-get update fast at startup but fails/times out few minutes later

Are you sure it's a 3B+ and not just a 3B? Because I'm pretty sure that Jessie won't work on a 3B+ without some funky firmware shenanigans. What does the following command return? cat /sys/firmware/devicetree/base/model;echo And Stretch was released between Buster and Jessie. Did you try Raspbian S...
by presish
Sat Jan 25, 2020 12:56 am
Forum: Troubleshooting
Topic: apt-get update fast at startup but fails/times out few minutes later
Replies: 12
Views: 927

Re: apt-get update fast at startup but fails/times out few minutes later

Hi all, My Raspberry Pi3b+ running Jessie is connected to the network via WiFi. Wait, what? Jessie on a 3B+ model? That's not even a supported model with Jessie! My suggestion is you should have upgraded your OS to Stretch when you had the chance (when you deployed 3B+ models), and now you are 2 re...
by presish
Fri Jan 24, 2020 11:53 pm
Forum: Troubleshooting
Topic: apt-get update fast at startup but fails/times out few minutes later
Replies: 12
Views: 927

Re: apt-get update fast at startup but fails/times out few minutes later

The problem is that your RPi only has a limited amount of RAM and the number of updates you're trying to install will overwhelm that. Your RPi then goes into swapping (which is diabolical and extremely slow on an SDCard). To apply every update, you're going to need to do it one update package at a ...
by presish
Fri Jan 24, 2020 10:58 pm
Forum: Troubleshooting
Topic: apt-get update fast at startup but fails/times out few minutes later
Replies: 12
Views: 927

Re: apt-get update fast at startup but fails/times out few minutes later

If you're already building Buster then what possible benefits would you get by trying to beat your old Jessie system into submission. Just give up. I need the data from the devices currently running while I am building. I can't have a gap for my research. Do you have suggestions? My BENEFIT would b...

Go to advanced search