Don Zauker's picture


I'm facing a strange network related issue, I have a TK LAMP installed as VM on a ESX system, sometimes when I reboot the VM the network interface goes crazy:

non-zero exitcode (1) for command: ifdown 'eth0'

/etc/network/interfaces:14: duplicated option

ifdown: couldn't read interface file


Usually network files is:

# remove the above line if you edit this file
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
    address xx.xx.xx.xx
    netmask xx.xx.xx.xx
    gateway xx.xx.xx.xx
    dns-nameservers xx.xx.xx.xx.xx.
When it goes mad I found another line:
iface eth1 inet dhcp
but eth1 doesn't exist at all !
To fix I have to force dhcp on eth0 and reboot.
This Vm machine was installed rom CD and not moved from other virtual environment.
DjK's picture

I had the same issue, came out of nowhere on a restart of the Turnkey LAMP server on ESXi.

If you look in the file "/etc/network/interfaces" you will probably have a duplicate entry for your eth0 adapter.  I had one entry which was my static address but further down the file I also had another entry for eth0 set as dhcp.

I removed the dhcp duplicate entry against 'eth0' then issued ifup eth0 and it came up fine.

Add new comment