LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-29-2004, 10:57 AM   #1
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Rep: Reputation: 30
Question cant start nmbd service


hello again,
i'm trying to get samba working on my mdk 9.1 system w/dialup access. My current problem is that the nmbd daemon is not starting.here is output from log.nmbd file:

[2004/11/29 11:43:23, 0] nmbd/nmbd.c:main(794)
Netbios nameserver version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2004/11/29 11:43:23, 1] lib/debug.c:debug_message(258)
INFO: Debug class all level = 2 (pid 3150 from pid 3150)
[2004/11/29 11:43:23, 2] nmbd/nmbd.c:main(832)
Becoming a daemon.
[2004/11/29 11:43:23, 0] nmbd/nmbd_subnetdb.c:create_subnets(239)
create_subnets: No local interfaces !
[2004/11/29 11:43:23, 0] nmbd/nmbd.c:main(872)
ERROR: Failed when creating subnet lists. Exiting.

I thought it might have something to do w/the subnet mask so i checked ifconfig:
[root@localhost ********]# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:510 errors:0 dropped:0 overruns:0 frame:0
TX packets:510 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:40421 (39.4 Kb) TX bytes:40421 (39.4 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:216.194.1.196 P-t-P:216.194.31.252 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1175 errors:0 dropped:0 overruns:0 frame:0
TX packets:1113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1049711 (1.0 Mb) TX bytes:160491 (156.7 Kb)

seeing that 255.255.255.255 subnet looked strange so i changed it to a standard class c subnet mask. then the nmbd server started no problem. the only problem was my ppp connection which uses dhcp doesnt work when i change the subnet. i can log on and see my shares w/smbclient -l \\localhost but i know i wont be able to see my windows pc because i dont see any service on port 137. does anyone have any ideas on how i can get nmb service working in conjunction w/dialup service?

alan

p.s.- here is my smb.conf file:

[global]
workgroup = carrier
netbios name = samba
encrypt passwords = yes
log level = 2

[homes]
guest ok = yes
read only = no

[share11]
path = /home/*******/Downloads
guest ok = yes
read only = no
 
Old 11-29-2004, 11:18 AM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
put

Code:
interfaces = <LAN SUBNET HERE>
in your smb.conf file. I'm assuming you don't really want your SMB network available to the internet?
 
Old 11-29-2004, 11:27 AM   #3
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
yes actually i do want to share over the 'net. it is unfortuantely only way i can get to computer w/printer.
in smb.conf i would put interface= 255.255.255.255? that is what my isp is setting the subnet mask to.
alan
 
Old 11-29-2004, 12:52 PM   #4
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
i tried both interfaces = ppp0 & interfaces = 255.255.255.255 both still wouldnt strt nmbd. testparm ran ok but log file shows first w/ppp0 then subnet mask:

[2004/11/29 13:43:37, 0] nmbd/nmbd.c:main(794)
Netbios nameserver version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2004/11/29 13:43:37, 1] lib/debug.c:debug_message(258)
INFO: Debug class all level = 2 (pid 3435 from pid 3435)
[2004/11/29 13:43:37, 2] nmbd/nmbd.c:main(832)
Becoming a daemon.
[2004/11/29 13:43:38, 2] lib/interface.c:interpret_interface(130)
can't determine netmask for 255.255.255.255
[2004/11/29 13:43:38, 0] lib/interface.c:load_interfaces(216)
WARNING: no network interfaces found
[2004/11/29 13:43:38, 0] nmbd/nmbd_subnetdb.c:create_subnets(239)
create_subnets: No local interfaces !
[2004/11/29 13:43:38, 0] nmbd/nmbd.c:main(872)
ERROR: Failed when creating subnet lists. Exiting.
[2004/11/29 13:47:11, 0] nmbd/nmbd.c:main(794)
Netbios nameserver version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2004/11/29 13:47:11, 1] lib/debug.c:debug_message(258)
INFO: Debug class all level = 2 (pid 3500 from pid 3500)
[2004/11/29 13:47:11, 2] nmbd/nmbd.c:main(832)
Becoming a daemon.
[2004/11/29 13:47:11, 0] lib/interface.c:load_interfaces(216)
WARNING: no network interfaces found
[2004/11/29 13:47:11, 0] nmbd/nmbd_subnetdb.c:create_subnets(239)
create_subnets: No local interfaces !
[2004/11/29 13:47:11, 0] nmbd/nmbd.c:main(872)
ERROR: Failed when creating subnet lists. Exiting.
 
Old 11-29-2004, 01:02 PM   #5
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
255.255.255.255 is the subnet mask. You want to put the IPv4 address in there, not the netmask, though I don't think this is going to help you. When I pointed to that parameter, I was hoping that you had a LAN you wanted to run samba on and the ppp interface was causing you trouble.

I can't really help with running samba on the public internet. That's usually what I work to prevent.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
nmbd won't start automatically octino Linux - Newbie 8 02-01-2005 12:31 PM
nmbd won't start fostiator Linux - Networking 2 10-05-2004 07:21 AM
Samba nmbd doesn't start Obscure *BSD 2 10-01-2003 09:32 AM
nmbd wont start pyropenguin Linux - Networking 2 11-14-2002 03:37 PM


All times are GMT -5. The time now is 09:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration