Route Add - Unix

For many years the “correct” way of configuring static routes in Solaris has been to create an init.d script which ran the ‘route add’ commands. As of Solaris 10 11/06, a more reasonable approach has been implemented. The ‘route’ command has a new option ‘-p’. Make changes to the network route tables persistent across system How to add a new static route on RHEL7 Linux - LinuxConfig.org Jul 25, 2018 adding default gateway on solaris 10 - Sun: Solaris - Tek-Tips Nov 21, 2005 route add default in non global zone on solaris 10 add it to the global zone and it'll be accessible to the local zone AngelicaX via solaris-l wrote: Posted by AngelicaX on 01/03/2008 12:35:00 PM

Mar 29, 2009

Examples route -n. Shows routing table for all IPs bound to the server.. route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0. adds a route to the network 192.56.76.x via "eth0" The Class C netmask modifier is not really necessary here because >192.* is a Class C IP address. The word "dev" can be omitted here.route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0

Dec 01, 2006

The route command has the -p option, in OpenSolaris and I believe Solaris 10 as well. From man route:-p Make changes to the network route tables per- sistent across system restarts. The operation is applied to the network routing tables first and, if successful, is then applied to the list of saved routes … 7 Linux Route Command Examples (How to Add Route in Linux) Instead of “route add -net IP netmask MASk gw IP” you should enter “ip route add IP/MASk via IP”. Another command that can be used to replace “route -n” is “ip route show”. To set a default gateway use: “ip route add default via IP”, and finally to delete a route use: “ip route del IP/MASK”. Good luck 🙂 Change the default route in Solaris Jul 26, 2011 Setting Persistent Static Routes on Solaris 10 - SysAdmin