Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 347
  • Last Modified:

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
0
Los Angeles1
Asked:
Los Angeles1
1 Solution
 
Chris StauntonCommented:
modify the /etc/sysconfig/network-scripts/ifcfg-eth?  generally ifcfg-eth0 file.
0
 
Patrick BogersDatacenter platform engineer LindowsCommented:
You have to change the IP address entry in /etc/sysconfig/network-scripts/ifcfg-eth0
save and run: service network restart
0
 
Darr247Commented:
Another way is with DHCP reservations. What is acting as your DHCP server?
0
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

 
xtermCommented:
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
 
Fadi SODAH (aka madunix)Chief Information Security Officer, CISA, CISSP, CFR, ICATE, MCSE, CCNA, CCNP, CCIP, SCSC and SCECommented:
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
 
Los Angeles1Author Commented:
'setup' works great
0
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now