Tag Archives: auto and eth1

auto and eth

Linux dns 2.6.15-26-server #1 SMP Thu Aug 3 04:09:15 UTC 2006 i686 GNU/Linux

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth1
iface eth0 inet static
netmask 255.255.yyy.0
broadcast 172.88.17.yyy

iface eth1 inet static
address 222.124.4.xxx
netmask 255.255.255.xxx
network 222.124.4.xxx
broadcast 222.124.4.xxx
gateway 222.124.4.xxx

whats wrong with above config?

Yes, auto keyword.

Thats today lesson that I’ve learn after get confuse when my staff add new public address into eth1.

the right config after ‘little’ mess making by delete auto ethx to wrong location is easy.

Just adding ‘auto lo‘ for loopback.

auto eth0, for lan connection.

auto eth1, for public connection

restart connection  and voila!

It work like a charm :-)