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
sudo systemctl daemon-reload
after editing interfaces file – Jaromanda X Dec 08 '15 at 06:46iface 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'
– Danica Panica Dec 08 '15 at 16:59auto 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'
– Danica Panica Dec 08 '15 at 17:22