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

Edit the files in /etc/sysconfig/. The files are pretty self explanatory, and a detailed description can easily be found by a 5 minute research.

This should help you: RHEL5 - Network-Related Configuration