Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-30-2004, 09:04 PM   #1
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, 02:47 PM   #2
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,
Old 07-01-2004, 03:01 PM   #3
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-03-2004, 12:02 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658
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, 09:44 AM   #5
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...


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

All times are GMT -5. The time now is 09:40 AM.

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