Subject: Re: dhclient vs. Shaw cable modem
To: John Nemeth <jnemeth@cue.bc.ca>
From: Andreas Wrede <andreas@planix.com>
List: current-users
Date: 11/09/1998 09:48:17
On Mon, 09 Nov 1998 05:52:04 PST John Nemeth writes
>      I'm trying to get a NetBSD 1.3.2 system to work with a Shaw (Canada)
> cable modem.  So far, I've been unsuccessful using the dhclient that
> comes with 1.3.2 and the latest version from ftp.isc.org.  It does work
> with a Win95 box.  Here's a snippet from a DHCP_DISCOVER packet originating
> from the Win95 box that I captured using tcpdump:
> 
> xid:0x831b831b secs:1536 vend-rfc1048 T53:1 T61:1.0.96.151.187.239.49
> T50:3504226328 HN:"cs840999-a^@" (Hl 32, id 1792)
> 
> Can anybody tell me what options I need to use on NetBSD to duplicate
> this (or, at least the important parts)?  Alternatively, has anybody
> managed to get NetBSD to work with a Shaw (Canada) cable modem?

I had to put  the "hostname" the cable company (Roger's Wave) 
assigned to me into  /etc/dhclient.conf. My cable modem is attached to de0:

interface "de0" {
        send host-name "cr1000270-a";
}

Looking at the tcpdump snippet, your hostname appears to be cs840999-a. 
Running  'dhclient de0' gets me an ip address - the output is as follows:

Listening on BPF/de0/00:e0:29:0e:f7:99/unattached
Sending on   BPF/de0/00:e0:29:0e:f7:99/unattached
Sending on   Socket/fallback/fallback-net
DHCPREQUEST on de0 to 255.255.255.255 port 67
can't connect to sysconf socket: No such file or directory
DHCPNAK from 24.112.32.8
DHCPDISCOVER on de0 to 255.255.255.255 port 67 interval 23
DHCPACK in wrong transaction.
DHCPOFFER from 24.2.9.66
DHCPNAK in wrong transaction.
DHCPREQUEST on de0 to 255.255.255.255 port 67
DHCPACK from 24.2.9.66
New Network Number: 24.112.34.0
New Broadcast Address: 24.112.35.255
bound to 24.112.34.79 -- renewal in 302400 seconds.

Note that the default /etc/dhclient-script will clobber your /etc/
resolv.conf.
-- 
Andreas Wrede              Planix, Inc.
andreas@planix.com         Networking, System Administration, Consulting
http://www.planix.com      Toronto, Ontario, Canada