Solved

Samba nmbd problems

Posted on 2000-03-15
12
264 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
High Bandwidth Usage 6 75
winscp where are logs stored 3 51
awk to variable in bash 2 69
LogmeIn using Linux Ubuntu 16.04 6 59
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

809 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