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