In My raspberry Pi wifi is connected to my home wifi and eth0 is assigned with a static ip address. It act as a router between wlan0 and eth0. Raspberry pi get internet through the wifi.

After modifying the wpa_supplicant.conf, i restarted the service networking using sudo service networking restart. This restart the network but raspberry pi is not connected to the home wifi.

But it connects when we reboot the system.

1 Answer 1


After modifying wpa_supplicant.conf you need to make wpa_supplicant re-read the configuration file.

wpa_cli -i wlan0 reconfigure

(assuming wlan0 is your wifi to reconfigure)

reference - wpa_cli man page

  • Yeah. But this command disconnect the Raspberry Pi from the internet even if the Rpi is connected to Home wifi. So i need to reboot the system for internet connection.
    – mcv
    Jun 17, 2019 at 6:08
  • If you want to modify the wifi connection using wpa_supplicant then it's going to disconnect the WiFi while it reconfigures, If the WiFi provides Internet connection then that connection will return when the Wifi comes back up. You'll have to make sure that routing is also set correctly after reconfiguring the wifi. The wpa_cli command will work to reconfigure the wifi connection, but you may need addtitional commands to re-establish the network routing. When you reboot the routing is set up after the wifi is reconfigured.
    – Charemer
    Jun 17, 2019 at 8:35
  • on rebooting its work correctly. after running reconfiguration, wifi is connected and ip address is assigned to wlan0 but no internet is getting. So to re-establish the internet connection i restarted the networking service but it disconnected from wifi.
    – mcv
    Jun 17, 2019 at 11:56
  • 2
    wpa_cli -i wlan0 reconfigure produce Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory error
    – mcv
    Aug 26, 2019 at 10:43
  • What i have to do after giving wpa_cli reconfigure to get the internet? How the internet is getting while rebooting?
    – mcv
    Aug 27, 2019 at 9:48

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.