LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   change IP and hostname in red hat ES 5 (https://www.linuxquestions.org/questions/linux-server-73/change-ip-and-hostname-in-red-hat-es-5-a-892707/)

chuikingman 07-20-2011 06:50 AM

change IP and hostname in red hat ES 5
 
how I can change IP and hostname in red hat linux es 5 command mode , not in desktop GUI???
please advice in detailed

dafydd2277 07-20-2011 12:38 PM

As root, the "hostname" command will accept the new hostname as an argument. To change the IP address, use "ifconfig" with switches for the IP address and the appropriate interface.

To make the changes permanent, you'll have to modify/verify the change in /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-<interface>.

Cheers!


All times are GMT -5. The time now is 06:24 AM.