I have a device with two interfaces, eth0 and eth1. One should get its IP from a DHCP server and the other should get its IP statically.
If my /etc/network/interfaces
file is configured as follows:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp
iface eth1 inet6 auto
auto eth0
iface eth0 inet static
address 10.10.10.10
netmask 255.255.255.0
Everything works great, eth1 gets its IP from the DHCP server, eth0 sets its IP statically from the information given, but if I try to change the order in the file, such as
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.10.10.10
netmask 255.255.255.0
auto eth1
iface eth1 inet dhcp
iface eth1 inet6 auto
In this case, eth1 fails to get an IP.
Does the /etc/network/interface care about the order of each interfaces, such that the admin should place the interfaces that get IPs through DHCP first, then the static ones, or is there a different error in the configuration I have made?