On Thu, Aug 20, 2009 at 10:27 AM, Bryce Stenberg<[email protected]> wrote:
> This is have it set to use DHCP to get network address etc, but if no dhcp
> server is found within the timeout then set it to an already set manual
> configuration instead.
>
> Does anyone know if this is possible under Ubuntu 9.04?

A good way would be to configure dhclient to have a static lease,
which will be used if no DHCP server is available.

man dhclient.conf
The DHCP client may decide after some period of time (see PROTOCOL
TIMING) that it is not going to succeed
in  contacting a server.   At that time, it consults its own database
of old leases and tests each one that
has not yet timed out by pinging the listed router for that lease to
see if that lease could work.   It  is
possible to define one or more fixed leases in the client
configuration file for networks where there is no
DHCP or BOOTP service, so that the client can still automatically
configure its  address.    This  is  done
with the lease statement.

So, edit /etc/dhcp3/dhclient.conf, and look at the commented-out stuff
at the bottom :-)

-jim

Reply via email to