How do I control which gateway becomes the default?
Issue
- Given a host with multiple interfaces, if more than one has a gateway defined or receives gateway information via DHCP, the host seems to pick one of the gateways at random to be the default gateway.
- Why is default gw showing up on bond2?
- After adding new routing tables for bond0 and bond2 the default route still shows bond0. Why does it even appear in route?
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.