[KLUG Members] Setting netbios node type via ISC dhcpd (answer)

Adam Tauno Williams members@kalamazoolinux.org
Wed, 12 Feb 2003 14:59:25 -0500


Last night Mr. Brindleman asked how to set the netbios node type between
broadcast, hybrid, and point-to-point (WINS only) for Win32 clients.

The option is the "netbios-node-type" in the subnet declaration.

1 = Broadcast only, no WINS
2 = WINS only, point-to-point
4 = Multimode, use broadcase falling back to WINS
8 = Hybrid, use WINS but fall back to broadcast

M$ docs refer to 1 as type "B", 2 as type "P", 4 as type "M", and 8 as type "H"

If you use WINS you should also set netbios-name-server and netbios-dd-server to
the IP of your WINS server(s).

cn: 192.168.10.0
objectClass: top
objectClass: dhcpSubnet
objectClass: dhcpOptions
dhcpNetMask: 24
dhcpStatements: authoritative; range 192.168.10.100 192.168.10.199
dhcpStatements: default-lease-time 129400
dhcpStatements: max-lease-time 172800
dhcpOption: routers 192.168.10.19
dhcpOption: domain-name-servers 192.168.1.9
dhcpOption: domain-name "morrison.iserv.net"
dhcpOption: nis-domain "morrison"
dhcpOption: nis-servers 192.168.1.9
dhcpOption: netbios-name-servers 192.168.1.9
dhcpOption: netbios-node-type 2
dhcpOption: netbios-dd-server 192.168.1.9

If your not using DHCP you can set this via regedit.  On a Win NT, Y2k, or Xpee
box set 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netbt\Parameters\NoteType
(a REG_WORD) to 1, 2, 4, or 8

If your using a Win9x or (God forbid) a ME box set
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP\NoteType (a
DWORD) to 1, 2, 4, or 8