I have a static eth0 configuration, everything goes right until I unplug the ethernet connector and plug it again, after that dhcp starts over eth0 and my dhcp server gives a new IP to PI2, so I lose the static IP.
I'm using raspbian jessie. Here is my interfaces file (actually I have one pseudo interface and both have the same problem).
Code: Select all
[email protected]# cat /etc/network/interfaces auto lo eth0 eth0:1 iface lo inet loopback iface eth0 inet static address 10.5.0.3 netmask 255.255.255.0 iface eth0:1 inet static address 192.168.100.27 netmask 255.255.255.0 gateway 192.168.100.24 #allow-hotplug wlan0 #iface wlan0 inet manual #wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf #iface default inet dhcp