Solved

RHEL, how do I change IP address

Posted on 2013-11-26
6
320 Views
Last Modified: 2013-12-04
I am running on RHEL 6.4

I do not have a GUI

How do I change my IP address

Thanks
0
Comment
Question by:Los Angeles1
6 Comments
 
LVL 12

Expert Comment

by:Chris Staunton
Comment Utility
modify the /etc/sysconfig/network-scripts/ifcfg-eth?  generally ifcfg-eth0 file.
0
 
LVL 19

Expert Comment

by:Patricksr1972
Comment Utility
You have to change the IP address entry in /etc/sysconfig/network-scripts/ifcfg-eth0
save and run: service network restart
0
 
LVL 44

Expert Comment

by:Darr247
Comment Utility
Another way is with DHCP reservations. What is acting as your DHCP server?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 19

Accepted Solution

by:
xterm earned 500 total points
Comment Utility
You would also need to change it in /etc/hosts, and /etc/sysconfig/network would need a hostname change if that too is changing (in addition to /etc/sysconfig/network-scripts/ifcfg-eth0)

However, if you're not comfortable using Unix text editors, just run the command "setup", and highlight the entry for "Network Configuration", and tab down to "Run Tool", and then go into "Device Configuration".

Once you "Save & Exit", the changes should take place right away but if not, run "service network restart"
0
 
LVL 25

Expert Comment

by:madunix
Comment Utility
you can set #ifconfig eth0 192.168.1.1 netmask 255.255.255.0, but it will not permanent, for that you have to change the configuration file
/etc/sysconfig/network-scripts/ifcfg-eth0
You have to make changes in above file, according to the device ifcfg-eth0 , ifcfg-eth1 ...
0
 

Author Closing Comment

by:Los Angeles1
Comment Utility
'setup' works great
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now