[Samba] WINS and browse list on multiple subnet architecture

samba tmpmbox samba-list at tmpmbox.no-ip.org
Wed Jun 8 07:43:50 MDT 2011


>> Now, the idea is to make computer on each subnet must see computer on
>> the other one with the help of WINS and master roles.
>>
>> I don't make this works.
> Simply to set below and try:
>
> WINSGW
> Global section :
>      workgroup = WORKGROUP
>      wins support = yes
> #    remote browse sync = 192.168.53.253
>      local master = yes
>      domain master = yes
>      domain logons = no
>      preferred master = yes
>      os level = 65
>
>   WINSGW2
> Global section :
>      workgroup = WORKGROUP
>      wins server = 193.168.52.253
> #    remote browse sync = 192.168.52.253
> #    remote announce = 192.168.52.253/WORKGROUP
>      local master = yes
>      domain master = no
>      domain logons = no
>      preferred master = yes
>      os level = 65
>
> You do not need to set "remote browse sync" nor "remote announce".
>
> Several years ago I examined this setting against Samba 3.0.x (perlaps
> 3.0.7) and worked well, although I have not yet examined with Samba
> 3.5.6.
>
Hello,

     Thank you for your reply.

     I have made a mistake in "wins server" on WINSGW2 configuration 
file (193. in place of 192. ), so it could not reach the WINSGW server.
     Now it works with your suggested configuration.

     When I boot up both XP station the browser list is complete ( 4 
computer ) and I can access all the share.

     But I have got an other question, when I shutdown first XP ( on 
subnet 1 where is the Domain Local Master ) WINSGW know that is is 
offline and update is browse.dat file.
Here logs :
[2011/06/08 14:25:38.530063,  3] 
nmbd/nmbd_serverlistdb.c:195(expire_servers)
   expire_old_servers: Removing timed out server YTYT
[2011/06/08 14:25:38.530220,  3] 
nmbd/nmbd_serverlistdb.c:423(write_browse_list)
   write_browse_list: Wrote browse list into file 
/var/cache/samba/browse.dat

and browse.dat file :
  cat /var/cache/samba/browse.dat
"WORKGROUP"    c0001000    "WINSGW"                      "WORKGROUP"
"WINSGW"              408d9a03    "winsgw server"              "WORKGROUP"
"WINSGW2"            00859a03    "winsgw2 server"           "WORKGROUP"
"RTRT"                     00011003     
""                                     "WORKGROUP"


    After many "sync" between the two samba, WINSGW2 still get XP server 
in his browse list.
Here logs :
[2011/06/08 15:32:52.007120,  2] nmbd/nmbd_browsesync.c:151(sync_with_dmb)
   sync_with_dmb:
   Initiating sync with domain master browser WINSGW<20> at IP 
192.168.52.253 for workgroup WORKGROUP
[2011/06/08 15:32:52.007914,  2] 
nmbd/nmbd_synclists.c:184(sync_browse_lists)
   Initiating browse sync for WORKGROUP to WINSGW(192.168.52.253)
[2011/06/08 15:32:52.008646,  3] lib/util_sock.c:979(open_socket_out_send)
   Connecting to 192.168.52.253 at port 139
[2011/06/08 15:32:52.016846,  2] nmbd/nmbd_synclists.c:302(complete_sync)
   sync with WINSGW(192.168.52.253) for workgroup WORKGROUP completed (4 
records)
[2011/06/08 15:32:58.023880,  3] 
nmbd/nmbd_serverlistdb.c:423(write_browse_list)
   write_browse_list: Wrote browse list into file 
/var/cache/samba/browse.dat

and browse.dat file :
cat /var/cache/samba/browse.dat
"WORKGROUP"    c0001000     "WINSGW2"                  "WORKGROUP"
"WINSGW2"           40859a03     "winsgw2 server"           "WORKGROUP"
"RTRT"                    40011003     
""                                      "WORKGROUP"
"WINSGW"             008d9a03     "winsgw server"             "WORKGROUP"
"YTYT"                     00011001     
""                                     "WORKGROUP"


     Is this behavior is expected or the computer must be removed on the 
other samba local master browser ?
     Thank you.

Best Regard,



More information about the samba mailing list