0

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"
    address 192.168.0.2
    netmask 255.255.255.0
    gateway 192.168.0.1

I even rebooted the PC. However, the wireless interface is still getting an address via dhcp in the range >192.168.0.100. 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
0

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.