networkd: changing priorities of default routing poilicy lists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello List,

Given the following commands, I am asking if there is a possible solution to achive this the "systemd way" (meaning being able to configure this entirely via networkd configs), instead of having them to put into a unit file:

    ip -4 rule add pref 32765 table local
    ip -4 rule del pref 0
    ip -6 rule add pref 32765 table local
    ip -6 rule del pref 0

I took those from the Kernel selftest scripts to fix the routing from one VRF to the main VRF by moving the local table above the l3mdev table:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/net/forwarding/lib.sh?id=330f4c53d3c2d8b11d86ec03a964b86dc81452f5#n499

This is somewhat being explained here if this is of interest:
https://stbuehler.de/blog/article/2020/02/29/using_vrf__virtual_routing_and_forwarding__on_linux.html


Thank you & kind regards,

Marcel Menzel



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux