Subject: Re: NetBSD-1.4: DHCP setup
To: None <current-users@netbsd.org>
From: Aaron J. Grier <agrier@poofy.goof.com>
List: current-users
Date: 05/19/1999 23:57:46
I should have replied to this earlier, since I ran into a simliar
problem on an i386 box at work...

> // interface "le0" {
> //         send host-name "hobbit";
> //         send dhcp-client-identifier 08:00:20:10:1d:55;
> //         send dhcp-lease-time 3600;
> // #       prepend domain-name-servers 127.0.0.1;
> //         request subnet-mask, broadcast-address, time-offset, routers,
> //                 domain-name, domain-name-servers, host-name;
> //         require subnet-mask, domain-name-servers;
> //            script "/etc/dhclient-script";
> //            media "media 10baseT/UTP", "media 10base2/BNC";

try getting rid of this line...

> // }
> // 
> // lease {
> //   interface "le0";
> //   fixed-address 144.136.188.252;
> //   medium "media 10baseT/UTP";

and this one...

> //   option subnet-mask 255.255.255.192;
> //   option routers 144.136.188.193;
> //   option domain-name-servers 144.136.201.10,144.132.81.10;
> //   option domain-name "cdn.telstra.com.au";
> //   option broadcast-address 144.136.188.255;
> //   option dhcp-server-identifier 144.135.128.15;
> // }
> // 
> // and when I reboot (after tossing the old mygate and ifconfig.le0
> // stuff) I get:
> // 
> // 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
> // Trying medium "media 10baseT/UTP" 1
> // ifconfig: SIOCSIFMEDIA: Device not configured

apparently your interface doesn't understand a media type of
10baseT/UTP.  But according to the man page, it might understand
10BaseT.  :)

Of course, I'm curious as to the reasoning why ifconfig utterly falls
flat on its face instead of setting the IP address and returning a
non-zero error code.

----
  Aaron J. Grier  | "Not your ordinary poofy goof." | agrier@poofy.goof.com
        I do not support US and NATO "police actions" in Yugoslavia.