[ Pobierz całość w formacie PDF ]
.Operating systems are assigned a binary value# nmblookup SIMPLE#1Baccording to their version, as shown in Table 5-1.Sending queries to 192.168.220.255192.168.220.100 SIMPLETable 5-1.Operating System Values in an ElectionMultiple subnetsOperating System ValueThere are three rules that you must remember when creating a workgroup/domain Windows NT Server 4.0 33that spans more than one subnet: Windows NT Server 3.51 32Windows NT Workstation 4.0 17" You must have either a Windows NT or Samba machine acting as a local mas-Windows NT Workstation 3.51 16ter browser on each subnet in the workgroup/domain.(If you have a domainWindows 98 2master browser in a subnet, a local master browser is not needed.)Windows 95 1" You must have a Windows NT Server or a Samba machine acting as a domainWindows 3.1 for Workgroups 1master browser somewhere in the workgroup." Each local master browser must be instructed to synchronize with the domainFollowing that, each computer on the network is assigned a separate value accord-master browser.ing to its role, as shown in Table 5-2.Samba has a few other features in this arena in the event that you don t have orTable 5-2.Computer Role Settings in an Electionwant a domain master browser on your network.Consider the subnets shown inFigure 5-1.Role ValuePrimary Domain Controller 128First, a Samba server that is a local master browser can use the remote announceWINS Client 32configuration option to make sure that computers in different subnets are sentPreferred Master Browser 8broadcast announcements about the server.This has the effect of ensuring that theActive Master Browser 4Samba server appears in the browse lists of foreign subnets.To achieve this, how-Standby Browser 2ever, the directed broadcasts must reach the local master browser on the othersubnet.Be aware that many routers do not allow directed broadcasts by default; Active Backup Browser 1124 Chapter 5: Browsing and Advanced Disk Shares Browsing 121Explorer.It only prevents the share from being listed under the machine sresources when being browsed.192.168.220 subnetSamba Server192.168.220.100browse listLocal masterbrowserYou should never need to change this parameter from its default value of yes.Ifyour Samba server is acting as a local master browser (i.e., it has won the brows-ing election), you can use the global browse list option to instruct Samba to 192.168.221 subnet 192.168.222 subnetprovide or withhold its browse list to all clients.By default, Samba always pro-vides a browse list.You can withhold this information by specifying the following:Samba Server Samba Server[global]192.168.221.130 192.168.222.120browse list = noLocal master Local masterbrowser browserIf you disable the browse list, clients cannot browse the names of other machines,their services, and other domains currently available on the network.Note that thiswon t make any particular machine inaccessible; if someone knows a validWorkstation Workstation Workstation Workstationmachine name/address and a share on that machine, they can still connect to it 192.168.221.140 192.168.221.150 192.168.221.130 192.168.221.140explicitly using NET USE or by mapping a drive letter to it using WindowsExplorer.It simply prevents information in the browse list from being retrieved byany client that requests it.Figure 5-1.Multiple subnets with Samba serversauto servicesyou may have to change this setting on the router for the directed broadcasts toThe global auto services option, which is also called preload, ensures that theget through to its subnet.specified shares are always visible in the browse list.One common use for thisWith the remoteannounceoption, list the subnets and the workgroup that shouldoption is to advertise specific user or printer shares that are created by thereceive the broadcast.For example, to ensure that machines in the 192.168.221[homes] or [printers] shares, but are not otherwise browsable.and 192.168.222 subnets and SIMPLE workgroup are sent broadcast informationThis option works best with disk shares.If you wish to force each of your systemfrom our Samba server, we could specify the following:printers (i.e., those listed in the printer capabilities file) into the browse list using# Browsing election optionsthis option, we recommend using the load printers option instead.Any sharesos level = 34listed with the auto services option will not be displayed if the browse listlocal master = yesremote announce = 192.168.221.255/SIMPLE \option is set to no.192.168.222.255/SIMPLEdefault serviceIn addition, you are allowed to specify the exact address to send broadcasts to ifthe local master browser on the foreign subnet is guaranteed to always have aThe global default service option (sometimes called default) names a last-fixed IP address.ditch share
[ Pobierz całość w formacie PDF ]