How to Change The Default Route or Gateway on Solaris

Share this Article :

In this post, i will show you on how to change the default gateway of the Solaris server. The configuration will take effect immediately without rebooting and also will apply after the next reboot. This is the most preferable plan since it will avoid any network interruption.

Steps :
1. Edit /etc/defaultrouter
-This configuration will apply after next reboot.

[[email protected] ~]# vi /etc/defaultrouter

Proceed to change the ip to your preferred/new ip address of your gateway and save.

2. Run the following command to delete and add the default route.
-This will apply the configuration with immediate effect. Assume that the existing gateway will be change to

[[email protected] ~]# route delete default
[[email protected] ~]# route add default

No Responses

Leave a Reply