0

I'm trying to set up a static IP for the Raspberry Pi but the Verizon router keeps ignoring the interfaces config file and uses it's own DHCP IP address. I tried sudo rm /var/lib/dhcp/* to remove licenses but that did not work. I tried to refresh the router and remove the old instance of the Raspberry Pi from the DHCP list but that did not work either. Why is this happening and how do I fix it? Below is the config file:

source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet static
        pre-up /etc/firewall-openvpn-rules.sh
address 192.168.1.18
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

allow-hotplug wlan0
iface wlan0 inet manual
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Milliways
  • 62,573
  • 32
  • 113
  • 225
Danica Panica
  • 439
  • 3
  • 7

1 Answers1

0

You cannot set static addresses this way (at least not without disabling other software).

Follow the instructions in the following to configure.

How do I set up networking/WiFi/static IP address?

As usual, I will point out that there are better options than setting a static addresses (discussed in the above link).

Milliways
  • 62,573
  • 32
  • 113
  • 225