[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 3.5.4.0).
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]
lib/tallocmsg.c:106(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2010/08/18 08:42:17.538669, 2] lib/dmallocmsg.c:77(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
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=10.209.86.7 bcast=*10.209.87.239* netmask=
[2010/08/18 08:42:17.567158, 2] lib/interface.c:340(add_interface)
added interface lo0 ip=127.0.0.1 bcast=127.255.255.255 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 = 10.209.87.239.
Error = Can't assign requested address
[2010/08/18 08:42:17.567524, 0] nmbd/nmbd_subnetdb.c:118(make_subnet)
nmbd_subnetdb:make_subnet()
Failed to open nmb bcast socket on interface 10.209.87.239 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 10.209.87.239 is nowhere present on my system. Here is the
output of ifconfig -a:
bash-3.00# ifconfig -a
en0:
flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 10.209.86.7 netmask 0xfffffc00 broadcast 10.209.87.255
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0:
flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT>
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
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.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
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.
Regards,
Yatish
More information about the samba
mailing list