Add a default route

Posted October 5, 2003 by vaiism in Solaris networking

This command will add a default route (gateway). You should create an /etc/defaultrouter file with the IP to have it set to this for each boot.


route add default xxx.xxx.xxx.xxx

The Conversation

Follow the reactions below and share your own thoughts.

  • Sur_hodge

    is it possible to change defaultroute while system is running ?

  • Steven Xie

    yes. route add default xxx.xxx.xxx.xxx does it while system is running.