LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-01-2001, 09:03 PM   #1
matt
Member
 
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Rep: Reputation: 15
Exclamation 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?
 
Old 09-02-2001, 08:31 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 09-02-2001, 12:24 PM   #3
matt
Member
 
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Original Poster
Rep: Reputation: 15
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.

????
 
Old 09-02-2001, 12:38 PM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 09-02-2001, 12:53 PM   #5
matt
Member
 
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Original Poster
Rep: Reputation: 15
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.
 
Old 09-02-2001, 12:58 PM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 09-02-2001, 01:42 PM   #7
matt
Member
 
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Original Poster
Rep: Reputation: 15
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.
 
Old 09-02-2001, 02:03 PM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Is there anythings unusual in either you smb or nmb logs?

cheers

Jamie...
 
Old 09-02-2001, 02:38 PM   #9
matt
Member
 
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Original Poster
Rep: Reputation: 15
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.
 
Old 09-03-2001, 12:03 PM   #10
matt
Member
 
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Original Poster
Rep: Reputation: 15
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.
 
Old 09-04-2001, 08:43 PM   #11
matt
Member
 
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dueling Kernels---How to maintain two versions Woodsman Slackware 10 11-29-2005 05:06 PM
Help me O linux Masters!!! man26 Linux - General 0 07-30-2004 01:37 AM
Wine and Masters of Magic zmaint Linux - Software 5 05-23-2004 05:25 PM
gnuplot masters, i need your help Claus Linux - Software 2 11-27-2003 11:07 PM
Dueling Network Cards CTriscuit Linux - Networking 4 08-22-2003 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration