[systemd-devel] systemd-networkd multipath routing

Amish anon.amish at gmail.com
Wed May 8 04:34:37 UTC 2019



On 07/05/19 6:23 pm, Arnaud Lemaire wrote:
> Hi there,
>
> I'm trying to set up network multipath routing with systemd, but I 
> cannot find a way to do it cleanly.
>
> The part that I cannot set up is :
> ```
> $ ip route
> default
>         nexthop via 192.168.11.1 dev inet.11 weight 5
>         nexthop via 192.168.22.2 dev inet.22 weight 10
> ...
> ```
>
> I'm getting around it with this unit:
> $ cat /etc/systemd/system/multipath-routing.service
> ...
>
> And it's working, but as soon as I unplug the network cable and plug 
> it back, the routes are gone
> and the unit is not triggered
>

Latest systemd.network (v242) supports:
    IgnoreCarrierLoss=true.

This way routes should not vanish when cable is unplugged.

Regards,

Amish


More information about the systemd-devel mailing list