How To Persist The Default Gateway Configuration in Case of Multiple Interfaces?
Problem
How to persist the default gateway configuration in case of multiple interfaces attached to a system?
Environment
- Platform9 Managed OpenStack - All Versions
- CentOS 7.x
Procedure
- By default the system will prefer the gateway of the latest interface that was brought online. If the gateway is defined for all the interfaces in the interface config file, add the option of DEFROUTE=yes for the interface whose gateway should be used for preferred network communication.
Additional Information
Alternative way is to set DEFROUTE=no in all other interface configuration except for the interface which we want to use by default for all communication.
Was this page helpful?