[Samba] Weird problem in NMBD

Joost Lubach jlubach at splendo.com
Wed Jun 5 05:34:51 GMT 2002


Hi,

I've a got kind of weird problem using nmbd. At least, I think is is weird
because this problem isn't dealt with in any documentation. I got my nmbd up
and running, when I issue the command

'nmblookup -U 10.0.0.1 __SAMBA__'

(my IP is 10.0.0.1/255.0.0.0) I get a correct response:

'querying __SAMBA__ on 10.0.0.1
10.0.0.1 __SAMBA__<00>'

But when I use a broadcast query, it doesn't work:

'nmblookup [-B 10.255.255.255] -d 10 __SAMBA':

'Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = Korvezee
doing parameter netbios name = KVZ138
handle_netbios_name: set global_myname to: KVZ138
doing parameter server string = kvz138
doing parameter hosts allow = 10.0.0. 127.
doing parameter interfaces = 10.0.0.1/255.0.0.0
doing parameter bind interfaces only = yes
doing parameter log file = /var/log/samba/%m.log
doing parameter max log size = 0
doing parameter security = user
doing parameter encrypt passwords = no
doing parameter smb passwd file = /etc/samba/private/smbpasswd
doing parameter unix password sync = No
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
doing parameter pam password change = yes
doing parameter obey pam restrictions = yes
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter dns proxy = no
pm_process() returned Yes
lp_servicenumber: couldn't find homes
added interface ip=10.0.0.1 bcast=10.255.255.255 nmask=255.0.0.0
bind succeeded on port 0
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 1
socket option SO_BROADCAST = 1
Could not test socket option TCP_NODELAY.
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 65535
socket option SO_RCVBUF = 65535
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
Socket opened.
querying __SAMBA__ on 10.255.255.255
Sending a packet of len 50 to (10.255.255.255) on port 137
Sending a packet of len 50 to (10.255.255.255) on port 137
Sending a packet of len 50 to (10.255.255.255) on port 137
name_query failed to find name __SAMBA__'

As you can see, my interface is properly set  up with netmask 255.0.0.0, I
enabled bind to interfaces only, but when I disable that, I get the same
response.

As a result of this all, I cannot connect to the SMB server using Windows,
because I can't tell windows which IP address to use, it only uses broadcast
queries...

I included the log of nmbd here, (-d 2):

'[root at kvz138 root]# cat /var/log/samba/log.nmbd
[2002/06/05 14:01:57, 0] nmbd/nmbd.c:main(783)
  Netbios nameserver version 2.2.3a started.
  Copyright Andrew Tridgell and the Samba Team 1994-2002
[2002/06/05 14:01:57, 2] nmbd/nmbd.c:main(821)
  Becoming a daemon.
[2002/06/05 14:01:57, 2] lib/interface.c:add_interface(81)
  added interface ip=10.0.0.1 bcast=10.255.255.255 nmask=255.0.0.0
[2002/06/05 14:01:57, 2] nmbd/nmbd_subnetdb.c:make_subnet(193)
  making subnet name:10.0.0.1 Broadcast address:10.255.255.255 Subnet
mask:255.0.0.0
[2002/06/05 14:01:57, 2] nmbd/nmbd_subnetdb.c:make_subnet(193)
  making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet
mask:0.0.0.0
[2002/06/05 14:01:57, 2] nmbd/nmbd_subnetdb.c:make_subnet(193)
  making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0
Subnet mask:0.0.0.0'

He's got the bcast right! What could be wrong??

Regards

Joost Lubach








More information about the samba mailing list