I have this configuration in /etc/network/interfaces:
auto lo iface lo inet loopback 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 allow-hotplug wlan0 #iface wlan0 inet dhcp iface wlan0 inet static address 192.168.0.110 netmask 255.255.255.0 network 192.168.0.1 gateway 192.168.0.1 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf #iface default inet dhcp iface eth0 inet static address 192.168.0.115 netmask 255.255.255.0 network 192.168.0.1 gateway 192.168.0.1
The wireless static IP worked, but the eth0 didn't.
So I tried to do the config in /etc/dhcpcd.conf:
interface eth0 static ip_address=192.168.0.115/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1
And it worked. I am confused and here are several questions:
When to use which file?
Why the wifi worked with /etc/network/interfaces but the eth0 didn't?
Does dhcpcd has somehow priority over /etc/network/interface?
How to check which service has priority or someting? And which service uses /etc/network/interface?