AIX

AIX

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


#Power
#Power
 View Only
Expand all | Collapse all

Multiple Gateways - AIX 6.1

  • 1.  Multiple Gateways - AIX 6.1

    Posted Tue October 29, 2013 03:05 PM

    Originally posted by: michaeldpotter


    Hello,

    I have an LPAR that is setup with two interfaces, en0 and en1:

    en0 10.99.0.0/16

    en1 10.4.0.0/16

    The default gateway is currently set to 10.99.0.2. 

    I am wondering if there is a way to set a second gateway that would go to 10.4.0.2, but only for traffic that is received/sent on en1. In other words, I would like to send all traffic received on en1, back out en1 to the second gateway.

     

    Thanks!

    Michael


    #AIX-Forum


  • 2.  Re: Multiple Gateways - AIX 6.1

    Posted Wed October 30, 2013 07:12 AM

    Originally posted by: Verleihnix


    Hello Michael,

    the default gateway is like the highlander "There can be only one". But never the less, you can add additional gateways to the routing table.

    For example: You get a package addressed to 10.4.0.10 (your en1) from e.g. 10.5.0.10. So, if you don't have a route to the network 10.5.0.0 , the outgoing traffic will use the default route. To route the outgoing traffic to en1, you have to set a route for the network 10.5.0.0

    Assuming, your Gateway in the network 10.4.0.0 is 10.4.0.2 and your destination is 10.5.10 in the network 10.5.0.0 then do a

    route add -net 10.5.0.0 -netmask 255.255.0.0 10.4.0.2 for a network route

    or

    route add -host 10.5.0.10 -netmask 255.255.0.0 10.4.0.2 for a host route

    If you want to set a persistent route, use the chdev -l inet0 -a route=.... , or simply smitty mkroute

     

     


    #AIX-Forum


  • 3.  Re: Multiple Gateways - AIX 6.1

    Posted Wed October 30, 2013 12:10 PM

    Originally posted by: michaeldpotter


    Thanks for your response. It's looking like I can't do what I want to do on AIX unfortunately. :-(


    #AIX-Forum