Change IP on Red Hat Server

Is there a simple way to modify an IP address on Linux Red Hat Server?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file (replace eth0 with the name of your iterface) and change the IPADDR line.  You may also have to change the netmask.  If the gateway needs to be changed it can be in this file or in /etc/sysconfig/network.

for example:

exhuserAuthor Commented:
Is there a GUI interface to do this?

And this can be done in the text editor, correct?
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
Run the following command:


This will run from the server console as well as from a SSH session also.
Hey MSSPs! What's your total cost of ownership?

WEBINAR: Managed security service providers often deploy & manage products from a variety of solution vendors. But is this really the best approach when it comes to saving time AND money? Join us on Aug. 15th to learn how you can improve your total cost of ownership today!

Shiju JacobInfo SecurityCommented:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Typically servers don't have the GUI interface enabled (in my world anyway).  If you have gnome (which is a GUI) you can use gedit, which is the default text editor, to edit the file.  You will have to open it with elevated permissions either by opening as root or using sudo.

Yes is can be done via a text editor as stated above (if you have GUI).  It can also be done, and typically is done, with vi editor.

vi editor is a little scary for first time users, but in my experience I couldn't live without it.
the easiest way I found ,and I am lazy is ......

"sudo yum install network-manager "


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.