I have a machine that has multiple outgoing IP -addresses (one of which is a Keepalived VIP) and I want to force outgoing traffic to use a certain IP. This is what I thought would be the best solution: [Match] Name=eth0 [Network] DNS=xxx DNS=xxx Address=a.b.c.d/24 Address=a:b:c/64 Gateway=a:b [Route] Destination=0.0.0.0/0 Gateway=a.b.c.d Source=a.b.c.d/32 However; it doesn't work. `ip route` still shows "default via a.b.c.d dev eth0" without a source IP. If I manually execute `ip route add default via a.b.c.d dev eth0 proto static ` it works fine How can I modify the default route in a .network file?
Is there anything you need from me to help? Is there a workaround I should be using, or is this simply not supported?
I'm also affected by this, has this ever been fixed in some systemd version?
I am pretty sure this has been fixed in current systemd versions. If this is reproducible on the two most current systemd versions (240 or 241) please file a new issue on systemd github. Thank you.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.