I set up the above file as below to get static IP on my wireless interface:

allow-hotplug wlan0
iface wlan0 inet static
    wpa-ssid "essid"
    wpa-psk "password"

I even rebooted the PC. However, the wireless interface is still getting an address via dhcp in the range > Is there some error in the above syntax please?

  • check if the dhcpcd is runing on your raspbian systemctl status dhcpcd.service – GAD3R Jul 9 '17 at 13:32

stop the dhcp client daemon otherwise it will run, ask for an ip address and override your static config

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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