[Samba] Two subnets in one PDC ?

kissg mail.gery at gmail.com
Fri Aug 8 07:58:49 GMT 2008


Of course, it is possible. Enable the WINS server on your PDC and tell your
clients to use it. This can be achieved in two ways:

- setting them up by hand (slow and painful solution, if your network has a
lot of hosts)
- using DHCP options number 44 and number 46. Option 44 stands for "WINS
server address", 46 stands for "NetBIOS node type". If you use a node type
of 8, your clients will use WINS exclusively for NetBIOS name resolution,
therefore broadcast traffic will decrease on your network, thus leaving more
bandwidth for "useful" data. If you use dnsmasq, add the following lines to
/etc/dnsmasq.conf for each of your DHCP subnet definitions:

dhcp-range=192.168.100.0,255.255.255.0,24h
dhcp-option=44,192.168.100.1 (substitute this with the address of your PDC)
dhcp-option=46,8

dhcp-range=192.168.200.0,255.255.255.0,24h
dhcp-option=44,192.168.200.1 (your PDC's IP address)
dhcp-option=46,8

The WINS server part of nmbd can be enable with a single option in smb.conf:

[global]
wins support = Yes

That's all you have to do for proper name resolution across subnets.


More information about the samba mailing list