- Add &author.mimir; entity
[Samba/gebeck_regimport.git] / docs / docbook / projdoc / Browsing.sgml
blobca2f6dc57b1c560e5fef82f5ef933ed46e108b05
1 <chapter id="improved-browsing">
2 <chapterinfo>
3 <author>
4 <affiliation>
5 <orgname>Samba Team</orgname>
6 </affiliation>
7 </author>
9 <pubdate> (5 July 1998) </pubdate>
10 </chapterinfo>
12 <title>Improved browsing in samba</title>
14 <sect1>
15 <title>Overview of browsing</title>
17 <para>
18 SMB networking provides a mechanism by which clients can access a list
19 of machines in a network, a so-called <command>browse list</command>. This list
20 contains machines that are ready to offer file and/or print services
21 to other machines within the network. Thus it does not include
22 machines which aren't currently able to do server tasks. The browse
23 list is heavily used by all SMB clients. Configuration of SMB
24 browsing has been problematic for some Samba users, hence this
25 document.
26 </para>
28 <para>
29 MS Windows 2000 and later, as with Samba 3 and later, can be
30 configured to not use NetBIOS over TCP/IP. When configured this way
31 it is imperative that name resolution (using DNS/LDAP/ADS) be correctly
32 configured and operative. Browsing will NOT work if name resolution
33 from SMB machine names to IP addresses does not function correctly.
34 </para>
36 <para>
37 Where NetBIOS over TCP/IP is enabled use of a WINS server is highly
38 recommended to aid the resolution of NetBIOS (SMB) names to IP addresses.
39 WINS allows remote segment clients to obtain NetBIOS name_type information
40 that can NOT be provided by any other means of name resolution.
41 </para>
43 </sect1>
45 <sect1>
46 <title>Browsing support in samba</title>
48 <para>
49 Samba facilitates browsing. The browsing is supported by &nmbd;
50 and is also controlled by options in the &smb.conf; file.
51 Samba can act as a local browse master for a workgroup and the ability
52 for samba to support domain logons and scripts is now available.
53 </para>
55 <para>
56 Samba can also act as a domain master browser for a workgroup. This
57 means that it will collate lists from local browse masters into a
58 wide area network server list. In order for browse clients to
59 resolve the names they may find in this list, it is recommended that
60 both samba and your clients use a WINS server.
61 </para>
63 <para>
64 Note that you should NOT set Samba to be the domain master for a
65 workgroup that has the same name as an NT Domain: on each wide area
66 network, you must only ever have one domain master browser per workgroup,
67 regardless of whether it is NT, Samba or any other type of domain master
68 that is providing this service.
69 </para>
71 <note><para>
72 Nmbd can be configured as a WINS server, but it is not
73 necessary to specifically use samba as your WINS server. MS Windows
74 NT4, Server or Advanced Server 2000 or 2003 can be configured as
75 your WINS server. In a mixed NT/2000/2003 server and samba environment on
76 a Wide Area Network, it is recommended that you use the Microsoft
77 WINS server capabilities. In a samba-only environment, it is
78 recommended that you use one and only one Samba server as your WINS server.
79 </para></note>
81 <para>
82 To get browsing to work you need to run nmbd as usual, but will need
83 to use the <command>workgroup</command> option in &smb.conf;
84 to control what workgroup Samba becomes a part of.
85 </para>
87 <para>
88 Samba also has a useful option for a Samba server to offer itself for
89 browsing on another subnet. It is recommended that this option is only
90 used for 'unusual' purposes: announcements over the internet, for
91 example. See <command>remote announce</command> in the
92 &smb.conf; man page.
93 </para>
94 </sect1>
96 <sect1>
97 <title>Problem resolution</title>
99 <para>
100 If something doesn't work then hopefully the log.nmb file will help
101 you track down the problem. Try a debug level of 2 or 3 for finding
102 problems. Also note that the current browse list usually gets stored
103 in text form in a file called <filename>browse.dat</filename>.
104 </para>
106 <para>
107 Note that if it doesn't work for you, then you should still be able to
108 type the server name as <filename>\\SERVER</filename> in filemanager then
109 hit enter and filemanager should display the list of available shares.
110 </para>
112 <para>
113 Some people find browsing fails because they don't have the global
114 <command>guest account</command> set to a valid account. Remember that the
115 IPC$ connection that lists the shares is done as guest, and thus you must
116 have a valid guest account.
117 </para>
119 <para><emphasis>
120 MS Windows 2000 and upwards (as with Samba) can be configured to disallow
121 anonymous (ie: Guest account) access to the IPC$ share. In that case, the
122 MS Windows 2000/XP/2003 machine acting as an SMB/CIFS client will use the
123 name of the currently logged in user to query the IPC$ share. MS Windows
124 9X clients are not able to do this and thus will NOT be able to browse
125 server resources.
126 </emphasis></para>
128 <para>
129 The other big problem people have is that their broadcast address,
130 netmask or IP address is wrong (specified with the "interfaces" option
131 in &smb.conf;)
132 </para>
133 </sect1>
135 <sect1>
136 <title>Browsing across subnets</title>
137 <para>
138 Since the release of Samba 1.9.17(alpha1) Samba has been
139 updated to enable it to support the replication of browse lists
140 across subnet boundaries. New code and options have been added to
141 achieve this. This section describes how to set this feature up
142 in different settings.
143 </para>
145 <para>
146 To see browse lists that span TCP/IP subnets (ie. networks separated
147 by routers that don't pass broadcast traffic) you must set up at least
148 one WINS server. The WINS server acts as a DNS for NetBIOS names, allowing
149 NetBIOS name to IP address translation to be done by doing a direct
150 query of the WINS server. This is done via a directed UDP packet on
151 port 137 to the WINS server machine. The reason for a WINS server is
152 that by default, all NetBIOS name to IP address translation is done
153 by broadcasts from the querying machine. This means that machines
154 on one subnet will not be able to resolve the names of machines on
155 another subnet without using a WINS server.
156 </para>
158 <para>
159 Remember, for browsing across subnets to work correctly, all machines,
160 be they Windows 95, Windows NT, or Samba servers must have the IP address
161 of a WINS server given to them by a DHCP server, or by manual configuration
162 (for Win95 and WinNT, this is in the TCP/IP Properties, under Network
163 settings) for Samba this is in the &smb.conf; file.
164 </para>
166 <sect2>
167 <title>How does cross subnet browsing work ?</title>
169 <para>
170 Cross subnet browsing is a complicated dance, containing multiple
171 moving parts. It has taken Microsoft several years to get the code
172 that achieves this correct, and Samba lags behind in some areas.
173 Samba is capable of cross subnet browsing when configured correctly.
174 </para>
176 <para>
177 Consider a network set up as follows :
178 </para>
180 <para>
181 <programlisting>
182 (DMB)
183 N1_A N1_B N1_C N1_D N1_E
184 | | | | |
185 -------------------------------------------------------
186 | subnet 1 |
187 +---+ +---+
188 |R1 | Router 1 Router 2 |R2 |
189 +---+ +---+
191 | subnet 2 subnet 3 |
192 -------------------------- ------------------------------------
193 | | | | | | | |
194 N2_A N2_B N2_C N2_D N3_A N3_B N3_C N3_D
195 (WINS)
196 </programlisting>
197 </para>
199 <para>
200 Consisting of 3 subnets (1, 2, 3) connected by two routers
201 (R1, R2) - these do not pass broadcasts. Subnet 1 has 5 machines
202 on it, subnet 2 has 4 machines, subnet 3 has 4 machines. Assume
203 for the moment that all these machines are configured to be in the
204 same workgroup (for simplicities sake). Machine N1_C on subnet 1
205 is configured as Domain Master Browser (ie. it will collate the
206 browse lists for the workgroup). Machine N2_D is configured as
207 WINS server and all the other machines are configured to register
208 their NetBIOS names with it.
209 </para>
211 <para>
212 As all these machines are booted up, elections for master browsers
213 will take place on each of the three subnets. Assume that machine
214 N1_C wins on subnet 1, N2_B wins on subnet 2, and N3_D wins on
215 subnet 3 - these machines are known as local master browsers for
216 their particular subnet. N1_C has an advantage in winning as the
217 local master browser on subnet 1 as it is set up as Domain Master
218 Browser.
219 </para>
221 <para>
222 On each of the three networks, machines that are configured to
223 offer sharing services will broadcast that they are offering
224 these services. The local master browser on each subnet will
225 receive these broadcasts and keep a record of the fact that
226 the machine is offering a service. This list of records is
227 the basis of the browse list. For this case, assume that
228 all the machines are configured to offer services so all machines
229 will be on the browse list.
230 </para>
232 <para>
233 For each network, the local master browser on that network is
234 considered 'authoritative' for all the names it receives via
235 local broadcast. This is because a machine seen by the local
236 master browser via a local broadcast must be on the same
237 network as the local master browser and thus is a 'trusted'
238 and 'verifiable' resource. Machines on other networks that
239 the local master browsers learn about when collating their
240 browse lists have not been directly seen - these records are
241 called 'non-authoritative'.
242 </para>
244 <para>
245 At this point the browse lists look as follows (these are
246 the machines you would see in your network neighborhood if
247 you looked in it on a particular network right now).
248 </para>
250 <para>
251 <programlisting>
252 Subnet Browse Master List
253 ------ ------------- ----
254 Subnet1 N1_C N1_A, N1_B, N1_C, N1_D, N1_E
256 Subnet2 N2_B N2_A, N2_B, N2_C, N2_D
258 Subnet3 N3_D N3_A, N3_B, N3_C, N3_D
259 </programlisting>
260 </para>
262 <para>
263 Note that at this point all the subnets are separate, no
264 machine is seen across any of the subnets.
265 </para>
267 <para>
268 Now examine subnet 2. As soon as N2_B has become the local
269 master browser it looks for a Domain master browser to synchronize
270 its browse list with. It does this by querying the WINS server
271 (N2_D) for the IP address associated with the NetBIOS name
272 WORKGROUP&gt;1B&lt;. This name was registerd by the Domain master
273 browser (N1_C) with the WINS server as soon as it was booted.
274 </para>
276 <para>
277 Once N2_B knows the address of the Domain master browser it
278 tells it that is the local master browser for subnet 2 by
279 sending a MasterAnnouncement packet as a UDP port 138 packet.
280 It then synchronizes with it by doing a NetServerEnum2 call. This
281 tells the Domain Master Browser to send it all the server
282 names it knows about. Once the domain master browser receives
283 the MasterAnnouncement packet it schedules a synchronization
284 request to the sender of that packet. After both synchronizations
285 are done the browse lists look like :
286 </para>
288 <para>
289 <programlisting>
290 Subnet Browse Master List
291 ------ ------------- ----
292 Subnet1 N1_C N1_A, N1_B, N1_C, N1_D, N1_E,
293 N2_A(*), N2_B(*), N2_C(*), N2_D(*)
295 Subnet2 N2_B N2_A, N2_B, N2_C, N2_D
296 N1_A(*), N1_B(*), N1_C(*), N1_D(*), N1_E(*)
298 Subnet3 N3_D N3_A, N3_B, N3_C, N3_D
300 Servers with a (*) after them are non-authoritative names.
301 </programlisting>
302 </para>
304 <para>
305 At this point users looking in their network neighborhood on
306 subnets 1 or 2 will see all the servers on both, users on
307 subnet 3 will still only see the servers on their own subnet.
308 </para>
310 <para>
311 The same sequence of events that occured for N2_B now occurs
312 for the local master browser on subnet 3 (N3_D). When it
313 synchronizes browse lists with the domain master browser (N1_A)
314 it gets both the server entries on subnet 1, and those on
315 subnet 2. After N3_D has synchronized with N1_C and vica-versa
316 the browse lists look like.
317 </para>
319 <para>
320 <programlisting>
321 Subnet Browse Master List
322 ------ ------------- ----
323 Subnet1 N1_C N1_A, N1_B, N1_C, N1_D, N1_E,
324 N2_A(*), N2_B(*), N2_C(*), N2_D(*),
325 N3_A(*), N3_B(*), N3_C(*), N3_D(*)
327 Subnet2 N2_B N2_A, N2_B, N2_C, N2_D
328 N1_A(*), N1_B(*), N1_C(*), N1_D(*), N1_E(*)
330 Subnet3 N3_D N3_A, N3_B, N3_C, N3_D
331 N1_A(*), N1_B(*), N1_C(*), N1_D(*), N1_E(*),
332 N2_A(*), N2_B(*), N2_C(*), N2_D(*)
334 Servers with a (*) after them are non-authoritative names.
335 </programlisting>
336 </para>
338 <para>
339 At this point users looking in their network neighborhood on
340 subnets 1 or 3 will see all the servers on all sunbets, users on
341 subnet 2 will still only see the servers on subnets 1 and 2, but not 3.
342 </para>
344 <para>
345 Finally, the local master browser for subnet 2 (N2_B) will sync again
346 with the domain master browser (N1_C) and will recieve the missing
347 server entries. Finally - and as a steady state (if no machines
348 are removed or shut off) the browse lists will look like :
349 </para>
351 <para>
352 <programlisting>
353 Subnet Browse Master List
354 ------ ------------- ----
355 Subnet1 N1_C N1_A, N1_B, N1_C, N1_D, N1_E,
356 N2_A(*), N2_B(*), N2_C(*), N2_D(*),
357 N3_A(*), N3_B(*), N3_C(*), N3_D(*)
359 Subnet2 N2_B N2_A, N2_B, N2_C, N2_D
360 N1_A(*), N1_B(*), N1_C(*), N1_D(*), N1_E(*)
361 N3_A(*), N3_B(*), N3_C(*), N3_D(*)
363 Subnet3 N3_D N3_A, N3_B, N3_C, N3_D
364 N1_A(*), N1_B(*), N1_C(*), N1_D(*), N1_E(*),
365 N2_A(*), N2_B(*), N2_C(*), N2_D(*)
367 Servers with a (*) after them are non-authoritative names.
368 </programlisting>
369 </para>
371 <para>
372 Synchronizations between the domain master browser and local
373 master browsers will continue to occur, but this should be a
374 steady state situation.
375 </para>
377 <para>
378 If either router R1 or R2 fails the following will occur:
379 </para>
381 <orderedlist>
382 <listitem>
383 <para>
384 Names of computers on each side of the inaccessible network fragments
385 will be maintained for as long as 36 minutes, in the network neighbourhood
386 lists.
387 </para>
388 </listitem>
390 <listitem>
391 <para>
392 Attempts to connect to these inaccessible computers will fail, but the
393 names will not be removed from the network neighbourhood lists.
394 </para>
395 </listitem>
397 <listitem>
398 <para>
399 If one of the fragments is cut off from the WINS server, it will only
400 be able to access servers on its local subnet, by using subnet-isolated
401 broadcast NetBIOS name resolution. The effects are similar to that of
402 losing access to a DNS server.
403 </para>
404 </listitem>
405 </orderedlist>
406 </sect2>
407 </sect1>
409 <sect1>
410 <title>Setting up a WINS server</title>
412 <para>
413 Either a Samba machine or a Windows NT Server machine may be set up
414 as a WINS server. To set a Samba machine to be a WINS server you must
415 add the following option to the &smb.conf; file on the selected machine :
416 in the [globals] section add the line
417 </para>
419 <para>
420 <command> wins support = yes</command>
421 </para>
423 <para>
424 Versions of Samba prior to 1.9.17 had this parameter default to
425 yes. If you have any older versions of Samba on your network it is
426 strongly suggested you upgrade to a recent version, or at the very
427 least set the parameter to 'no' on all these machines.
428 </para>
430 <para>
431 Machines with <command>wins support = yes</command> will keep a list of
432 all NetBIOS names registered with them, acting as a DNS for NetBIOS names.
433 </para>
435 <para>
436 You should set up only ONE wins server. Do NOT set the
437 <command>wins support = yes</command> option on more than one Samba
438 server.
439 </para>
441 <para>
442 To set up a Windows NT Server as a WINS server you need to set up
443 the WINS service - see your NT documentation for details. Note that
444 Windows NT WINS Servers can replicate to each other, allowing more
445 than one to be set up in a complex subnet environment. As Microsoft
446 refuse to document these replication protocols Samba cannot currently
447 participate in these replications. It is possible in the future that
448 a Samba->Samba WINS replication protocol may be defined, in which
449 case more than one Samba machine could be set up as a WINS server
450 but currently only one Samba server should have the
451 <command>wins support = yes</command> parameter set.
452 </para>
454 <para>
455 After the WINS server has been configured you must ensure that all
456 machines participating on the network are configured with the address
457 of this WINS server. If your WINS server is a Samba machine, fill in
458 the Samba machine IP address in the "Primary WINS Server" field of
459 the "Control Panel->Network->Protocols->TCP->WINS Server" dialogs
460 in Windows 95 or Windows NT. To tell a Samba server the IP address
461 of the WINS server add the following line to the [global] section of
462 all &smb.conf; files :
463 </para>
465 <para>
466 <command>wins server = &gt;name or IP address&lt;</command>
467 </para>
469 <para>
470 where &gt;name or IP address&lt; is either the DNS name of the WINS server
471 machine or its IP address.
472 </para>
474 <para>
475 Note that this line MUST NOT BE SET in the &smb.conf; file of the Samba
476 server acting as the WINS server itself. If you set both the
477 <command>wins support = yes</command> option and the
478 <command>wins server = &lt;name&gt;</command> option then
479 nmbd will fail to start.
480 </para>
482 <para>
483 There are two possible scenarios for setting up cross subnet browsing.
484 The first details setting up cross subnet browsing on a network containing
485 Windows 95, Samba and Windows NT machines that are not configured as
486 part of a Windows NT Domain. The second details setting up cross subnet
487 browsing on networks that contain NT Domains.
488 </para>
490 </sect1>
492 <sect1>
493 <title>Setting up Browsing in a WORKGROUP</title>
495 <para>
496 To set up cross subnet browsing on a network containing machines
497 in up to be in a WORKGROUP, not an NT Domain you need to set up one
498 Samba server to be the Domain Master Browser (note that this is *NOT*
499 the same as a Primary Domain Controller, although in an NT Domain the
500 same machine plays both roles). The role of a Domain master browser is
501 to collate the browse lists from local master browsers on all the
502 subnets that have a machine participating in the workgroup. Without
503 one machine configured as a domain master browser each subnet would
504 be an isolated workgroup, unable to see any machines on any other
505 subnet. It is the presense of a domain master browser that makes
506 cross subnet browsing possible for a workgroup.
507 </para>
509 <para>
510 In an WORKGROUP environment the domain master browser must be a
511 Samba server, and there must only be one domain master browser per
512 workgroup name. To set up a Samba server as a domain master browser,
513 set the following option in the [global] section of the &smb.conf; file :
514 </para>
516 <para>
517 <command>domain master = yes</command>
518 </para>
520 <para>
521 The domain master browser should also preferrably be the local master
522 browser for its own subnet. In order to achieve this set the following
523 options in the [global] section of the &smb.conf; file :
524 </para>
526 <para>
527 <programlisting>
528 domain master = yes
529 local master = yes
530 preferred master = yes
531 os level = 65
532 </programlisting>
533 </para>
535 <para>
536 The domain master browser may be the same machine as the WINS
537 server, if you require.
538 </para>
540 <para>
541 Next, you should ensure that each of the subnets contains a
542 machine that can act as a local master browser for the
543 workgroup. Any MS Windows NT/2K/XP/2003 machine should be
544 able to do this, as will Windows 9x machines (although these
545 tend to get rebooted more often, so it's not such a good idea
546 to use these). To make a Samba server a local master browser
547 set the following options in the [global] section of the
548 &smb.conf; file :
549 </para>
551 <para>
552 <programlisting>
553 domain master = no
554 local master = yes
555 preferred master = yes
556 os level = 65
557 </programlisting>
558 </para>
560 <para>
561 Do not do this for more than one Samba server on each subnet,
562 or they will war with each other over which is to be the local
563 master browser.
564 </para>
566 <para>
567 The <command>local master</command> parameter allows Samba to act as a
568 local master browser. The <command>preferred master</command> causes nmbd
569 to force a browser election on startup and the <command>os level</command>
570 parameter sets Samba high enough so that it should win any browser elections.
571 </para>
573 <para>
574 If you have an NT machine on the subnet that you wish to
575 be the local master browser then you can disable Samba from
576 becoming a local master browser by setting the following
577 options in the <command>[global]</command> section of the
578 &smb.conf; file :
579 </para>
581 <para>
582 <programlisting>
583 domain master = no
584 local master = no
585 preferred master = no
586 os level = 0
587 </programlisting>
588 </para>
590 </sect1>
592 <sect1>
593 <title>Setting up Browsing in a DOMAIN</title>
595 <para>
596 If you are adding Samba servers to a Windows NT Domain then
597 you must not set up a Samba server as a domain master browser.
598 By default, a Windows NT Primary Domain Controller for a Domain
599 name is also the Domain master browser for that name, and many
600 things will break if a Samba server registers the Domain master
601 browser NetBIOS name (<replaceable>DOMAIN</replaceable>&lt;1B&gt;)
602 with WINS instead of the PDC.
603 </para>
605 <para>
606 For subnets other than the one containing the Windows NT PDC
607 you may set up Samba servers as local master browsers as
608 described. To make a Samba server a local master browser set
609 the following options in the <command>[global]</command> section
610 of the &smb.conf; file :
611 </para>
613 <para>
614 <programlisting>
615 domain master = no
616 local master = yes
617 preferred master = yes
618 os level = 65
619 </programlisting>
620 </para>
622 <para>
623 If you wish to have a Samba server fight the election with machines
624 on the same subnet you may set the <command>os level</command> parameter
625 to lower levels. By doing this you can tune the order of machines that
626 will become local master browsers if they are running. For
627 more details on this see the section <link linkend="browse-force-master">
628 Forcing samba to be the master browser</link>
629 below.
630 </para>
632 <para>
633 If you have Windows NT machines that are members of the domain
634 on all subnets, and you are sure they will always be running then
635 you can disable Samba from taking part in browser elections and
636 ever becoming a local master browser by setting following options
637 in the <command>[global]</command> section of the &smb.conf;
638 file :
639 </para>
641 <para>
642 <command>
643 domain master = no
644 local master = no
645 preferred master = no
646 os level = 0
647 </command>
648 </para>
650 </sect1>
652 <sect1 id="browse-force-master">
653 <title>Forcing samba to be the master</title>
655 <para>
656 Who becomes the <command>master browser</command> is determined by an election
657 process using broadcasts. Each election packet contains a number of parameters
658 which determine what precedence (bias) a host should have in the
659 election. By default Samba uses a very low precedence and thus loses
660 elections to just about anyone else.
661 </para>
663 <para>
664 If you want Samba to win elections then just set the <command>os level</command> global
665 option in &smb.conf; to a higher number. It defaults to 0. Using 34
666 would make it win all elections over every other system (except other
667 samba systems!)
668 </para>
670 <para>
671 A <command>os level</command> of 2 would make it beat WfWg and Win95, but not MS Windows
672 NT/2K Server. A MS Windows NT/2K Server domain controller uses level 32.
673 </para>
675 <para>The maximum os level is 255</para>
677 <para>
678 If you want samba to force an election on startup, then set the
679 <command>preferred master</command> global option in &smb.conf; to "yes". Samba will
680 then have a slight advantage over other potential master browsers
681 that are not preferred master browsers. Use this parameter with
682 care, as if you have two hosts (whether they are windows 95 or NT or
683 samba) on the same local subnet both set with <command>preferred master</command> to
684 "yes", then periodically and continually they will force an election
685 in order to become the local master browser.
686 </para>
688 <para>
689 If you want samba to be a <command>domain master browser</command>, then it is
690 recommended that you also set <command>preferred master</command> to "yes", because
691 samba will not become a domain master browser for the whole of your
692 LAN or WAN if it is not also a local master browser on its own
693 broadcast isolated subnet.
694 </para>
696 <para>
697 It is possible to configure two samba servers to attempt to become
698 the domain master browser for a domain. The first server that comes
699 up will be the domain master browser. All other samba servers will
700 attempt to become the domain master browser every 5 minutes. They
701 will find that another samba server is already the domain master
702 browser and will fail. This provides automatic redundancy, should
703 the current domain master browser fail.
704 </para>
706 </sect1>
708 <sect1>
709 <title>Making samba the domain master</title>
711 <para>
712 The domain master is responsible for collating the browse lists of
713 multiple subnets so that browsing can occur between subnets. You can
714 make samba act as the domain master by setting <command>domain master = yes</command>
715 in &smb.conf;. By default it will not be a domain master.
716 </para>
718 <para>
719 Note that you should NOT set Samba to be the domain master for a
720 workgroup that has the same name as an NT Domain.
721 </para>
723 <para>
724 When samba is the domain master and the master browser it will listen
725 for master announcements (made roughly every twelve minutes) from local
726 master browsers on other subnets and then contact them to synchronise
727 browse lists.
728 </para>
730 <para>
731 If you want samba to be the domain master then I suggest you also set
732 the <command>os level</command> high enough to make sure it wins elections, and set
733 <command>preferred master</command> to "yes", to get samba to force an election on
734 startup.
735 </para>
737 <para>
738 Note that all your servers (including samba) and clients should be
739 using a WINS server to resolve NetBIOS names. If your clients are only
740 using broadcasting to resolve NetBIOS names, then two things will occur:
741 </para>
743 <orderedlist>
744 <listitem>
745 <para>
746 your local master browsers will be unable to find a domain master
747 browser, as it will only be looking on the local subnet.
748 </para>
749 </listitem>
751 <listitem>
752 <para>
753 if a client happens to get hold of a domain-wide browse list, and
754 a user attempts to access a host in that list, it will be unable to
755 resolve the NetBIOS name of that host.
756 </para>
757 </listitem>
758 </orderedlist>
760 <para>
761 If, however, both samba and your clients are using a WINS server, then:
762 </para>
764 <orderedlist>
765 <listitem>
766 <para>
767 your local master browsers will contact the WINS server and, as long as
768 samba has registered that it is a domain master browser with the WINS
769 server, your local master browser will receive samba's ip address
770 as its domain master browser.
771 </para>
772 </listitem>
774 <listitem>
775 <para>
776 when a client receives a domain-wide browse list, and a user attempts
777 to access a host in that list, it will contact the WINS server to
778 resolve the NetBIOS name of that host. as long as that host has
779 registered its NetBIOS name with the same WINS server, the user will
780 be able to see that host.
781 </para>
782 </listitem>
783 </orderedlist>
785 </sect1>
787 <sect1>
788 <title>Note about broadcast addresses</title>
790 <para>
791 If your network uses a "0" based broadcast address (for example if it
792 ends in a 0) then you will strike problems. Windows for Workgroups
793 does not seem to support a 0's broadcast and you will probably find
794 that browsing and name lookups won't work.
795 </para>
796 </sect1>
798 <sect1>
799 <title>Multiple interfaces</title>
801 <para>
802 Samba now supports machines with multiple network interfaces. If you
803 have multiple interfaces then you will need to use the <command>interfaces</command>
804 option in &smb.conf; to configure them.
805 </para>
806 </sect1>
807 </chapter>