Dec 04, 2006 · Solaris Guru's What is the proper way to add routes in the routing table so after a node reboot the routes will not be lost. I understand the /etc/defaultrouter for the default router and the command but using this command routes will be removed once the node reboots. Thanks

Oct 18, 2011 · To setup static routing on Solaris 10 systems, just create your own /etc/rc*.d/S*script containing the “route add” invocations desired or create a transient SMF service that adds routes at boot time as shown in the following two options. Option 1: Create a new startup script in /etc/rc2.d directory say S99Networkroutes and then in that file Creating Persistent (Static) Routes. You use the route command to manually manipulate the network routing tables. Because the /etc/defaultrouter file is deprecated in Oracle Solaris 11.3, you can no longer manage routes (default or otherwise) by using this file. Add a route: route add net 128.50.3.0 bigbox ( you do need keyword net here) Use the "route add net" command with the -netmask option to make the route command to take the netmask specified on the command line route add net 192.168.68.0 128.50.1.250 1 -netmask 255.255.255.192 Add a default route: route add default 196.168.0.1 Sep 13, 2011 · Please , I have a problem I have add a statis route on Solaris 10, but after this, the network interface of Server was Offline. The system is in cluster mode (3.2) route add -net 10.10.1.128 -netmask 255.255.255.128 10.10.1.51 ------------------- lo0: You use the route command to manually manipulate the network routing tables. The use of the –p option with the route command makes the changes persistent across reboots. You cannot manage routes by using the /etc/defaultrouter file because it is deprecated in Oracle Solaris 11. 1. Add a persistent route to a system:

Oct 18, 2011 · To setup static routing on Solaris 10 systems, just create your own /etc/rc*.d/S*script containing the “route add” invocations desired or create a transient SMF service that adds routes at boot time as shown in the following two options. Option 1: Create a new startup script in /etc/rc2.d directory say S99Networkroutes and then in that file

Mar 20, 2014 · To use rc script to add route: The -p option will not work earlier solaris verion as well as some earlier patch level of solaris 10. To avoid this we have a another optin to create a rc script under /etc/rc2.d/. Add the route add command in this script : i.e /etc/rc2.d/S90route Jul 25, 2018 · To make the routing information persistent, add the “route add” line as seen above into the /etc/rc.local file. Sample /etc/rc.local file. #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don’t # want to do the full Sys V style init stuff. To add a Static Route in Sun Solaris operating system, you can use the route command. This will dynamically update the Kernel IP Routing table. However, when a server is restarted, these routes will be lost. To prevent this from happening, add a startup script S76static-routes with all the route commands for the static route that needs to persist. For the Solaris route command, the delete, and add, sub-commands have the following syntax: route [ -fnvq ] cmd destination gateway [metric/netmask] So you probably have more success with: route delete 10.250.0.0 10.250.0.37 -netmask 255.255.255.0 Or to remove it permanently (as commented by @Alexandre Alves; assuming this was a permanent route):

For the Solaris route command, the delete, and add, sub-commands have the following syntax: route [ -fnvq ] cmd destination gateway [metric/netmask] So you probably have more success with: route delete 10.250.0.0 10.250.0.37 -netmask 255.255.255.0 Or to remove it permanently (as commented by @Alexandre Alves; assuming this was a permanent route):

$ sudo route add default 192.108.21.254 The following examples show how to see the status of network interfaces and routing tables. Commands prefaced with sudo must be run as root. The final example shows a feature of the Solaris route command that is not present on other architectures: the get argument shows the next hop to a particular Aug 13, 2003 · Simply, these are the examples of the commands used to view the routing table in Solaris. netstat -r Optionally, to prevent reverse dns lookups which may slow down the execution of the command: netstat -rn