LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2003, 01:39 AM   #1
plexi100
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Rep: Reputation: 0
/etc/hosts file


I am running RedHat 7.3. I have a local intranet. My Linux box is configured to get it's ip from the Home Gateway which is also a DHCP server. I have been attempting confire the gateway with DMZ as to access the webserver from the internet (via ip address),without a host name. In the midts of trying, I experimented by, bypassing the Gateway and going straight into my Road Runner Cable modem. I restarted my net services on my Linux box and received an address of 65.x.x.x. I then decided to switch back to connecting the Gateway to share the internet connection with a w2k box. Upon connecting to the Gateway I restarted my net services and a funny thing happened, I STILL RECEIVE THE 64.X.X.X address instead of a 192.x.x.x address. I reconfigured the Gateway from the DMZ setting, back to the DHCP server only. Also, while getting the ip of 65.x.x.x I was also getting a broacast message of 192.168.x.x. I also had no internet access. I have tried all I know to try...

I have now shut everything down, then went directly from the Linux box to the RR cable modem. I then powered up the cable modem, and then powered up the Linux box. I still have the ip address of 65.x.x.x, which I believe could be correct only upon IFCONFIG, I have DNS servers with ip's of 24.x.x.x, which is typical for Road Runner...

Any ideas/help as to why the SAME IP no matter how connected, are greatly appreciated...

the best thing about Linux I have found so far is the fact that Linux gives me the power to totally configure my PC. So I am willing to bet I just need to reconfigure a file, I am just not sure which one.

On boot, what file does eth0 get its information????

thanks for listening...

LINUX ROCKS...
 
Old 10-15-2003, 01:44 AM   #2
rahulsundaram
Member
 
Registered: May 2003
Location: India
Distribution: Knoppix, RedHat
Posts: 246

Rep: Reputation: 30
hi

/etc/sysconfig/network

/etc/sysconfig/network-scripts/ifcfg-eth0

use netconfig

or redhat-config-network to reconfigure

regards
rahul sundaram
 
Old 10-16-2003, 01:39 AM   #3
plexi100
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
thanks for all the help...
 
Old 10-16-2003, 01:52 AM   #4
rakriege
Member
 
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198

Rep: Reputation: 30
or..down load Webmin @ http://www.webmin.com

easy to use 1 shoot GUI admin
 
Old 10-16-2003, 06:03 PM   #5
plexi100
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks I will try it out...however what is "1shoot"...

I have verified the files and the system is set to receive DHCP. It acts as though it has a static IP of 65.27.254.31. I only work on the system late at night, and I have changed something, but cannot find it...I will keep on trouble shooting through the weekend. Since it is a test system I can always reload the nic, or even the whole system. It is a important test system, as I will be bringing a webserver online at work, with the same OS, and almost the same hardware. Although it will have a "rea" hostname and static IP, so this specific won't be an issue. However as with any trouble, I have the chance to learn and grow.

thanks again,
 
  


Reply


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
hosts file? milesstandish Red Hat 2 11-02-2004 11:57 PM
PB with /etc/hosts file(s) ptreves Linux - Networking 0 09-10-2004 07:39 PM
does the /etc/hosts file work same as the M$ hosts file? Lleb_KCir Linux - Software 6 04-03-2004 05:33 PM
/etc/hosts File Crashed_Again Linux - Newbie 7 02-01-2003 01:04 AM
Hosts.allow file skopje909 Linux - Security 3 11-16-2001 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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