[FS#170] Adding routes with a proto field doesn't work
LEDE Bugs
lede-bugs at lists.infradead.org
Sun Sep 11 23:03:11 PDT 2016
A new Flyspray task has been opened. Details are below.
User who did this - Dave Täht (dtaht)
Attached to Project - LEDE Project
Summary - Adding routes with a proto field doesn't work
Task Type - Feature Request
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - I was hoping to find a clean way of adding covering routes to elsewhere, and to minimize the amount of routing information propagated outside my core network.
config 'route'
option interface loopback
option target 172.22.140.0/22
option type unreachable
option proto 44
inserts the route as "static", rather than the proto I requested.
The equivalent command line would have been
ip route add unreachable 172.22.140.0/22 proto 44
lacking proto support here makes for easy way to insert routes into another routing protocol a bit harder than it needs to be. In babel's /etc/babeld.conf I'd stuck this:
redistribute proto 44
So I could add or subtract routes from that without having to restart the daemon. There are a couple other places where additionally defining the routing proto is useful (vpn tunnels), and one where it should probably be used (dhcp), also
(hnetd uses some similar tricks more directly, using proto 43, I'm talking about using it more directly in /etc/config/network here)
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=170
More information about the lede-bugs
mailing list