LinuxQuestions.org
Review your favorite Linux distribution.
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 06-30-2004, 08:04 PM   #1
timyaukey
LQ Newbie
 
Registered: Jun 2004
Posts: 10

Rep: Reputation: 0
Connect multiple computers behind a broadband router


I have several computers behind a broadband cable router, which I also use as a DHCP server. All the computers get IP addresses okay, they can all access the internet, and I can ping them all by IP address, but I cannot ping some of them by name from each other. I currently have one Linux box, soon to be more, and two Windoze machines running Windows 2K and Windows 98. I can ping the Linux box by name from Windows, but I can't ping the Windows boxes by name from Linux. How do I set up RedHat 9 to be able to resolve host names for machines whose IP addresses are supplied by the DHCP function of my cable router?
 
Old 07-01-2004, 01:47 PM   #2
ID10T_error
LQ Newbie
 
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18

Rep: Reputation: 0
Personally, I would setup static ip addresses, or even static dhcp, and do name resolution in hosts files. Your other option would be setting up a DNS server, which there are plenty of tutorials on the web for.

Good Luck,
John
 
Old 07-01-2004, 02:01 PM   #3
tom_on_linux
LQ Newbie
 
Registered: Jul 2004
Location: Cologne, DE
Distribution: RedHat | Debian
Posts: 6

Rep: Reputation: 0
probably if you don't want to have servers running on your workstation machines and don't want to setup
a dedicated machine for the job, you could write a script that scans your arp results for new machines and
append them to each machines hosts file.

arp, grep, cat and cron will do the job, though it's quite a bit of logic within the script, cause you don't want
duplicate or old entries in the hosts file nor a million of lines in the file...
 
Old 07-02-2004, 11:02 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you are using a linksys cable/dsl router, user your web browser to access the router setup.
If you bring up the DHCP clients table, do the host names show up in the table?

If you have servers running on your linux box, then you will probably want to use a fixed ip address. The linksys routers start the DHCP address at .100 and go up from there. You could select an address ending below .100 and not have to change the router's configuration.
 
Old 07-03-2004, 08:44 AM   #5
timyaukey
LQ Newbie
 
Registered: Jun 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks all. I have decided to go with static IP addresses. I always suspected that would be the solution, I just wondered if there was some way to make the name resolution software in Linux understand what addresses DHCP had assigned to each computer. Now all I have to keep an eye out for is that my ISP doesn't change their DNS server IP addresses on me, because I've hardcoded them on each computer instead of letting DHCP give them to me. If they change and my DNS lookups stop working I'll eventually figure it out...
 
  


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
multiple broadband connection hariiyer Linux - Networking 2 08-21-2005 07:16 AM
Computers behind router behind computer behind router remi Linux - Networking 1 05-05-2005 05:08 PM
Broadband Router glyndwr Linux - Hardware 12 07-14-2004 04:02 PM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM
Hooking a modem to two computers via a broadband router Travis86 Linux - Networking 5 01-18-2003 10:21 AM

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

All times are GMT -5. The time now is 10:41 AM.

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