[CentOS] CentOS 4.x - Multiple gateways -- static routes

Fri May 26 06:23:59 UTC 2006
Feizhou <feizhou at graffiti.net>

Vincent Knecht wrote:
> Le Jeudi 25 Mai 2006 12:51, Tom Brown a écrit :
>> Hi
>>
>> On a multihomed box how can i set different gateways for each NIC?
>> Setting them in the ifcfg-ethx does not seem to make any difference to
>> the routing?
>>
>> thanks
> 
> Hello,
> 
>   I think setting /etc/sysconfig/network-scripts/route-ethX files will help,
> see http://blog.subverted.net/?p=571

No that won't work. He wants packets to go out through their respective 
gateways depending on the NIC ip address. He does not want static routes 
which is a case of all packets to network Y, use ethX.