Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ifconfig forgets its settings upon reboot

Status
Not open for further replies.

iggystar

IS-IT--Management
Jul 12, 2001
126
US
Ok I'm obviously doing something stupid but I can't think what it is and I've never had this problem before.

I have a RH 7.3 box that I run
ifconfig eth0 172.16.6.120 netmask 255.255.255.0 up

and it works. I have that IP, I can setup routes and surf the web, ping boxes, ftp, etc.

Then the box gets rebooted and the machine uses DHCP and gets it's own address.

I want to kill DHCP, I want to enter the IP I want, and I'd like to do it all commandline with standard linux commands and not using the gui or anything Redhat bundles. Using the GUI or Red Hat setup tools is why I don't already know this answer, so I want to do this the linux way and not the redhat way.

So any idea why it forgets what I enter in ifconfig?

Also, can anybody give me a list of files that might be useful in setting up TCP/IP. I've got hosts and resolv but anything else I can poke around in.

I tried googling this and got tons of hits, as you can imagine, but nothing that helped. Thanks in advance for any help.
 
In RedHat, these changes should be made in [tt]/etc/sysconfig/network-scripts/ifcfg-<interface>[/tt] or [tt]/etc/sysconfig/networking/profiles/<profile>/ifcfg-<interface>[/tt]

//Daniel
 
Fantastic thanks. That's pretty obvious actually, once you know it's there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top