WG: linux routing table for default route
andrey
Thu Dec 12 17:49:22 2019
-----Ursprüngliche Nachricht-----
Von: Andrey Vakhitov <andrey@xxxxxxxxxxxx>
Gesendet: Donnerstag, 12. Dezember 2019 17:01
An: Roy Marples <roy@xxxxxxxxxxxx>
Betreff: Re: linux routing table for default route
Hi Roy
>> Hi Roy,
>> I’m running dhcpcd on linux. I’d like to put my default route not into the main routing table but to another one. Is it somehow possible? Quick check of configuration parameters shows that I can only enable or disable default route maintenance…
>
> Currently this is not possible.
> I'm also not keen on making it possible as this is very linux only and so far, highly unusual.
>
> Could I ask why you want this?
>
Sure! It is very easy: I use policy based routing because I’ve multiple ISP. I’m slowly switching from old one to the new one and have LTE-based backup as third ISP anyway. Each ISP provides addresses via DHCP, there is a separate routing table table per ISP. So each interface should write it’s default gateway I own table. There are firewall (mangling) rules in place deciding which ISP to use for particular traffic and marking the packages. And routing rules deciding based on package marks which routing table to take.
Archive administrator: postmaster@marples.name