Saturday, January 28, 2017

Temporarily switching Wi-Fi networks from the command line on a Raspberry Pi

I recently had a scenario with my Raspberry Pi (Zero, running Raspbian) where I needed to temporarily switch away from the primary Wi-Fi connection to another access point (to drive a camera) then reconnect to my original network. Turns out wpa_cli can do the trick:

The best thing about this approach is that it is non-persistent, so if it all goes horrible wrong you get your original networking configuration back upon reboot.


  1. Hey, guys! This topic has been something that I have been looking for a few hours. I want to say a big thanks to the author for sharing this useful information. I think I will be back here later to find more cool things from you in future. Don't waste your time on doing boring paperwork - assist it to the professionals at and be sure in their brilliant quality 24/7!

  2. Benvenuti nel nostro Shop & Blog
    Questo sito promuove le nuove tecnologie attorno ai sistemi di Videosorveglianza e sistemi di Antifurto. Tendiamo a presentare i sistemi Wireless "senza fili" per ridurre tempo e costi di installazione. Tutto è facile da installare e quindi ci rivolgiamo a tutti che amano il fai-da-te.
    Nel nostro Blog trovate un po di tutto e se vi registrate potete lasciare una Vostra testimonianza che è sempre benvenuta.Trovate articoli per la videosorveglianza cablata e wireless come DVR, NVR, telecamere Bullet e Dome IP, POE e WiFi. Sistemi di Antifurto wireless con Sirene e Sensori. Prodotti per Network come Router, Repeater, WiFi, cavi Rete, Gaming. Harddisk esterni, PowerLan, Convertitori, Adattatori. Articoli per Ufficio come sedie, scrivanie ed altri.
    sistema allarme wireless GSM senza fili

  3. Highly energetic post, I liked that a lot. Will there be a part 2? capitalone com login

  4. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. hop over to this web-site

  5. This is so cool! Thank you so much for sharing!
    gmail email login