Subject: Re: NetBSD-1.4: DHCP setup
To: dustin sallings <dustin@spy.net>
From: Simon J. Gerraty <sjg@netboss.cdn.telstra.com.au>
List: port-sparc
Date: 05/20/1999 16:56:14
> 	What does the DHCP server think?  I'm not sure where you got that
> lease, but get rid of it and try over.  You shouldn't need anything but

I did that.  The static lease is based on the first lease that the
DHCP server gave me.  I creamed /var/db/dhclient.leases and rebooted -
server keeps giving me the same lease:

lease {
  interface "le0";
  fixed-address 172.242.145.57;
  medium "media 10baseT/UTP";
  option subnet-mask 255.255.255.0;
  option routers 172.242.145.1;
  option domain-name-servers 144.136.201.10,144.132.81.10;
  option domain-name "telstra.com.au";
  option broadcast-address 255.255.255.255;
  option netbios-name-servers 172.172.2.12,145.132.1.97;
  option netbios-node-type 8;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option dhcp-server-identifier 144.135.128.15;
  renew 4 1999/5/20 06:11:50;
  rebind 4 1999/5/20 06:34:20;
  expire 4 1999/5/20 05:57:46;
}

I think the problem is:

> // Trying medium "media 10baseT/UTP" 1
> // ifconfig: SIOCSIFMEDIA: Device not configured

at this point I think dhclient thinks the interface is up when in fact
it isn't.

I just removed all the medium entries from my config and the leases
file and rebooted.

Listening on BPF/le0/08:00:20:10:1d:55
Sending on   BPF/le0/08:00:20:10:1d:55
Sending on   Socket/fallback/fallback-net
ifconfig: SIOCDIFADDR: Can't assign requested address
DHCPDISCOVER on le0 to 255.255.255.255 port 67 interval 4
can't connect to sysconf socket: No such file or directory
DHCPOFFER from 172.242.145.1
DHCPREQUEST on le0 to 255.255.255.255 port 67
DHCPACK from 172.242.145.1
New Network Number: 172.242.145.0
New Broadcast Address: 255.255.255.255
bound to 172.242.145.57 -- renewal in 604800 seconds.
starting system logger

and 

# ifconfig -a
le0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 08:00:20:10:1d:55
        media: Ethernet 10base5
        status: active
        inet 172.242.145.57 netmask 0xffffff00 broadcast 255.255.255.255

looks much better.

Thanks.

--sjg