LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-25-2004, 10:12 PM   #1
pawlub
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Rep: Reputation: 0
Redhat 8.0 ip address change problem


I have attempted to change the eth0 ip address with the ifconfig eth0 xxx.xxx.xxx.xxx command, but the changes are not being saved.

I think there is some other GUI related file that has priority over the text command.

/pawlub

Last edited by pawlub; 01-25-2004 at 10:13 PM.
 
Old 01-25-2004, 10:57 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You can edit the files directly which should withstand a reboot.

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

DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
NETMASK=255.255.255.0
IPADDR=192.168.1.2

and the file /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=comp1.mydomain.com
FORWARD_IPV4=yes
GATEWAYDEV=
GATEWAY=192.168.1.1
 
Old 01-26-2004, 12:25 PM   #3
pawlub
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Hey Homey,

Thanks!

I edited both of those files, it saved the ip address and confirmed on boot-up.

/pawlub
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolution change problem with Redhat 9.0(Shrike) and NVIDIA alagenchev Red Hat 1 10-25-2004 07:24 PM
Problem trying to change boot loaders with RedHat 9... Sindai Linux - Newbie 1 06-01-2004 09:15 PM
Change IP address lvran Linux - Networking 2 10-16-2003 01:19 AM
cannot change ip address ??? aherrys Linux - Networking 0 07-06-2003 03:34 AM
Change address juno Linux - General 2 10-25-2002 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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