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.
|
|
06-30-2004, 09:04 PM
|
#1
|
LQ Newbie
Registered: Jun 2004
Posts: 10
Rep:
|
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?
|
|
|
07-01-2004, 02:47 PM
|
#2
|
LQ Newbie
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18
Rep:
|
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
|
|
|
07-01-2004, 03:01 PM
|
#3
|
LQ Newbie
Registered: Jul 2004
Location: Cologne, DE
Distribution: RedHat | Debian
Posts: 6
Rep:
|
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...
|
|
|
07-03-2004, 12:02 AM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
07-03-2004, 09:44 AM
|
#5
|
LQ Newbie
Registered: Jun 2004
Posts: 10
Original Poster
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 12:49 AM.
|
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
|
|