#417966 allow making more specific routes explicit

Package:
iproute2
Source:
iproute2
Description:
networking and traffic control tools
Submitter:
martin f krafft
Date:
2017-12-30 20:12:17 UTC
Severity:
wishlist
#417966#3
Date:
2007-04-05 19:04:34 UTC
From:
To:
At times, such as before configuring a VPN tunnel, I want to add an
explicit route to the peer. It would be nice if iproute could be
told to do this in one line. Thus, instead of first parsing the
routing table and adding a new route, it should just add the new
route according to the routing table:

While doing this currently:

  ip r a $(ip r g 130.60.75.72 | head -1)

yields the result I want, it would be nice to be able to say

  ip r a 130.60.75.72 via route

Basically, this would cause iproute to instantiate a separate
routing table entry with a longer netmask, using the default gateway
if no other rule exists.

It's a wishlist... :)