Solaris is a Unix-like operating system that runs on servers and desktops. It has a rich set of features, but one of the lesser-known features is the ability to set the default route. This article will show you how to do this. To set the default route on Solaris, open a terminal window and type: route add default gw 10.0.0.1 This command will add a new route with the destination address of 10.0.0.1 and the gateway address of 10.0.0.1 ..


route add default

Example:

If you want the route to be persisted when you reboot the system, you will need to set the route in the /etc/defaultrouter file.

/etc/defaultrouter

Example:

Note that Solaris 10 includes “zones” that can also configure this same behavior. There will be more articles covering this in the future.