Because the /etc/defaultrouter file is deprecated in Oracle Solaris 11, you can no longer manage routes (default or otherwise) by using this file. Using the route command is the only way that you can manually add a route to a system. To make the changes persistent across reboots, use the –p option with the route command.
# route -p add default ip-address
For example, you would add a route to network 10.0.5.0, which has its gateway as the border router, as follows:
# route -p add -net 10.0.5.0/24 -gateway 10.0.5.150 add net 10.0.5.0: gateway 10.0.5.150
View routes that were created by the using the previous command as follows:
# route -p show
Also, note that after an installation, you can no longer determine a system's default route by checking the /etc/defaultrouter file. To display the currently active routes on a system, use the netstat command with the following options:
# netstat -rn
See the netstat (1M) and route (1M) man pages.
For instructions, see Creating Persistent (Static) Routes in Configuring and Administering Network Components in Oracle Solaris 11.2 .