[Pkg-samba-maint] wins: no nmblookup on 192.168.1.255 but 192.168.1.2

Rieker Flaik rieker_flaik at arcor.de
Sun Oct 14 09:06:10 UTC 2012


Hi,

 here is a client computer and a server computer (Debian Wheezy, armel,
samba Version 3.6.6, IP address: 192.168.1.2, Name: xyz).

Problem: wins doesn't answer nmblookups by the client on the broadcast
address:

client$ nmblookup -S xyz
querying xyz on 192.168.1.255
name_query failed to find name xyz

Why is that so? How to fix this?
When I specify the the server IP I do get an answer:

client$ nmblookup -U 192.168.1.2 -S xyz
querying xyz on 192.168.1.2
192.168.1.2 xyz<00>
Looking up status of 192.168.1.2
        XYZ             <00> -         H <ACTIVE> 
        XYZ             <03> -         H <ACTIVE> 
        XYZ             <20> -         H <ACTIVE> 
        ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE> 
        TEST            <1d> -         H <ACTIVE> 
        TEST            <1e> - <GROUP> H <ACTIVE> 
        TEST            <00> - <GROUP> H <ACTIVE> 

        MAC Address = 00-00-00-00-00-00

I also get an answer if I do nmblookup on the server:

xyz# nmblookup -S XYZ
added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0
querying XYZ on 192.168.1.255
Got a positive name query response from 192.168.1.2 ( 192.168.1.2 )
192.168.1.2 XYZ<00>
Looking up status of 192.168.1.2
        XYZ             <00> -         H <ACTIVE> 
        XYZ             <03> -         H <ACTIVE> 
        XYZ             <20> -         H <ACTIVE> 
        ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE> 
        TEST            <1d> -         H <ACTIVE> 
        TEST            <1e> - <GROUP> H <ACTIVE> 
        TEST            <00> - <GROUP> H <ACTIVE> 

        MAC Address = 00-00-00-00-00-00


Below is netstat, smb.conf, log.nmbd, log.smbd.

Please let me know if you need more information or want me to test
something.

 Thanks for you help,
  Rik


xyz# netstat -nap | grep [sn]mbd

tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      18632/smbd      
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      18632/smbd      
udp        0      0 192.168.1.255:137       0.0.0.0:*                           18628/nmbd      
udp        0      0 192.168.1.2:137         0.0.0.0:*                           18628/nmbd      
udp        0      0 0.0.0.0:137             0.0.0.0:*                           18628/nmbd      
udp        0      0 192.168.1.255:138       0.0.0.0:*                           18628/nmbd      
udp        0      0 192.168.1.2:138         0.0.0.0:*                           18628/nmbd      
udp        0      0 0.0.0.0:138             0.0.0.0:*                           18628/nmbd      
unix  2      [ ACC ]     STREAM     LISTENING     34021    18628/nmbd          /var/run/samba/unexpected
unix  2      [ ]         DGRAM                    34033    18632/smbd


xyz# cat /etc/smb.conf
[global]
	workgroup = TEST
	netbios name = XYZ
	wins support = yes
	log file = /var/log/samba/log.%m
	log level = 2
	max log size = 1000

[upload]
        guest ok = yes
	guest account = blafoo
	browseable = yes
	writeable = yes
	path = /home/test/uploads
	comment = test upload
	guest only = yes
	public = yes
	available = yes
        force group = blafoo
        force user = blafoo


xyz# cat /var/log/samba/log.nmbd

[2012/10/14 10:18:14,  0] nmbd/nmbd.c:861(main)
  nmbd version 3.6.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/10/14 10:18:14,  2] lib/tallocmsg.c:124(register_msg_pool_usage)
  Registered MSG_REQ_POOL_USAGE
[2012/10/14 10:18:14,  2] lib/dmallocmsg.c:78(register_dmalloc_msgs)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2012/10/14 10:18:14,  2] param/loadparm.c:4985(max_open_files)
  rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
[2012/10/14 10:18:14,  2] nmbd/nmbd.c:894(main)
  Becoming a daemon.
[2012/10/14 10:18:14,  0] nmbd/asyncdns.c:157(start_async_dns)
  started asyncdns process 18630
[2012/10/14 10:18:14,  2] lib/interface.c:341(add_interface)
  added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0
[2012/10/14 10:18:14,  2] nmbd/nmbd_subnetdb.c:180(make_subnet)
  making subnet name:192.168.1.2 Broadcast address:192.168.1.255 Subnet mask:255.255.255.0
[2012/10/14 10:18:14,  2] nmbd/nmbd_subnetdb.c:180(make_subnet)
  making subnet name:UNICAST_SUBNET Broadcast address:192.168.1.2 Subnet mask:192.168.1.2
[2012/10/14 10:18:14,  2] nmbd/nmbd_subnetdb.c:180(make_subnet)
  making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2012/10/14 10:18:14,  2] nmbd/nmbd_subnetdb.c:180(make_subnet)
  making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2012/10/14 10:18:14,  2] nmbd/nmbd_lmhosts.c:43(load_lmhosts_file)
  load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory
[2012/10/14 10:18:18,  2] nmbd/nmbd_elections.c:109(check_for_master_browser_fail)
  check_for_master_browser_fail: Forcing election on workgroup TEST subnet 192.168.1.2
[2012/10/14 10:18:20,  2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout)
  wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/10/14 10:18:20,  2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout)
  wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/10/14 10:18:20,  2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout)
  wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/10/14 10:18:20,  2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout)
  wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/10/14 10:18:20,  2] nmbd/nmbd_nameregister.c:193(wins_registration_timeout)
  wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/10/14 10:18:21,  2] nmbd/nmbd_elections.c:42(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2
[2012/10/14 10:18:23,  2] nmbd/nmbd_elections.c:42(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2
[2012/10/14 10:18:25,  2] nmbd/nmbd_elections.c:42(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2
[2012/10/14 10:18:27,  2] nmbd/nmbd_elections.c:42(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2
[2012/10/14 10:18:29,  2] nmbd/nmbd_elections.c:42(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup TEST on subnet 192.168.1.2
[2012/10/14 10:18:29,  2] nmbd/nmbd_elections.c:202(run_elections)
  run_elections: >>> Won election for workgroup TEST on subnet 192.168.1.2 <<<
[2012/10/14 10:18:29,  2] nmbd/nmbd_become_lmb.c:538(become_local_master_browser)
  become_local_master_browser: Starting to become a master browser for workgroup TEST on subnet 192.168.1.2
[2012/10/14 10:18:37,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****
  
  Samba name server XYZ is now a local master browser for workgroup TEST on subnet 192.168.1.2
  
  *****
[2012/10/14 10:18:37,  1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request)
  process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found.
[2012/10/14 10:18:43,  1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request)
  process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found.
[2012/10/14 10:18:48,  1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request)
  process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found.
[2012/10/14 10:18:53,  1] nmbd/nmbd_incomingrequests.c:328(process_node_status_request)
  process_node_status_request: status request for name TEST<1b> from IP 192.168.1.2 on subnet UNICAST_SUBNET - name not found.
[2012/10/14 10:18:58,  0] nmbd/nmbd_browsesync.c:248(domain_master_node_status_fail)
  domain_master_node_status_fail:
  Doing a node status request to the domain master browser
  for workgroup TEST at IP 192.168.1.2 failed.
  Cannot sync browser lists.


xyz# cat /var/log/samba/log.smbd

[2012/10/14 10:18:14,  0] smbd/server.c:1053(main)
  smbd version 3.6.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/10/14 10:18:14,  2] lib/tallocmsg.c:124(register_msg_pool_usage)
  Registered MSG_REQ_POOL_USAGE
[2012/10/14 10:18:14,  2] lib/dmallocmsg.c:78(register_dmalloc_msgs)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2012/10/14 10:18:14.449815,  2] param/loadparm.c:4985(max_open_files)
  rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
[2012/10/14 10:18:14.450693,  2] param/loadparm.c:8327(do_section)
  Processing section "[upload]"
[2012/10/14 10:18:14.451193,  0] param/loadparm.c:8004(lp_do_parameter)
  Global parameter guest account found in service section!
[2012/10/14 10:18:14.453328,  2] lib/interface.c:341(add_interface)
  added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0
[2012/10/14 10:18:14.539871,  0] lib/util_sock.c:605(open_socket_in)
  open_socket_in(): socket() call failed: Address family not supported by protocol
[2012/10/14 10:18:14.540602,  0] smbd/server.c:578(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address family not supported by protocol
[2012/10/14 10:18:14.547062,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/10/14 10:18:14.554146,  0] lib/util_sock.c:605(open_socket_in)
  open_socket_in(): socket() call failed: Address family not supported by protocol
[2012/10/14 10:18:14.554583,  0] smbd/server.c:578(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address family not supported by protocol
[2012/10/14 10:18:14.556108,  2] smbd/server.c:842(smbd_parent_loop)
  waiting for connections
[2012/10/14 10:18:14.556392,  2] smbd/server.c:301(remove_child_pid)
  Could not find child 18635 -- ignoring
[2012/10/14 10:18:14.556739,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2012/10/14 10:19:14.633185,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/10/14 10:19:14.634388,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2012/10/14 10:19:14.636090,  2] smbd/server.c:301(remove_child_pid)
  Could not find child 18644 -- ignoring





More information about the Pkg-samba-maint mailing list