[systemd-bugs] [Bug 88863] New: systemd-networkd: Route configuration: defining source-ip doesn't work

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 29 01:11:04 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88863

            Bug ID: 88863
           Summary: systemd-networkd: Route configuration: defining
                    source-ip doesn't work
           Product: systemd
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: bugs.freedesktop.org at spider007.net
        QA Contact: systemd-bugs at lists.freedesktop.org

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?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150129/be25c062/attachment-0001.html>


More information about the systemd-bugs mailing list