Solved

RHEL, how do I change IP address

Posted on 2013-11-26
6
321 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
ID: 39678711
modify the /etc/sysconfig/network-scripts/ifcfg-eth?  generally ifcfg-eth0 file.
0
 
LVL 19

Expert Comment

by:Patricksr1972
ID: 39678712
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
ID: 39678735
Another way is with DHCP reservations. What is acting as your DHCP server?
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 19

Accepted Solution

by:
xterm earned 500 total points
ID: 39678851
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
ID: 39680063
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
ID: 39695668
'setup' works great
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to clone solaris 10 machine 33 114
linux installs 6 49
Reset Root Password on CentOS 6 4 44
How to Remove files with a Date in the Filename with Linux Scripting 3 28
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

920 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

12 Experts available now in Live!

Get 1:1 Help Now