Link to home
Start Free TrialLog in
Avatar of Teamsolve
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.
ASKER CERTIFIED SOLUTION
Avatar of nognew
nognew
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Teamsolve
Teamsolve

ASKER

Hello,

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.
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?
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.
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.
Hehe, ok dude.

Thank you for your help anyway.

Dave.
This is simple.

It can be done by adding the second gateway with a higher metric