Thursday, May 16, 2024
HomeSolarisSolaris networkingChange the default route in Solaris

Change the default route in Solaris

Step 1: edit /etc/defaultrouter

Using the editor of your choice, edit the file /etc/defaultrouter — the only line in the file should be the default route of the system, for example: This change will not take effect until the system is rebooted.

Step 2: Delete the current default route

To make the route change take effect immediately, you must first delete the default route. If the current default route is, then the command would be:

route delete default

Step 3: Assign the current default route

To implement the new default route without rebooting the system, use the following command substituting your default route for

route add default

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.


  1. Usually I don’t read post on blogs, however I wish to say that this write-up very pressured me to take a look at and do so! Your writing taste has been amazed me. Thanks, quite nice post.


Please enter your comment!
Please enter your name here

Most Popular


Recent Comments

error: Content is protected !!