FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.27k stars 1.24k forks source link

bgp routes not installed in kernel routing table #2713

Closed NetTinkerer closed 6 years ago

NetTinkerer commented 6 years ago

I am running frr 5.0-1 from the deb packages provided on https://frrouting.org/. Routes learned via bgp are not placed in the kernel routing table. Routes remain inactive. I use a route-map on the upstream neighbour (cumulus Linux box) to set a different next-hop then the neigbour ip

unbound01# sh ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR,
       > - selected route, * - FIB route

B   0.0.0.0/0 [20/0] via 10.128.160.1 inactive, 00:00:16
K * 0.0.0.0/0 [0/1024] via 10.128.160.1, ens3 inactive, src 10.128.160.8, 06:56:29
B   10.128.160.0/27 [20/0] via 10.128.160.1 inactive, 00:00:16
C>* 10.128.160.0/27 is directly connected, ens3, 06:56:29
K>* 10.128.160.1/32 [0/1024] is directly connected, ens3, 06:56:29
B   10.128.160.32/27 [20/0] via 10.128.160.1 inactive, 00:00:16
B   10.128.160.64/27 [20/0] via 10.128.160.1 inactive, 00:00:16
B   10.128.160.96/27 [20/0] via 10.128.160.1 inactive, 00:00:16
unbound01# sh ip bgp 
BGP table version is 42, local router ID is 10.128.160.8, vrf id 0
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 0.0.0.0          10.128.160.1                           0 4200010121 4200010100 65100 64657 i
*                   10.128.160.1                           0 4200010122 4200010100 65100 64657 i
*> 10.128.160.0/27  10.128.160.1             0             0 4200010121 i
*                   10.128.160.1             0             0 4200010122 i
*> 10.128.160.32/27 10.128.160.1                           0 4200010121 4200010100 4200010123 i
*                   10.128.160.1                           0 4200010122 4200010100 4200010123 i
*> 10.128.160.64/27 10.128.160.1                           0 4200010121 4200010100 4200010125 i
*                   10.128.160.1                           0 4200010122 4200010100 4200010125 i
*> 10.128.160.96/27 10.128.160.1                           0 4200010121 4200010100 4200010127 i
*                   10.128.160.1                           0 4200010122 4200010100 4200010127 i
*> 10.128.160.193/32
                    0.0.0.0                  0         32768 ?

Displayed  6 routes and 11 total paths
unbound01# sh ip bgp summary 

IPv4 Unicast Summary:
BGP router identifier 10.128.160.8, local AS number 420004001 vrf-id 0
BGP table version 42
RIB entries 10, using 1520 bytes of memory
Peers 2, using 40 KiB of memory

Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd
10.128.160.2    4 4200010121    8404    8393        0    0    0 06:57:46            5
10.128.160.3    4 4200010122    8405    8393        0    0    0 06:57:46            5

Total number of neighbors 2
unbound01# 
NetTinkerer commented 6 years ago

adding the statement

neighbor 10.128.160.2 disable-connected-check
neighbor 10.128.160.3 disable-connected-check

solved my issue can't find the statment in the docs though

qlyoung commented 6 years ago

Thanks, I've added this to the docs in #2729.