Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-29-2004, 10:57 AM
|
#1
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Rep:
|
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
|
|
|
11-29-2004, 11:18 AM
|
#2
|
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:
|
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?
|
|
|
11-29-2004, 11:27 AM
|
#3
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
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
|
|
|
11-29-2004, 12:52 PM
|
#4
|
Member
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154
Original Poster
Rep:
|
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.
|
|
|
11-29-2004, 01:02 PM
|
#5
|
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:
|
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 01:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|