Topic
  • 2 replies
  • Latest Post - ‏2013-10-30T16:10:21Z by michaeldpotter
michaeldpotter
michaeldpotter
2 Posts

Pinned topic Multiple Gateways - AIX 6.1

‏2013-10-29T19:04:58Z |

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

  • Verleihnix
    Verleihnix
    3 Posts

    Re: Multiple Gateways - AIX 6.1

    ‏2013-10-30T11:11:59Z  

    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

     

     

  • michaeldpotter
    michaeldpotter
    2 Posts

    Re: Multiple Gateways - AIX 6.1

    ‏2013-10-30T16:10:21Z  

    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

     

     

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