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 08-21-2003, 02:18 PM   #1
hitbob
LQ Newbie
 
Registered: Aug 2003
Location: Birmingham, UK
Distribution: RedHat 9
Posts: 23

Rep: Reputation: 15
Need help setting up the Host & network files.


I have only been using RH9 for 2 days now but feel I am making steady progress. I have come to an abrupt halt when trying to edit the ect/host and the ect/sysconfig/network files. I have searched this forum for answers with limited success. I have ended up getting these 2 files in a right old mess. Could someone please post there working host and network files so that I can use them as an example to work from.

Thank you in advance!
 
Old 08-21-2003, 02:28 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
My RH9 hosts file is:
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
My network file is:
Code:
NETWORKING=yes
HOSTNAME=boycie
GATEWAY=10.100.10.10
 
Old 08-21-2003, 03:02 PM   #3
hitbob
LQ Newbie
 
Registered: Aug 2003
Location: Birmingham, UK
Distribution: RedHat 9
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the reply I'm trying that out now. Im not sure about the:

GATEWAY=10.100.10.10

bit though so I have left that the same. Could you tell me if I should leave mine the same, or how I can find out what to change it for?

Last edited by hitbob; 08-21-2003 at 04:38 PM.
 
Old 08-21-2003, 04:38 PM   #4
hitbob
LQ Newbie
 
Registered: Aug 2003
Location: Birmingham, UK
Distribution: RedHat 9
Posts: 23

Original Poster
Rep: Reputation: 15
I have changed the gatway to:

GATEWAY=192.168.0.1

I found this by typing in 'ipconfig/all' on the Win XP machine. Now when I log into RedHat a message comes up saying 'Could not find hostname 'jennie' try editing the /ect/hosts file' (Its my wifes (Jennies) computer). Do you know what I should type into the hosts file to sort this out? Also is the Default Gatway I found by typing in 'ipconfig/all' the correct address?
 
Old 08-22-2003, 03:45 AM   #5
sashhoney
Member
 
Registered: Jul 2003
Distribution: Red Hat, Fedora, Debian
Posts: 85

Rep: Reputation: 15
In /etc/hosts file u should mention the name of the hosts u want to comm with along with there IP address.
In /etc/sysconfig /network u should write the details about Gateway only when u need to comm with the hosts residing at some other network.
if u dont want to ust this facility u can delete this line anyway
sidd
 
  


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
gift-Gnutella & gift-openft initial host files david.skinner Linux - Software 4 02-06-2012 06:55 PM
wlan0 network & host unreachable soupy Linux - Networking 5 10-30-2005 05:56 AM
Network-wide host setting? Passive Linux - Software 4 01-15-2004 09:00 PM
Setting the Host name xailer Linux - Newbie 9 11-18-2003 08:35 PM
Red Hat Network & .rpm files noahberman Linux - Newbie 8 10-05-2003 10:29 AM

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

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