Edit routing table in Solaris 10

Hey all,
I need to make permanent changes to the routing table on a Soalris 10 box. How would I do that? Right now it has my workstation listed as a gateway which is incorrect. I believe this is preventing me from getting out to the Internet.
goddessofcodeAsked:
Who is Participating?
 
goddessofcodeAuthor Commented:
I found the problem. I had to add dns to nsswitch for hosts.
0
 
Brian UtterbackPrinciple Software EngineerCommented:
You can add and delete routes with the "route" command. See the man page for instructions.

Otherwise, Solaris uses RIP and router discovery to find routers. In general this is better than using static routes. What is the output of "netstat -rn"?
0
 
goddessofcodeAuthor Commented:
Also to make a permanent change I had to add the IP to /etc/defaultrouter. Using the route command will not make a permanent change, it will be gone after a reboot.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.