To add a route in Solaris 10 you will need to use the route command. Here is an example:
route add 192.168.0.0 192.168.1.1 -netmask 255.255.0.0 -ifp nge1
This will route any traffic going to 192.168.0.0/255.255.0.0 through the nge1 interface. You can verify the route via using the netstat command
netstat -nrv
This will produce a route table that gives a detailed breakdown of the routes and default gateway.
Adding a route in this way will remain until the host reboots. To make this route last through reboots you may want to consider adding it to the rulevel boot scripts to add the routes at boot time.
Leave a Reply
You must be logged in to post a comment.