<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-network: please make route’s scope configurable"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88508">88508</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemd-network: please make route’s scope configurable
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>michael+freedesktop@stapelberg.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>in networkd-route.c:route_new_static(), you currently set

        route->scope = RT_SCOPE_UNIVERSE;

Which sets up the following route:

localhost core # ip -4 route show
192.168.23.23 dev eth0 

…with this configuration:

    [Route]
    Destination=192.168.23.23/32

However, for my network setup, I need a route that is scoped to the link:

localhost core # ip -4 route delete 192.168.23.23 dev eth0
localhost core # ip -4 route add 192.168.23.23 dev eth0
localhost core # ip -4 route show
192.168.23.23 dev eth0  scope link 

…otherwise, I cannot set 192.168.23.23 as my default gateway.

Therefore, may I ask you to follow ip(8) in behavior, or make the route scope
configurable please?

See <a href="http://michael.stapelberg.de/Artikel/kvm_best_practices_2012/">http://michael.stapelberg.de/Artikel/kvm_best_practices_2012/</a> for the
environment this is running in.

Thanks!</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>