static IP problem with ifstate on debian sarge

From: hakim (hakim.st_at_web.de)
Date: 07/28/05


Date: 28 Jul 2005 03:40:58 -0700

Hi,

I have rent a server. It is configured over dhcp in
/etc/network/interfaces:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

I changed it to static like that in /etc/network/interfaces:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.255
broadcast x.x.x.x
gateway x2.x2.x2.x2

But the interface does not come up proberly. The only hint I have found
is /etc/network/run/ifstate.

Under dhcp looks ifstate like:

lo=lo
eth0=eth0

And it works fine.

under static ifstate looks like that:

lo=lo

It missess my eth0 interface and most probably it doesn't work because
of that. The default gateway isn't up too. I have plugged in my own
script after booting which tries to set a default gw but it doesn't
show up.
It is a server in the house of my provider.

Does anyone have a hint why under static configuration the ifstate file
does not list eth0=eth0 to bring up my interface correctly.

Many Thanks...

Achim



Relevant Pages

  • Re: eth0: Unknown host
    ... auto lo eth0 ... iface lo inet loopback ... iface eth0 inet static ... Analysing the last one I realised every network interface should begin ...
    (comp.os.linux.networking)
  • Re: home network through router
    ... Tab Gilbert wrote: ... If you want simple file sharing between the two systems then right click ... If you are using DHCP for your primary network card which is ... iface eth0 inet static ...
    (Ubuntu)
  • Re: Why is adding a new Ubuntu PC to an existing LAN such a pain?
    ... restarting a service???? ... iface eth0 inet static ... DHCP server on one of the machines? ... Which Ubuntu version is this? ...
    (Ubuntu)
  • XEN switch to static IP
    ... I migrated a sarge installation into a domU. ... I did this using dhcp. ... iface eth0 inet static ... ## The primary network interface ...
    (Debian-User)
  • Re: networking, interfaces problem on Debian sarge
    ... > iface lo inet loopback ... > auto eth0 ... > iface eth0 inet dhcp ...
    (comp.os.linux.setup)