Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.
For optimal experience, use a desktop computer.
Reference Number: AA-00785 // Views: 12932 // Created: 2011-11-17 05:00:00 // Last Updated: 2018-12-17 02:40:07
How To: Change IP address or IP mask on a RedHat target through telnet
How To: Change IP address or IP mask on a Redhat target through telnet
Please note that it is easier to change IP address and IP mask in RedHat GUI: https://www.opal-rt.com/KMP/index.php?/article/AA-00598
(Warning: wrongly changed IP or mask may leave the target not connectable through telnet)
Open a telnet session (https://www.opal-rt.com/support-knowledge-base/?article=AA-00786)
Type: " vi /etc/sysconfig/network-scripts/ifcfg-ethX "
where X is a number (eg. eth0)
Modify the IP address (IP ADDR) or IP mask (NETMASK)
(Use arrow keys to move cursor, "xx" to delete, "i" to insert, "Esc" to change mode)
After the modification,
Press " Esc "
Then type " :wq " to save the file (or " :q " to leave the file without saving)
Then restart the target
Type: " /etc/init.d/network restart "