Subject: Re: dhcp
To: Petra Hofmann <petra_lynn@usa.net>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 06/23/2000 16:41:34
On 23 Jun 2000, Petra Hofmann wrote:

> Following your advice I created /etc/ifconfig.ex0, inet 10.10.1.5 and maks
> 255.255.255.0.  Then set /etc/rc.conf defaultroute to same 10... as it is the
> ip of my router.

Ummm, if 10.10.1.5 is the ip of you router, then you can't use that as
your ip. Also note that nothing in /etc/rc.conf takes effect until you
reboot (or run the rc scripts, in current).

Try this:

  ifconfig ex0 10.10.1.? netmask 255.255.255.0

(filling in an appropriate ip address). Then

  route -f add default 10.10.1.5

(or use the ip of your router). Now

  ifconfig -A ex0; route -n show

should mirror the information you just entered.

> I then set /etc/resolv.conf to domain petrah.tnc and
> nameserver to 10.1.11.33 the dns server.

OK. Can you ping anything? Try the router.

> dhclient now reports:
> listening on BPF/ex0/00:10:4b:d2:b9:b4  My nic
> Sending on the addr above.
> dhcpdiscover on ex0 to 255.255.255.255 port 67 interval 6
> can't connect to sysconf socket: No such file or directory.
> 
> What file is missing?

Don't know. The idea was to see if TCP/IP works _without_ dhclient, to
isolate the difficulty. 


Frederick