-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Issue by mwinter-osr
Thursday Dec 15, 2016 at 11:51 GMT
Originally opened as https://github.com/opensourcerouting/cumulus-private_quagga/issues/19
In a BGP multi-view setup, the nexthops are claimed to be unreachable (and no bestpath is selected because of this.
Example Multi-View Config:
interface r1-eth0
description to PE router - vlan1
ip address 172.16.1.254/24
no link-detect
!
interface r1-stub
description Stub Network
ip address 172.20.0.1/28
no link-detect
!
router bgp 100 view 1
bgp router-id 172.30.1.1
timers bgp 60 180
neighbor 172.16.1.1 remote-as 65001
neighbor 172.16.1.2 remote-as 65002
neighbor 172.16.1.5 remote-as 65005
GIves the following output from show ip bgp view 1:
mininet1# show ip bgp view 1
BGP table version is 0, local router ID is 172.30.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
10.0.1.0/24 172.16.1.5 0 65005 i
172.16.1.2 0 65002 i
172.16.1.1 0 65001 i
10.101.0.0/24 172.16.1.1 100 0 65001 i
10.101.1.0/24 172.16.1.1 100 0 65001 i
10.101.2.0/24 172.16.1.1 100 0 65001 i
10.101.3.0/24 172.16.1.1 100 0 65001 i
10.101.4.0/24 172.16.1.1 100 0 65001 i
10.101.5.0/24 172.16.1.1 100 0 65001 i
10.101.6.0/24 172.16.1.1 100 0 65001 i
10.101.7.0/24 172.16.1.1 100 0 65001 i
[...]
and show ip bgp view 1 10.101.0.0/24 shows:
mininet1# show ip bgp view 1 10.101.0.0/24
BGP routing table entry for 10.101.0.0/24
Paths: (1 available, no best path)
Not advertised to any peer
65001
172.16.1.1 (inaccessible) from 172.16.1.1 (172.16.1.1)
Origin IGP, metric 100, localpref 100, invalid, external
Community: 1:1
AddPath ID: RX 0, TX 5
Last update: Thu Dec 15 02:53:34 2016
but the nexthop is connected:
mininet1# show ip route 172.16.1.1
Routing entry for 172.16.1.0/24
Known via "connected", distance 0, metric 0, best
* directly connected, r1-eth0
Changing this all from a multi-view config to a "normal" single-view works fine, accepts the next-hop and does the best-path selection:
mininet1# sh ip bgp
BGP table version is 32, local router ID is 172.30.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.5 0 65005 i
* 172.16.1.2 0 65002 i
*> 172.16.1.1 0 65001 i
*> 10.101.0.0/24 172.16.1.1 100 0 65001 i
*> 10.101.1.0/24 172.16.1.1 100 0 65001 i
*> 10.101.2.0/24 172.16.1.1 100 0 65001 i
*> 10.101.3.0/24 172.16.1.1 100 0 65001 i
*> 10.101.4.0/24 172.16.1.1 100 0 65001 i