Adding route on Solaris

Discussion in 'Shell Script' started by csmgsarma, Aug 28, 2010.

  1. csmgsarma

    csmgsarma New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:
    Hi all,
    I want to add a route on Solaris machine for each IP I am pinging. I am added static route for each IP as here:

    route add -net -netmask[interface id, gateway =]
    route add -net -netmask
    route add -net -netmask
    route add -net -netmask
    route add -net -netmask

    Actually I know that any interface ip in the network needs to be routed to the gateway so I tried this

    route add net

    But the former works and the later doesn't. I want to know what is going wrong here?
    The address scheme I am following is Class C[mask =]

    Any suggestions would be greatly appreciated.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice