Syntax for show route and primary route (*)?

Ondrej Zajicek santiago at crfreenet.org
Thu Oct 24 16:05:42 CEST 2019


On Thu, Oct 24, 2019 at 09:14:42AM +0000, Kenth Eriksson wrote:
> On Wed, 2019-10-23 at 13:07 +0000, Kenth Eriksson wrote:
> > 
> > No. But I filtered on 0.0.0.0/0, and there is only one such route
> > entry.
> > 
> 
> Re-tested on vanilla 2.0.7. Same issue there. Default route is not
> marked with asterisk. Tested on different setups, all showing same
> intermittent reporting of the primary route.
> 
> BIRD v2.0.7 ready.
> bird> show route
> Table master4:
> 0.0.0.0/0            unicast [kernel1 11:10:53.058] (215)
> 	via 10.210.70.1 on eth0
> 10.210.70.0/23       unicast [direct1 11:10:53.058] * (255)
> 	dev eth0
>                      unicast [kernel1 11:10:53.058] (215)
> 	dev eth0

Hi

What is your config? It is possible that you have some 'keep filtered'
routes in net->routes for 0.0.0.0/0?

If there is only one route in list net->routes for 0.0.0.0/0 (as there
is no other in your output), then it should have asterisk.

Is it possible that due to some bug a temporary route added by kernel
during scan was not removed after the scan. Could you check the value
of X->attrs->source (and perhaps content of attrs->src) for X in
e, e->net->routes in this (or analogous) state:

> > (gdb) print e
> > $2 = (rte *) 0x56939d14
> > (gdb) print e->net->routes
> > $3 = (struct rte *) 0x56939c54

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."


More information about the Bird-users mailing list