Subscribe to How-To Geek

Recommended: Click Here to Run a Free Scan for Common PC Errors   [Sponsored Link]

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.

The Geek is the founder of How-To Geek and a geek enthusiast. When he's not coming up with great how-to articles, he's probably writing at his personal blog. This article was written on 12/1/06 and tagged with: Solaris

Comments (1)

  1. Jadi

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


Leave a Comment




Leave your friendly comment here. If you have a computer help question, leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Copyright © 2006-2008 HowToGeek.com. All Rights Reserved.