[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Samba nmbd problems

Posted on 2000-03-15
12
Medium Priority
?
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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 400 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:
Suggested Courses

650 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