Automatic reconnection to wireless network

Feb 02, 2018 4 Replies

I have a Pi Zero working as a backup server. Occasionally, it seems to lose the wireless network and is unable to reconnect automatically.



Is there some way to configure so that if the connection drops for some reason, it will try to reconnect until it succeeds?



Thanks,



Daniele


How are you configuring the wireless network at the moment - NetworkManager or something else?

I have the network's details in the wpa_supplicant.conf file.

Daniele

you could probably wrote a script that pings and if it pfails recboots the network. Not sure how to do that though

The lifetime of any political organisation is about three years before its been subverted by the people it tried to warn you about. Anon.

Basically whatever's bringing the network up now can probably be told to do it again.

I use Raspbian lite, and I put in root's crontab:

  • * * * * /sbin/ifup wlan0

and that works well for me.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required