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
> State/PrfRcvd
> level2                        7X32     100853        278     0 02:17:31
> 532191
> level1                        7X32        300        278     0 02:17:16
> 1
> gateway2                  22X8        274        272     0 02:15:01      1
> gateway1                  22X8        274        272     0 02:15:01      1
> 
> #netstat -rn
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags   Refs      Use   Mtu Prio Iface
> default            19.25.16.13     UGS        1     8485     -     8 em0
> 19.25.16.12/30  link#1             UC         1        0     -     4 em0
> 19.25.16.13     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       199.96.38.85       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
valid.

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.
-- 
:wq Claudio

Reply via email to