?
Solved

Samba nmbd problems

Posted on 2000-03-15
12
Medium Priority
?
288 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
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.

 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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
Course of the Month10 days, 10 hours left to enroll

764 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