<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - systemd-networkd: Route configuration: defining source-ip doesn't work"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88863">88863</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemd-networkd: Route configuration: defining source-ip doesn't work
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bugs.freedesktop.org@spider007.net
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>