How do I control which gateway becomes the default?

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content