Subject: Re: Off-Topic: DHCP Windows Emulation
To: Feico Dillema <feico@pasta.cs.uit.no>
From: Alan Barrett <apb@cequrux.com>
List: current-users
Date: 03/08/2001 18:13:50
On Thu, 8 Mar 2001, Feico Dillema wrote:
> PS: For those interested, here's a tcpdump of a windows DHCP request:
> 
> 12:57:04.547821 0.0.0.0.68 > 255.255.255.255.67:  [udp sum ok] xid:0x10723c77
> vend-rfc1048 dhcp-msgtyp:3 dhcp-cliid:1.0.1.2.159.93.179 dhcp-reqipaddr:x.x.x.x
> HN:"I7O7O8^@" T81:0,18688,20279,20279,56 dhcp-classid:77.83.70.84.32.57.56
> dhcp-prmreq :1.15.3.6.44.46.47.43.77 (ttl 128, id 1024)

T81 is called "Client FQDN" in
<http://www.isi.edu/in-notes/iana/assignments/bootp-dhcp-parameters>.
Its content here is "\0\0\0I7O7O8\0", which is the same as the hostname
option, plus some extra NULs.

dhcp-classid is option number 60.  It's content here is "MSFT 98".

> I think I need at least the dhcp-cliid, dhcp-classid and maybe the T81
> in NetBSDs request, which currently looks like:
> 
> 15:32:13.697995 0.0.0.0.68 > 255.255.255.255.67:  [udp sum ok] xid:0x9e5ce522 secs:5
> vend-rfc1048 dhcp-msgtyp:3 dhpc-srvid:21 2.142.28.66 dhcp-reqipaddr:x.x.x.x 
> dhcp-prmreq:1.28.2.3.15.6.12 [tos 0x10] (ttl 16, id 0)

Try adding this to dhclient.conf:

  send option-60 "MSFT 98"; # Vendor class ID
  send option-61 01:00:01:02:9F:5D:B3; # Client ID

--apb (Alan Barrett)