Solved

Samba nmbd problems

Posted on 2000-03-15
12
250 Views
Last Modified: 2013-12-06
My samba server will only respond to 'localhost' and not its dns name.  I have run many diagnostic tests and I believe that the broadcast is incorrect.  It is broadcasting to x.y.255.255 and I believe that it should be broadcasting to x.y.z.255.  nmbd is also giving me broadcast errors in the logs.  My ethernet setting are configured through DHCP.  How can I change the broadcast address or change this???
0
Comment
Question by:mh149
12 Comments
 

Expert Comment

by:owld
ID: 2623296
Please give to us output from

#ifconfig

command.
0
 

Author Comment

by:mh149
ID: 2623474
Here is the output of ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:10:5A:11:06:54  
          inet addr:128.61.99.149  Bcast:128.61.99.191  Mask:255.255.255.192
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35073 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1468 errors:0 dropped:0 overruns:0 carrier:3
          collisions:18 txqueuelen:100
          Interrupt:10 Base address:0xe800

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:50 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0


Here is the output of samba client:
[root@ks21 /root]# smbclient -L ks21
Added interface ip=128.61.99.0 bcast=128.61.255.255 nmask=255.255.0.0
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2623483
If nmdb is broadcasting on x.x.255.255, it's because it thinks the system is on Class B network. This can come about from a misconfigured network interface, or from nmbd starting before DHCP has fully set up the system (or a bogus DHCP server).

In general you'd prefer for any sort of server (sendmail, nfs, samba, etc) to have a static IP assignment. It is possible to use DHCP, but the IP should be a reserved IP (i.e., that server gets the same IP every time because the DHCP server has been programed to give the system's MAC address that IP). Even with this you have to be very careful to keep any server functions from starting before the DHCP process completes.
0
 

Author Comment

by:mh149
ID: 2623494
So how fo I change the broadcast address, or get nmbd to work?  I am a little locked into using DHCP to work but I could try and get around it if necessary.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2623496
Almost forgot. Check the broadcast address by looking at the output of "ifconfig -a". If it looks okay there, stop the Samba services and then restart them. If it works then, you'll have to arrainge to make sure that Samba only starts after the DHCP set up is complete. If it still isn't broadcasting properly, then you've got a different problem.
0
 

Author Comment

by:mh149
ID: 2623508
Sorry for my inxexperience, but could you walk me through changing the boot order of those guys?  Thanks
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 40

Expert Comment

by:jlevie
ID: 2624225
Before futzing with the init script order at boot you need to see if Samba will work with the DHCP config the system gets. Have you tried to stop & restart Samba with the system fully up?

Waiting for words...
0
 

Expert Comment

by:y2ktux
ID: 2624261
If you are using Red Hat 6.1 the Samba that comes with that ditribution is full of bugs.  Make sure you download the latest stable samba, in rpm format if you are using Red Hat and you may find that things magically begin to work just fine for you.
0
 

Author Comment

by:mh149
ID: 2625121
I am actually using the lastest version - I fixed it and would give you the points but jlevie really pointed me to the answer.  Sorry.  But jlevie if you propose an answer.  I will give it to you.  Thanks everyone.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 2625143
I'm not certain which piece was the answer, but ...

Samba must only be started after the DHCP process is complete and the system IP & netmask are correctly set up.

0
 

Author Comment

by:mh149
ID: 2625208
Samba was starting before dhcpcd in a couple of the rc#.d directories.  I put its order after dhcpcd and it works great now.  Thanks
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2625233
Cool...
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now