Teamsolve
asked on
Adding secondary gateway to an ethernet device.
In Redhat Enterprise Linux 4, is it possible to assign a secondary gateway to eth0?
I understand you can do something similar in Windows but I was wondering if you could in Linux?
Regards,
Dave.
I understand you can do something similar in Windows but I was wondering if you could in Linux?
Regards,
Dave.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Well, having secondary default gateway does not mean you have loadbalaning over two of them. Kernel just picks up the first one and sends packets through it. Why do you want to have two default gateways?
ASKER
Hello,
So that if one of the gateways is unreachable, then the service on the server is not lost and can connect through the seocndary gateway, like a failover.
Thanks,
Dave.
So that if one of the gateways is unreachable, then the service on the server is not lost and can connect through the seocndary gateway, like a failover.
Thanks,
Dave.
Well, you better raise another ticket how to make failover with two default routes on one NIC possible.
I think you need a proper network expert to answer that question.
Regards,
t.
I think you need a proper network expert to answer that question.
Regards,
t.
ASKER
Hehe, ok dude.
Thank you for your help anyway.
Dave.
Thank you for your help anyway.
Dave.
This is simple.
It can be done by adding the second gateway with a higher metric
It can be done by adding the second gateway with a higher metric
ASKER
Thanks for the response.
When I add the secondary gateway (192.168.0.1) it works, however if I try and do a traceroute it fails to get pass the first hop (192.168.0.1).
If I delete the 2nd gateway, traceroute works again.
Any ideas or work arounds?
Thanks,
Dave.