Handling static ip address configuration using /etc/network/interface
Amit Uttamchandani
Tue Nov 04 00:38:28 2014
Hi,
Our system uses Ubuntu 12.04LTS which comes with dhcpcd 6.0.5. When a
user configures a static IP using our software, we regenerate
/etc/network/interfaces. It looks like the following:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.253
netmask 255.255.255.0
gateway 192.168.1.1
On reboot, dhcpcd acquires an IP address from the DHCP server. Thus, the
unit ends up with two IP addresses.
Should dhcpcd respect the configuration in /etc/network/interfaces? Has
this been fixed in the newer releases?
What is the recommended way to ignore this interface when it is
configured statically?
Thanks,
Amit
Archive administrator: postmaster@marples.name