LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-02-2004, 03:41 AM   #1
arete1969
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake (9.0)
Posts: 7

Rep: Reputation: 0
2 mandrake linux boxes see everything but each other


I finally got samba working between my linux box and my folks' windows machines -- they saw each other, linux mounted windows shares on boot, everything. It was nice.

Then, I started up my other linux box and tried to set it up the same way. They both still have internet access, and windows can access shares from both. The linux boxes can't see anything by hostname. I can ping and mount by the local ip's of any machine on the network, but the only hostname each linux box can resolve is its own (most of the time they can, at least). nmblookup fails from the linux machines for everything but their own names. LinNeighborhood and Gnomba can see the workgroup and the names of the computers in it but can't browse/open anything. Neither is really what you would call a server, but is that the right direction? Why is there a problem now that I've added the second Linux machine?

Any ideas? Thanks for your time.
 
Old 05-02-2004, 04:51 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Your going to have to describe your network a bit better. Are your /etc/hosts configured correctly? Do you have listings for each machine in both? Are your IPs static? Using a router? IP Masquerade? We need more info...
 
Old 05-02-2004, 03:02 PM   #3
arete1969
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake (9.0)
Posts: 7

Original Poster
Rep: Reputation: 0
I didn't have to do any of that with just one Linux machine, so please forgive me for being so clueless.

Originally, the network had a Linksys router linking winxp, win98se, win2000, and only 1 Mandrake 9.0, all working perfectly (Samba 2.2). Adding another Linux machine to the network 'caused' the first to stop seeing any other computers on the network, though windoze can see both Linux machines and everyone has internet access. What's wrong now is that the Linux machines can't put local IP's and hostnames together. Though the problem began when I added a second machine, it doesn't go away when I shut one of them off.

In general, the IP's are all dhcp. I've also worked with both my Linux machines with static IP's (no difference), but I'd really rather avoid the hassle of setting up all the windoze comp's with static IP's as well.

I've never heard of IP Masquerade so I hope I can assume I'm not using it.

The /etc/hosts file only contains the loopback and the IP/hostname for the machine it's on. resolv.conf contains:

nameserver 127.0.0.1
nameserver 63.162.197.69
nameserver 199.2.252.10

# ppp temp entry

I don't know what the second two are about; they don't match anything I recognize or find on the router. I tried adding a line -nameserver 'routerip'- but it didn't seem to make a difference.

Both of the Linux machines are set up Exactly the same, with only names and IP's different. Is that a problem? Do they somehow conflict with each other? Neither is on all the time, and in fact both are dual boot with a version of windoze. Why did I break it by just adding another Linux box? I had somehow decided that it should be simpler than the 3 days I spent getting Linux and windoze to speak. If it works, some of the windoze machines could even be replaced with Linux -- so I'm a little desperate. ; )

Again, ping and mount work for IP's but not hostnames, and nmblookup fails. smbclient fails for hostname and with IP seems to work fine, showing all the computers by name (under the "server" column) as well as the proper shares for the 'named' computer. The last line shows the proper workgroup name and a master--what does that mean? That's why I'm worried about both the Linux machines being the 'same.'

* EDIT: I forgot to ask, why does nmblookup respond with, "querying <hostname> on x.x.x.255" when the router is at x.x.x.1 ? What is that ip? I don't know myself of anything here with the 255 ip, and all the computers have ip's less than 115. The router doesn't show the names of the win98 or Linux machines anyway. *

Anyway, sorry for being an idiot. Thanks for your time.

Last edited by arete1969; 05-02-2004 at 03:54 PM.
 
Old 05-02-2004, 03:54 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
OK, well you're going to want to add each computer on the network to each /etc/hosts so they know each other's hostnames. That's why you can only reach them by ip. Something along the lines of:
Code:
127.0.0.1             localhost
192.168.0.1          box1_hostname
192.168.0.2          box2_hostname
Add this to BOTH boxes...

As for this:

Quote:
nameserver 63.162.197.69
nameserver 199.2.252.10
These would be your ISP's nameservers I would assume, usually they are written to the file by DHCP.

If you want a good general reference to networking under linux I suggest you give the Network Administrators Guide a gander. It will help to answer a lot of your questions:
http://www.tldp.org/LDP/nag2/index.html

PS, don't apoligize, that's why you're here right?

Last edited by bulliver; 05-02-2004 at 03:59 PM.
 
Old 05-02-2004, 04:37 PM   #5
arete1969
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake (9.0)
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks! I'll look at that link more this evening.

For now, though: I edited the hosts file; it now contains the loopback and its own ip/hostname as well as one windoze computer on the network. nmblookup still fails even after rebooting, but smbclient and smb:// both work by that hostname. Why does nmblookup respond with "querying <hostname> on x.x.x.255"? What is the ip supposed to mean? Is nmblookup supposed to work now? The router is at .1 and all the computers are at less than 115. Oh, well.

With this fix, do I have to check and update the hosts file (and restart samba?) every time I start up, or is there a way around this (without setting up static ips everywhere...)? I keep thinking there should be because the first Linux machine worked properly without it.

* EDIT: by the way, ifconfig does show that x.x.x.255 address under broadcast. How do I know if that's correct, and is it something you can change? Apparently, not everything looks there for hostnames since nmblookup is the only (?) one that hasn't figured it out. *

Last edited by arete1969; 05-02-2004 at 04:51 PM.
 
Old 05-03-2004, 02:42 AM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I have to admit I don't know jack about Samba, I can only help with your networking. If you can ping each other by hostname you should be a step closer to figuring this out.

No, you cannot change the broadcast address. The number is used when your machine wants to send a packet to the entire network. It is analogous to yelling out in a crowded room..." hey where's joe?" instead of asking every single person..."hey, are you joe?" I think (but am not certain) that this is what your box is doing when it says: "querying <hostname> on x.x.x.255". The number is determined by setting the device section of your ip address to '255', so if your ip is 192.168.0.2 your broadcast address is 192.168.0.255

The guide can explain this a lot better than me though....
 
  


Reply



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
mandrake 10 server on a lan with windows boxes MR_UNO Linux - Networking 7 11-15-2004 06:12 PM
How can i get free access between to mandrake boxes in a lan? Klas Linux - Security 6 04-20-2004 01:20 AM
2 Mandrake Boxes, 0 network printer robertoneto123 Linux - Hardware 0 02-10-2004 04:38 AM
Need to network my WinXP boxes with Mandrake Lester Linux - Newbie 6 01-27-2004 08:28 PM
win2000 boxes cannot map but winnt boxes can - same user! starbeetlechick Linux - Networking 0 07-24-2003 07:24 AM

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

All times are GMT -5. The time now is 11:37 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