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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux IP Change 1

Status
Not open for further replies.

bcraig

IS-IT--Management
May 3, 2001
52
0
0
CA
Hello!

I have a REALLY old Linux box I am playing around with, it is running 2.0.30. I was wondering what file I change the IP address in to change the IP address of the server? I remember doing it years ago, but I'll be damned if I can remember what file to change it in.

Thanks!
 
Hmmm, good question. I am not really linux savvy. How would I figure that out?

uname -a just returns:

Linux hostname 2.0.30 #5 Sun Jul 20 02:36:32 ADT 1997 i586

 
/etc/issue.net No such file or directory
 
If I cat /etc/issue it returns:

Welcome to Linux 2.0.30.

 
do you have an /etc/sysconfig folder or /etc/network folder?

can you grep -ir for your current IP?

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Perhaps try /etc/rc.d/rc.inet1

In there you should find the current IP address. You will need to re-run the file to activate it.

Dave.
 
BINGO! dsryan is right! In that rc.inet1 file, I have:

# Edit for your setup.
IPADDR="xxx.xxx.xxx.xxx" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK="xxx.xxx.xxx.0" # REPLACE with YOUR network address!
BROADCAST="xxx.xxx.xxx.255" # REPLACE with YOUR broadcast address, if you
# have one. If not, leave blank and edit below.
GATEWAY="xxx.xxx.xxx.xxx" # REPLACE with YOUR gateway address!

I think this is what I am looking for! I will be making changes within a week or so. Thanks to everyone for the help! Muchly appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top