Linux - NetworkingThis 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.
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.
I wrote a program which uses findsmb to get a list of Samba aware resources. It worked fine. It was able to see both my own cluster of virtuals and other company computers too. My company moved to a different location. The network was flakey for awhile, but has seemed okay for months now. I am not sure that moving is the cause of the problem I am about to describe, but it is the only obvious change. Now findsmb only discovers the machine I am running in. I am doing this in a number of VMWare virtuals, and have tried this in several. In every case, findsmb only finds localhost. I should repeat that this was working fine in the past. I did enough research to discover that findsmb relies on nmblookup. So I tried "nmblookup -A <ip address>" for several of the IPs around and it always comes back with "no reply." I have no idea what's wrong. Does anyone have any ideas?
Last edited by Brandon9000; 09-19-2012 at 11:47 AM.
I got a little more information. The log /var/log/messages contains:
Sep 19 13:49:58 linux nmbd[4891]: [2012/09/19 13:49:58, 0] nmbd/nmbd_packets.c:1072(process_browse_packet)
Sep 19 13:49:58 linux nmbd[4891]: process_browse_packet: Discarding datagram from IP xxx.xxx.xxx.xxx. Source name LINUX<00> is one of our names !
where I have used x for the IP. Does anyone know what this means or how to fix it?
No, that wasn't it. I defined different NetBIOS names for the computers in smb.conf and it made that error message go away, but I still get "no reply." Nmblookup can only see the local machine. Any ideas?
Okay, I think I have an answer more or less. One of the virtuals I had up to be "seen" from my dev virtual was on a different subnet. The other, just has some problem with Samba. I brought up two additional virtuals and findsmb run from my dev virtual can see both of them. There was no global problem, just problems with the two virtuals I had up to be detected. It is interesting that I can no longer see the few Samba aware resources of other people in my company, but I'll just chalk that up to increased security at our new location.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.