Change default gateway solaris

To change the default gateway in solaris you will need to make a modification to a config file in /etc. The specific file is /etc/defaultrouter. If this file does not exist you will need to create it. Within this file you will place enter the IP address of the gateway.

vi /etc/defaultrouter

Enter the IP of the gateway. Then restart the network

svcadm restart network/physical

Then you will be able to view the default gateway via the routing tables. You can do this using the netstat command


netstat -nrv

Be the first to comment

Leave a Reply