AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Static Routes

    Posted Thu February 01, 2007 06:39 AM

    Originally posted by: SystemAdmin


    Hi,
    I added the routes to an AIX machine, through the 'route add' command. I could see that added route in the netstat -rn output.
    Whenever I reboot the server, these static routes goes off and I have to add then again.
    Is there any way of adding the routes in AIX,using some configuration, where even if I reboot the system, the routes are readed by the OS automatically.
    I tried using smit utility, but couldn't find any procedure. Is there any procedure to do this.
    The same thing can be done in HP-UNIX, using the netconf file. Is there any such file in AIX also?
    #AIX-Forum


  • 2.  Re: Static Routes

    Posted Thu February 01, 2007 07:34 AM

    Originally posted by: SystemAdmin


    > Hi,
    > I added the routes to an AIX machine, through the
    > the 'route add' command. I could see that added route
    > in the netstat -rn output.
    > Whenever I reboot the server, these static routes
    > goes off and I have to add then again.
    > Is there any way of adding the routes in AIX,using
    > some configuration, where even if I reboot the
    > system, the routes are readed by the OS
    > automatically.
    > I tried using smit utility, but couldn't find any
    > procedure. Is there any procedure to do this.
    > The same thing can be done in HP-UNIX, using the
    > netconf file. Is there any such file in AIX also?

    Hi,

    Can you please try . This will add the route permanently

    # smit route.

    (or)

    Normally the 'route add ' command will work temporary. You have to do add it in inet0

    # chdev -l inet0 -a route
    Thanks,
    Pravin
    #AIX-Forum


  • 3.  Re: Static Routes

    Posted Mon February 05, 2007 11:59 AM

    Originally posted by: SystemAdmin


    > Normally the 'route add ' command will work
    > temporary. You have to do add it in inet0
    >
    > # chdev -l inet0 -a route
    >

    You can also use an rc.local and add your route commands there.

    Creating an rc.local:
    http://www.faqs.org/faqs/aix-faq/part1/section-59.html
    #AIX-Forum