Routing preference for different protocols

Questions related to general functionality
Post Reply
hardillb
Posts: 14
Joined: 13 Feb 2020, 23:19

Routing preference for different protocols

Post by hardillb »

If a client normally connects via PPPoE and then also connects (via a different route) with an L2TP client both connections will get the same IP address (assuming assigned via Radius)

Is there anyway to set the routing metric on a per protocol level? e.g. if I want to packets to always return on the L2TP connection if both are up?
dimka88
Posts: 858
Joined: 13 Oct 2014, 05:51
Contact:

Re: Routing preference for different protocols

Post by dimka88 »

Interesting, maybe it is possible to reach with pppd_compat and run in ip-up script something like
ip route replace {IP} dev {DEVICE} metric {METRIC}
For different proto different metrics. It is just an idea
Post Reply