14.6. Samba Network Browsing
Network browsing is a concept that enables Windows and Samba servers to appear in the Windows Network Neighborhood. Inside the Network Neighborhood, icons are represented as servers and if opened, the server's shares and printers that are available are displayed.
Network browsing capabilities require NetBIOS over TCP/IP. NetBIOS-based networking uses broadcast (UDP) messaging to accomplish browse list management. Without NetBIOS and WINS as the primary method for TCP/IP hostname resolution, other methods such as static files (
/etc/hosts) or DNS, must be used.
A domain master browser collates the browse lists from local master browsers on all subnets so that browsing can occur between workgroups and subnets. Also, the domain master browser should preferably be the local master browser for its own subnet.
14.6.1. Workgroup Browsing
For each workgroup, there must be one and only one domain master browser. You can have one local master browser per subnet without a domain master browser, but this results in isolated workgroups unable to see each other. To resolve NetBIOS names in cross-subnet workgroups, WINS is required.
The Domain Master Browser can be the same machine as the WINS server.
There can only be one domain master browser per workgroup name. Here is an example of the
smb.conffile in which the Samba server is a domain master browser:
[global] domain master = Yes local master = Yes preferred master = Yes os level = 35
Next is an example of the
smb.conffile in which the Samba server is a local master browser:
[global] domain master = no local master = Yes preferred master = Yes os level = 35
os leveldirective operates as a priority system for master browsers in a subnet. Setting different values ensures master browsers do not conflict with each other for authority.
os leveldirective results in Samba conflicting with other master browsers on the same subnet. The higher the value, the higher the priority. The highest a Windows server can operate at is 32. This is a good way of tuning multiple local master browsers.
There are instances when a Windows NT machine on the subnet could be the local master browser. The following is an example
smb.confconfiguration in which the Samba server is not serving in any browsing capacity:
[global] domain master = no local master = no preferred master = no os level = 0
Having multiple local master browsers result in each server competing for browsing election requests. Make sure there is only one local master browser per subnet.