LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   cant start nmbd service (https://www.linuxquestions.org/questions/linux-networking-3/cant-start-nmbd-service-260530/)

eroica 11-29-2004 10:57 AM

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

sigsegv 11-29-2004 11:18 AM

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?

eroica 11-29-2004 11:27 AM

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

eroica 11-29-2004 12:52 PM

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.

sigsegv 11-29-2004 01:02 PM

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.


All times are GMT -5. The time now is 04:29 AM.