Bug 7575 - Win7 host can not be found with nmblookup when nmbd became local master browser
Win7 host can not be found with nmblookup when nmbd became local master browser
Status: NEW
Product: Samba 3.4
Classification: Unclassified
Component: Nmbd
3.4.7
x64 Linux
: P3 major
: ---
Assigned To: Jeremy Allison
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-16 04:37 UTC by webi123
Modified: 2010-07-16 05:09 UTC (History)
0 users

See Also:


Attachments
Network traffic of nmblookup host 1 becomes local master browser (410.81 KB, text/x-log)
2010-07-16 05:05 UTC, webi123
no flags Details
log.nmbd (14.44 KB, application/octet-stream)
2010-07-16 05:08 UTC, webi123
no flags Details
smb.conf (1.12 KB, application/octet-stream)
2010-07-16 05:09 UTC, webi123
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description webi123 2010-07-16 04:37:24 UTC
Hi samba team,

I discovered a problem with nmbd version 3.4.7. When I configure nmbd to become local master browser I always miss a windows 7 host ip in a call of nmblookup '*' and nmblookup -M -- -.

I am using three hosts:
 1) Ubuntu 10.4 with samba 3.4.7 installed
  i A python-samba                    - Python bindings for Samba               
i   samba                           - SMB/CIFS file, print, and login server for
i   samba-common                    - common files used by both the Samba server
i   samba-common-bin                - common files used by both the Samba server
i A samba-ldb-tools                 - LDAP-like embedded database - tools       
i   samba4                          - LanManager-like file server for Unix (vers
i   samba4-common-bin               - Samba 4 common files used by both the serv
i   system-config-samba             - GUI for managing samba shares and users
Comment 1 webi123 2010-07-16 04:54:18 UTC
Hi samba team,

I discovered a problem with nmbd version 3.4.7. When I configure nmbd to become
local master browser I always miss a windows 7 host ip in a call of nmblookup
'*' and nmblookup -M -- -.
 
I am using three hosts:
 1) Ubuntu 10.4 with samba 3.4.7 installed (192.168.3.1)
 2) A Win7 host in a virtual machine directly connected to the local network (192.168.3.30)
 3) A sh4 embedded platform running samba 3.4.5 (192.168.3.22)

When I let host 1 become local master browser by setting the follwing variables in smb.conf then I can see in the log.nmbd and in wireshark that it became master browser:

  local master = yes
  preferred master = yes
  os level = 65

But each call of nmblookup on host 3 and also host 1 yields:

$ nmblookup '*'
interpret_interface: using netmask value 8 from config file on interface lo
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth1 ip=fe80::210:18ff:fe4e:5400%eth1 bcast=fe80::ffff:ffff:ffff:ffff%eth1 netmask=ffff:ffff:ffff:ffff::
added interface eth1 ip=192.168.3.1 bcast=192.168.3.255 netmask=255.255.255.0
querying * on 127.255.255.255
Got a positive name query response from 127.0.0.1 ( 192.168.3.1 )
Got a positive name query response from 127.0.0.1 ( 127.0.0.1 )
192.168.3.1 *<00>
127.0.0.1 *<00>
$ nmblookup -M -- -
interpret_interface: using netmask value 8 from config file on interface lo
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth1 ip=fe80::210:18ff:fe4e:5400%eth1 bcast=fe80::ffff:ffff:ffff:ffff%eth1 netmask=ffff:ffff:ffff:ffff::
added interface eth1 ip=192.168.3.1 bcast=192.168.3.255 netmask=255.255.255.0
querying __MSBROWSE__ on 127.255.255.255
Got a positive name query response from 127.0.0.1 ( 192.168.3.1 )
192.168.3.1 __MSBROWSE__<01>

When I don't let host 1 become master then the Win7 host overcomes this task and yields both hosts, which provide CIFS shares:

$ nmblookup '*'
interpret_interface: using netmask value 8 from config file on interface lo
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth1 ip=fe80::210:18ff:fe4e:5400%eth1 bcast=fe80::ffff:ffff:ffff:ffff%eth1 netmask=ffff:ffff:ffff:ffff::
added interface eth1 ip=192.168.3.1 bcast=192.168.3.255 netmask=255.255.255.0
querying * on 127.255.255.255
Got a positive name query response from 127.0.0.1 ( 192.168.3.1 )
Got a positive name query response from 127.0.0.1 ( 127.0.0.1 )
192.168.3.1 *<00>
127.0.0.1 *<00>
$ nmblookup -M -- -
interpret_interface: using netmask value 8 from config file on interface lo
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth1 ip=fe80::210:18ff:fe4e:5400%eth1 bcast=fe80::ffff:ffff:ffff:ffff%eth1 netmask=ffff:ffff:ffff:ffff::
added interface eth1 ip=192.168.3.1 bcast=192.168.3.255 netmask=255.255.255.0
querying __MSBROWSE__ on 127.255.255.255
querying __MSBROWSE__ on 192.168.3.255
Got a positive name query response from 192.168.3.30 ( 192.168.3.30 )
192.168.3.30 __MSBROWSE__<01>

Are there any solutions?

Best Regards


Comment 2 webi123 2010-07-16 05:05:41 UTC
Created attachment 5846 [details]
Network traffic of nmblookup host 1 becomes local master browser
Comment 3 webi123 2010-07-16 05:08:25 UTC
Created attachment 5847 [details]
log.nmbd
Comment 4 webi123 2010-07-16 05:09:18 UTC
Created attachment 5848 [details]
smb.conf