Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
09-01-2001, 09:03 PM
|
#1
|
Member
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62
Rep:
|
Dueling Browse Masters?
Folks,
Got a Linux Box with Samba (2.0.7) and a Windoze 98 box. Both are in the same workgroup, and no domain is set up.
Linux can see Windoze shares, but Windoze does't seem to know that Linux exists. Here's the meat.
Using the 'smbclient -L' command, both boxes come up as being in the same workgroup, and both relay that they are the master browser. However, 'nmblookup -M -' produces that Linux thinks that Windoze is the master browser.
BUT, if I disable the browse master on Windows, then the Network is not accessible at all (from Windoze).
I've tried all sorts of smb.conf variations: WINS support, no wins support, preferred master, local master, os level, and I've stripped everything away but the basics (workgroup=workgroup), and still no luck. I have an encrypted password file and the option set to 'yes.' I can ping back and forth till the cows come home. I've enabled the WINS server on Widows and pointed it to the Linux IP. No luck with or without it.
It seems that Windoze can't resolve the Linux IP to a name, even though I have it in the lmhosts.sam and host.sam files (am I doing the sam files wrong?). On the linux box I can ping Windoze by machine name, but Windoze can only ping Linux with the IP.
Help?
|
|
|
09-02-2001, 08:31 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Sounds to me like you need to put some info in c:\windows\hosts!! hosts.sam and lmhosts.sam are SAMple files - remove the .sam bit! I think that if you sort that one out the rest will fall into place... Have you enable clear text passwords on Windows yet? If not then that'll be your next mission - there is a .reg file available with your Samba documentation that you'll want to look at.
HTH
Jamie...
|
|
|
09-02-2001, 12:24 PM
|
#3
|
Member
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62
Original Poster
Rep:
|
Thanks for the reply Jamie!
Just a couple questions:
Should the lmhosts and host files have any extention? Right now they have a .txt extention, and still no juice.
BUT...
What do you think of this?
On the Linux box, when I run the command:
# nmblookup -SR Linux
I get...
querying Linux on 192.168.1.255
name query failed to find name Linux
But...
The same command will find, query, and display results on the Windows box in the other room.
????
|
|
|
09-02-2001, 12:38 PM
|
#4
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
You files should have no extension - remove the .txt bit and all should be good.
Quote:
Originally posted by matt
On the Linux box, when I run the command:
# nmblookup -SR Linux
I get...
querying Linux on 192.168.1.255
name query failed to find name Linux
But...
|
Uhm... 192.168.1.255 isn't a valid IP address for a machine!! That's the broadcast address for the 192.168.1.0 network... That might also cause you problems... You should only use IP ranging from 192.168.1.1 and 192.168.1.245 on your LAN, (.255 being the broadcase and .0 being the subnet address).
HTH
Jamie...
|
|
|
09-02-2001, 12:53 PM
|
#5
|
Member
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62
Original Poster
Rep:
|
Howdy again! Just checked out you webpage - I dig the webcam on your street!
Anyways - I think we're getting somewhere now. This might help.
My Linux IP is 192.168.1.1
And Windows is 192.168.1.2
sub: 255.255.255.0
When I do "# nmblookup -SR Windows" I get:
querying windows on 192.168.1.255
192.168.1.2 windows <00>
looking up status of 198.168.1.2
received 6 names
(name tables here)
num_good_sends=0
num_good_received=0
But no good on Linux.
Thanks for the quick reply! I've really been bangin' the head against the wall here!
)M.
Last edited by matt; 09-02-2001 at 01:02 PM.
|
|
|
09-02-2001, 12:58 PM
|
#6
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Quote:
Originally posted by matt
Howdy again! Just checked out you webpage - I dig the webcam on your street!
|
I may get around to turning it on again some day soon and pointing it somewhere more interesting...
As for nmblookup, here is what I get
Code:
root@mnemosyne:~# nmblookup -S mnemosyne
querying mnemosyne on 192.168.1.255
192.168.1.2 mnemosyne<00>
Looking up status of 192.168.1.2
received 7 names
MNEMOSYNE <00> - B <ACTIVE>
MNEMOSYNE <03> - B <ACTIVE>
MNEMOSYNE <20> - B <ACTIVE>
..__MSBROWSE__. <01> - <GROUP> B <ACTIVE>
WORKGROUP <00> - <GROUP> B <ACTIVE>
WORKGROUP <1d> - B <ACTIVE>
WORKGROUP <1e> - <GROUP> B <ACTIVE>
num_good_sends=0 num_good_receives=0
which suggest that infact it does do a brodcast (hence 192.168.1.255) to get a name lookup... So I'm not sure what to suggest... Do you still get the same problem even with the hosts files setup correctly??
cheers
Jamie...
|
|
|
09-02-2001, 01:42 PM
|
#7
|
Member
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62
Original Poster
Rep:
|
Closer yet...
Thanks to proper hosts and lmhosts files on the Windows side, I can now ping Linux from Windows by name (whereas before I had to enter the IP#). But still no luck seeing Linux in Network Neighborhood.
I still get the "name_query failed" message on Linux with the "nmblookup Linux" command. Is the Linux box somehow unable to resolve it's own name and IP address? I'm having a hard time troubleshooting this one.
)M.
ps. On the Linux box I can "smbclient" to shares on Windows and the same Linux box. Odd?
Last edited by matt; 09-02-2001 at 01:49 PM.
|
|
|
09-02-2001, 02:03 PM
|
#8
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Is there anythings unusual in either you smb or nmb logs?
cheers
Jamie...
|
|
|
09-02-2001, 02:38 PM
|
#9
|
Member
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62
Original Poster
Rep:
|
Thanks for keeping up with this!
The only entry today in either of the log files is in the samba-log.smb file:
smbd/files.c:file_init(215)
file_init:Information only:requested 10000 open files, 1014 are available.
This seems to be popping up quite a bit in past entries too, though I don't know what it means. I've been messing around so much with the smb.conf file, I don't know how much relevance previous entries have.
Once upon a time (week or more ago) I was seeing Linux in the Network Neighborhood, but wasn't able to acceess it. Around the time that was happening, I was getting rejected user entries in the log file. But now I don't even see Linux from Windows.
There are also entries for being unable to find Domain Master Browser and browse list for the Workgroup from the other week.
Ug!
)M.
|
|
|
09-03-2001, 12:03 PM
|
#10
|
Member
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62
Original Poster
Rep:
|
Here's the latest:
Talked to a buddy of mine who does a lot of Linux Admin for a living, and he said I was basically missing a bunch of packages. So, I just rebuilt the box as a Server (did Workstation install before), and we'll try this again!
)M.
|
|
|
09-04-2001, 08:43 PM
|
#11
|
Member
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62
Original Poster
Rep:
|
Finally!
Rebuilt my box as a Red Hat server, swallowed my pride and cranked up SWAT, and after a few clicks, BLAMO! it worked. Go figure.
-- The Adventure Ends (for now) --
)M.
|
|
|
All times are GMT -5. The time now is 07:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|