February 28 2022

Two Default Gateways on One System

You have built two or more network cards into one Linux system and each of these cards has its own default gateway. By default, you can only have one default gateway on a system. The case described would lead to asynchronous routing, whereby the router would reject the packets as appropriate.

The iproute2 program, which is included in all current Linux distributions and already installed even, as a rule, can be used for the solution of this problem. Normally, a Linux system only has one routing table, in which only one default gateway can make entries. With iproute2, you have the ability to setup an additional routing table, for one thing, and allow this table to be used by the system based on rules, for another.

https://www.thomas-krenn.com/en/wiki/Two_Default_Gateways_on_One_System


Copyright 2021. All rights reserved.

Posted February 28, 2022 by reggie goldman in category "Uncategorized