[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-client
Subject:    how to configure dhclient?
From:       "Alejandro 'Lanjoe9' Valenzuela" <lanjoe9 () prodigy ! net ! mx>
Date:       2004-05-10 19:23:01
Message-ID: 409FD695.5010705 () prodigy ! net ! mx
[Download RAW message or body]

   *** From dhcp-client -- To unsubscribe, see the end of this message. ***

Hi everyone.
I'm trying to get a laptop to configure itself with a dhcp server at 
boot time, and if a dhcp server is not found, to take a predefined lease.

My /etc/dhclient.conf file is this one:

# $FreeBSD: src/etc/dhclient.conf,v 1.2.2.1 2001/12/14 11:44:31 rwatson 
Exp $
#
#    This file is required by the ISC DHCP client.
#    See ``man 5 dhclient.conf'' for details.
#
#    In most cases an empty file is sufficient for most people as the
#    defaults are usually fine.
#
interface "fxp0"{
timeout 3;
}
lease {
 interface "fxp0";
 fixed-address 132.248.139.249;
 option subnet-mask 255.255.255.0;
 option dhcp-lease-time 2592000;
 option routers 132.248.139.254;
 option domain-name-servers 132.248.204.1;
 renew 3 2009/9/9 09:09:09;
 rebind 3 2009/9/9 09:09:09;
 expire 3 2009/9/9 09:09:09;
}
------------ end of config file

It configures itself fine when there's a dhcp server available, but when 
there isn't, it takes all the time it wants (instead of timing out at 3 
seconds) and sets its IP to 0.0.0.0 (or worse, says it set its IP to 
192.168.0.98 (which is its usual address in my home network) and does 
nothing).

I'm running FreeBSD 4.9-RELEASE.

¿What am I doing wrong?
Thanks in advance.
Alejandro
-----------------------------------------------------------------------
To unsubscribe from this list, visit http://www.isc.org/dhcp-lists.html
or send mail to dhcp-client-request@isc.org with the subject line of
'unsubscribe'.
-----------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic