Link to home
Start Free TrialLog in
Avatar of Los Angeles1
Los Angeles1

asked on

RHEL, how do I change IP address

I am running on RHEL 6.4

I do not have a GUI

How do I change my IP address

Thanks
Avatar of Chris Staunton
Chris Staunton
Flag of United States of America image

modify the /etc/sysconfig/network-scripts/ifcfg-eth?  generally ifcfg-eth0 file.
Avatar of Patrick Bogers
You have to change the IP address entry in /etc/sysconfig/network-scripts/ifcfg-eth0
save and run: service network restart
Another way is with DHCP reservations. What is acting as your DHCP server?
ASKER CERTIFIED SOLUTION
Avatar of xterm
xterm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of madunix
madunix

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 ...
Avatar of Los Angeles1

ASKER

'setup' works great