SSH and log onto the host and elevate your privileges using

su -l

Enter the password when prompted

Enter below command to open the network config file

vi /etc/sysconfig/network

Press i to enter insert mode


Change the default gateway as needed

Press ESC to exit insert mode

Enter :wq to save and quit (if you want to quit without saving changes you would use :q!)

Restart the network server by entering

service network restart

Note: You will loose connection to the service console while the network service is restarting