[quagga-users 14033] BGP prefix-list is incomplete

Arnaud Gomes arnaud.gomes at ymagis.com
Wed Jul 1 13:53:10 BST 2015


Hello,

I am running Quagga 0.99.22.4 on Debian Wheezy. I use Quagga as a BGP
and OSPF router; my problem is with the BGP part, AFAICT it is
unrelated to OSPF.

I have defined a prefix list this way:

ip prefix-list FRYNOC2_INFRA seq 5 permit 172.20.10.0/24
ip prefix-list FRYNOC2_INFRA seq 10 permit 172.20.35.0/24
ip prefix-list FRYNOC2_INFRA seq 15 permit 172.20.18.0/24
ip prefix-list FRYNOC2_INFRA seq 20 permit 172.16.52.0/24
ip prefix-list FRYNOC2_INFRA seq 30 permit 172.18.129.0/24
ip prefix-list FRYNOC2_INFRA seq 40 permit 172.18.130.0/24



All the prefixes except 172.16.52.0/24 are directly connected; here are two of them:

firewall-0001.frynoc2# sh ip route 172.20.10.0/24

Routing entry for 172.20.10.0/24
  Known via "ospf", distance 110, metric 20
  Last update 24w0d03h ago
    85.118.60.5, via eth0 inactive
    85.118.60.246, via eth4 inactive

Routing entry for 172.20.10.0/24
  Known via "connected", distance 0, metric 1, best
  * directly connected, eth2.10

firewall-0001.frynoc2# sh ip route 172.20.35.0/24
Routing entry for 172.20.35.0/24
  Known via "ospf", distance 110, metric 20
  Last update 24w0d03h ago
    85.118.60.5, via eth0 inactive
    85.118.60.246, via eth4 inactive

Routing entry for 172.20.35.0/24
  Known via "connected", distance 0, metric 1, best
  * directly connected, eth2.35



172.16.52.0/24 is an openvpn server running locally:

firewall-0001.frynoc2# sh ip route 172.16.52.0/24
Routing entry for 172.16.52.0/24
  Known via "kernel", distance 0, metric 0, best
  * 172.16.52.2, via vpn-users



So my prefix-list is defined, but only a couple of routes are propagated to BGP.

firewall-0001.frynoc2# sh ip prefix-list FRYNOC2_INFRA 
ZEBRA: ip prefix-list FRYNOC2_INFRA: 6 entries
   seq 5 permit 172.20.10.0/24
   seq 10 permit 172.20.35.0/24
   seq 15 permit 172.20.18.0/24
   seq 20 permit 172.16.52.0/24
   seq 30 permit 172.18.129.0/24
   seq 40 permit 172.18.130.0/24
OSPF: ip prefix-list FRYNOC2_INFRA: 6 entries
   seq 5 permit 172.20.10.0/24
   seq 10 permit 172.20.35.0/24
   seq 15 permit 172.20.18.0/24
   seq 20 permit 172.16.52.0/24
   seq 30 permit 172.18.129.0/24
   seq 40 permit 172.18.130.0/24
BGP: ip prefix-list FRYNOC2_INFRA: 6 entries
   seq 5 permit 172.20.10.0/24
   seq 10 permit 172.20.35.0/24
   seq 15 permit 172.20.18.0/24
   seq 20 permit 172.16.52.0/24
   seq 30 permit 172.18.129.0/24
   seq 40 permit 172.18.130.0/24
firewall-0001.frynoc2# sh ip bgp prefix-list FRYNOC2_INFRA 
BGP table version is 0, local router ID is 10.32.2.201
Status codes: s suppressed, d damped, h history, * valid, > best, i -
   internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 172.16.52.0/24   172.16.52.2              0         32768 ?
*> 172.20.10.0/24   0.0.0.0                  1         32768 ?

Total number of prefixes 2


What am I missing?

-- 
Arnaud



More information about the Quagga-users mailing list