Enabling Samba Shares Across Subnets, Part 2 - page 2

Sharing With Windows and Multiple Subnets

November 26, 2008

By
Carla Schroder

You need one local master browser per subnet. The various Windowses on a subnet will duke it out amongst themselves for who gets to be the master browser. If you prefer more correct terminology, Windows calls it the Computer Browser Service, and if there is more than one Windows PC they will have elections every 15 minutes or so to elect a master browser. The newest Windows usually wins, and its address is reported to WINS. You can turn this off in Control Panel | Administrative Tools | Computer Browser, but it's not necessary unless you're trying to isolate a problem. Leaving it enabled in all of your Windows PCs means you'll always have a LMB available.

You may prefer to use Samba as a LMB. All you need is a Linux PC running Samba server, and this smb.conf:

That's all you need; you don't need to define any other shares. The preferred master directive forces an election when Samba starts up, and setting the os level to 65 ensures that it will always win elections.