VMware Sphere Changing the Default Gateway from the Shell

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

vm_change_dg_1.png

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

vm_change_dg_2.png

1 thought on “VMware Sphere Changing the Default Gateway from the Shell”

Leave a Reply to Phil Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.