Fedora Linux Support Community & Resources Center
  #1  
Old 26th October 2005, 02:51 PM
f-rod Offline
Registered User
 
Join Date: Oct 2005
Posts: 15
Configuring a network

I am new to Linux/UNIX and am starting out by installing the FC4 on a couple of machines and see if I can make them talk to each other.

I have a very simple setup, two machines connected to a hub. I plan to add two more as soon as I resolve my immediate problem, which is this:

If I set static ip addresses I can ping by ip, but I can't get them to ping by host name. I would also like to set them up to automatically obtain an ip.

Help?
Reply With Quote
  #2  
Old 26th October 2005, 03:24 PM
brandor's Avatar
brandor Offline
Registered User
 
Join Date: May 2005
Posts: 534
To ping by name, you'll need one of 2 things... An entry in a DNS server that resides on your LAN (not so easy, but not hard) or entries for each machine in the /etc/hosts file on each machine (easy).

To automatically obtain an IP, you'll need a DHCP server running on your lan.

You can find info for both by searching the forums here.
Reply With Quote
  #3  
Old 26th October 2005, 03:52 PM
f-rod Offline
Registered User
 
Join Date: Oct 2005
Posts: 15
I will do the search, but I have 2 more questions if you don't mind.

Does this mean that the two machines already connected have to be configured, one as a dns server and the other as a dhcp server?

Once this is accomplished, will I be able to ping each other by name, or will I need to add a client to test this out?
Reply With Quote
  #4  
Old 26th October 2005, 05:46 PM
f-rod Offline
Registered User
 
Join Date: Oct 2005
Posts: 15
Not much luck with the search.

Are there any newbie books on the subject?
Reply With Quote
  #5  
Old 26th October 2005, 06:13 PM
brandor's Avatar
brandor Offline
Registered User
 
Join Date: May 2005
Posts: 534
You don't necessarily have to have a DNS, in fact, I would recommend just editing the /etc/hosts file... issue a "man hosts" at a command line to see how to edit the file. You'll have to do this on all machines on your lan.

Give the computer running the DHCP server a static IP, something like 192.168.0.1. The rest of the computers on the lan will be assigned an IP by this box.
Reply With Quote
  #6  
Old 27th October 2005, 01:00 PM
f-rod Offline
Registered User
 
Join Date: Oct 2005
Posts: 15
The purpose of the exercise is to learn the DNS/DHCP/NIS stuff. If I do it the static IP way, then the purpose is defeated.
I really need a "for dummies" approach to this.

I found a site where there were "how to" docs. The NIS doc was very simple and easy to follow, the NDS one was not. I'll try reading it again and see if I can make better sense of it.

BTW, here is the link: http://www.linuxhomenetworking.com

Thanks for your help.
Reply With Quote
  #7  
Old 27th October 2005, 04:59 PM
capnlinux Offline
Registered User
 
Join Date: Jun 2005
Posts: 109
It's a chicken/egg thing. If the box that you set up to assign new IP addresses doesn't have a static address itself, it will not know how to assign new machines addresses. One of them has to be first (your DHCP server) and that one needs to be static.
Reply With Quote
  #8  
Old 27th October 2005, 05:08 PM
capnlinux Offline
Registered User
 
Join Date: Jun 2005
Posts: 109
DNS actually is fairly complex. But the environment you describe with a single subnet is not overly complicated. A lot of what you read about DNS pertaining to multiple subnets and domains will not apply to your case. What you described is a single domain and single subnet.

One problem you will run into is trying to combine dynamic addressing and DNS. They don't really go together. Standard DNS servers want to have static addressing.
Reply With Quote
Reply

Tags
configuring, network

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network install - Fedora 10 - "Error configuring network device" mwhidby Installation and Live Media 2 20th February 2009 09:39 AM
Configuring Network Settings Lars_Trek Servers & Networking 6 9th December 2005 10:45 PM
Really need help configuring my network diamond Servers & Networking 0 9th October 2005 10:24 PM
Configuring Wireless Network with FC3.0 pugazh78 Servers & Networking 1 22nd August 2005 10:51 PM
Problems with configuring network mirelamarta Installation and Live Media 2 12th November 2004 10:08 PM


Current GMT-time: 19:01 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat