local address as next-hop

2018-04-15 Thread Alexander Demenshin

Hi,

When next-hop specified as a local address, bird 2 produces a warning 
like:


2018-04-15 18:34:31.136  Next hop address 192.168.100.100 is a 
local address of iface routers


and the route itself is installed as "unreachable".

Is there any reason for this? It is completely legal under linux, 
according to iproute2 documentation:


via ADDRESS
  the address of the nexthop router. Actually, the sense of this field 
depends on the route type.
  For normal unicast routes it is either the true next hop router or, if 
it is a
  direct route installed in BSD compatibility mode, it can be a local 
address of the interface.
  For NAT routes it is the first address of the block of translated IP 
destinations.


--
With best regards,
Alexander.



Re: bird 2.0.2 does not propagate krt_metric set in static routes when exporting to kernel (and couple other small issues in static protocol)

2018-04-15 Thread Alexander Demenshin

On 2018-04-15 06:42, Radu Anghel wrote:


You need to set metric 0; in your kernel protocol in order to have
custom krt_metric per route.


Now I see, thank you... how could I miss it in docu :)

Though, this has a nasty side effect - it is impossible to set "default"
metric on export and then override it using protocol options.

--
Best regards,
Alexander.