Edit routing table in Solaris 10

Posted on 2011-10-14
Last Modified: 2012-05-12
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.
Question by:goddessofcode
    LVL 9

    Assisted Solution

    LVL 22

    Assisted Solution

    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"?

    Accepted Solution

    I found the problem. I had to add dns to nsswitch for hosts.

    Author Closing Comment

    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.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now