[Samba] netbios uses incorrect broadcast value and termintaes

Yatish Jain ytsh.jain at gmail.com
Wed Aug 18 11:58:01 MDT 2010

Hi All,

I am using samba Version 3.5.4 on AIX 6.1.
The installation is through pware binary ( pware53.samba.rte

There seems to be a strange issue with NetBios where it terminates with the
following error logged just after starting.
The diagnosis fails in step 4 of Samba Diagnosis test ("nmblookup -B
BIGSERVER __SAMBA_") because no netbios (nmbd) is running.

snippet from nmbd logs:

[2010/08/18 08:42:17,  0] nmbd/nmbd.c:857(main)
  nmbd version 3.5.4 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/08/18 08:42:17.538633,  2]
[2010/08/18 08:42:17.538669,  2] lib/dmallocmsg.c:77(register_dmalloc_msgs)
rlimit_max: rlimit_max (2048) below minimum Windows limit (16384)
[2010/08/18 08:42:17.539962,  2] nmbd/nmbd.c:890(main)
  Becoming a daemon.
[2010/08/18 08:42:17.567091,  2] lib/interface.c:340(add_interface)
  added interface en0 ip= bcast=** netmask=
[2010/08/18 08:42:17.567158,  2] lib/interface.c:340(add_interface)
  added interface lo0 ip= bcast= netmask=
[2010/08/18 08:42:17.567208,  2] nmbd/nmbd_subnetdb.c:299(create_subnets)
  create_subnets: Ignoring loopback interface.
[2010/08/18 08:42:17.567289,  0] lib/util_sock.c:875(open_socket_in)
  bind failed on port 137 socket_addr =
  Error = Can't assign requested address
[2010/08/18 08:42:17.567524,  0] nmbd/nmbd_subnetdb.c:118(make_subnet)
    Failed to open nmb bcast socket on interface for port
137.  Error was Can't assign requested address
[2010/08/18 08:42:17.567682,  0] nmbd/nmbd.c:963(main)
  ERROR: Failed when creating subnet lists. Exiting.

The address is nowhere present on my system. Here is the
output of ifconfig -a:

bash-3.00# ifconfig -a
        inet netmask 0xfffffc00 broadcast
         tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
        inet netmask 0xff000000 broadcast
        inet6 ::1/0
         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1

And here is my smb.conf file:

bash-3.00# testparm
Load smb config files from /opt/pware/lib/smb.conf
rlimit_max: rlimit_max (2000) below minimum Windows limit (16384)
Loaded services file OK.
Press enter to see a dump of your service definitions

        server string = SAMBA
        allow trusted domains = No
        map to guest = Bad User
        passdb backend = smbpasswd
        log level = 2 passdb:3 auth:3 winbind:3
        log file = /var/log/samba/log.%m
        load printers = No
        printcap name = /dev/null
        disable spoolss = Yes
        local master = No
        domain master = No
        ldap idmap suffix = ou=cifsidmap
        idmap backend = idmap_rid:WORKGROUP=10000-20000
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = Yes
        kernel change notify = No
        dos filemode = Yes
        netbios name = test_nmb

Please help in nailing down the issue.


More information about the samba mailing list