How-To Geek

Set the Default Route on Solaris

Setting the default route on Solaris is easy. If you are trying to just set the route temporarily you can use the route command:

route add default <ipaddress>

Example:

route add default 192.168.1.1

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:

echo 192.168.1.1 > /etc/defaultrouter

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

Don't show again X

Subscribe

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your email below:


Email:

Comments (1)

  1. Jadi

    great article. solved one of my problems in my first days on solaris :) thank you GEEK :)

Comments are closed on this post.

If you'd like to continue the discussion on this topic, you can do so at our forum.


Go to the Forum