"route show" does not show routes announce by BGP on OpenBSD 5.5 i386
running the command "route show" does not get the full internet routing
table as I should. However, if I run "bgpctl show rib" I get the full
routing table. Router is routing packets fine, however, I am concern
that something may be wrong.
On Wed, May 13, 2015 at 07:58:12AM -0700, Motty Cruz wrote:
> running the command "route show" does not get the full internet routing
> table as I should. However, if I run "bgpctl show rib" I get the full
> routing table. Router is routing packets fine, however, I am concern that
> something may be wrong.
> any explanation as to why this is happening?
> # bgpctl show
> Neighbor AS MsgRcvd MsgSent OutQ Up/Down
> level2 7X32 100853 278 0 02:17:31
> level1 7X32 300 278 0 02:17:16
> gateway2 22X8 274 272 0 02:15:01 1
> gateway1 22X8 274 272 0 02:15:01 1
> #netstat -rn
> Routing tables
> Destination Gateway Flags Refs Use Mtu Prio Iface
> default 184.108.40.206 UGS 1 8485 - 8 em0
> 220.127.116.11/30 link#1 UC 1 0 - 4 em0
> 18.104.22.168 2c:6b:f5:a4:df:40 UHLc 2 583 - 4 em0
> 127/8 127.0.0.1 UGRS 0 0 33192 8 lo0
> 127.0.0.1 127.0.0.1 UH 1 0 33192 4 lo0
> 19.16.26/24 22.214.171.124 UGS 0 882702 - 8 em1
I bet you that the prefixes in bgpctl show rib output are not valid
(marked with a *) and therefore not selected (marked with a >) and so
not put into the rib.
Make sure that the nexthops are valid.
"bgpctl show next" should give you a list of nexthops and will also tell
you if they are valid. 'bgpctl show fib next' will tell you which routes
are used to validate the nexthops and will again tell you if those are
In short if the nexthop is not valid then the route is not valid and
therfore the route is not selectable and not imported into the FIB.