Say I've got this wifi config:



Now, say that this happens:

  • A is down when booting, so we connect to B
  • ... some time passes ...
  • A comes back up

Will raspian switch over to wifi A, or will it stay on wifi B?

And if the default behaviour is to stay on B, how can I make it so that I automatically switch over to A when it gets availible?

  • Do you have different sessions (e.g. youtube streaming, ssh sessions etc.) running on each connection, so it doesn't matter that one connection disconnected and its sessions break? Or do you want to have the same sessions on both connections and want to switch them on the fly without breaking the sessions? Then both connections must provide exactly the same services.
    – Ingo
    Aug 26, 2020 at 14:02
  • your question is a Linux question, not an RPi question
    – jsotola
    Aug 26, 2020 at 14:46
  • @Ingo It's running as a server and I have the IP forwarding only on one wifi. So it doesn't matter if connections break
    – rutchkiwi
    Aug 26, 2020 at 15:46

1 Answer 1


Once connected to a network it will remain unless the network is shut down.

This is normal behaviour for all computers.

If you restart networking it MAY change, but even this can not be guaranteed.

  • Thanks! is there a way to change this behaviour?
    – rutchkiwi
    Aug 26, 2020 at 15:47
  • @rutchkiwi It should be possible with bonding but haven't tested it.
    – Ingo
    Aug 26, 2020 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.