DISQUS

DISQUS Hello! Tech-Recipes is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Tech-Recipes

Cookbook of Tech Tutorials
Jump to original thread »
Author

Change the default route in Solaris | Solaris networking | Tech-Recipes

Started by qdideas · 9 months ago

No excerpt available. Jump to website »

7 comments

  • If you are on a remote network from this sun box, this command series will not work reliably, since you will have just deleted the route telling solaris how to get back to you. Of couse, if you're on the console this doesn't matter.

    If you must do this without a reboot, wrap the 2 commands above into a one-off script, and execute it that way.
  • You might want to try this, after updating /etc/defaultrouter:
    route change default `cat /etc/defaultrouter `

    A lot less wordy and no need to write a script in order to ensure your connectivity.

    Koen
  • Can I add more then one default router in solaris
  • Faster on Solaris 10:

    route change default 192.168.1.1

    This should be run for permanent modification:

    route -p change default 192.168.1.1
  • Thanks Adrien, your help is appreciated
  • Thanks for the tip!
  • If you want to make the route persistent, use this:
    route -p add default 192.168.1.1

Add New Comment

Returning? Login