The neighbour was up, the prefix was in the BGP table, and the routing table still had nothing. One word in the output explains it.
BGP only installs a route if it can reach the next hop. Over iBGP the next hop is not changed by default, so the receiving router often has no path to it.
The output
R2# show ip bgp 192.168.10.0/24
BGP routing table entry for 192.168.10.0/24
Paths: (1 available, no best path)
65010
10.1.1.1 (inaccessible) from 10.0.0.1 (1.1.1.1)
Origin IGP, localpref 100, valid, internalvalid, internal says the update is fine. inaccessible and no best path say R2 cannot resolve 10.1.1.1 in its routing table, so the path is never a candidate.
Check
R2# show ip route 10.1.1.1 % Network not in table
Two fixes
- On the edge router, set itself as next hop for iBGP peers. This is the usual choice.
router bgp 65000 neighbor 10.0.0.2 next-hop-self
- Or advertise the external link subnet into your IGP so every router can reach it.
Common mistakes
- Clearing the BGP session again and again. The session is healthy.
- Adding a static route on one router only. The next router has the same problem.
- Forgetting route reflectors: they also pass the next hop unchanged.
Remember this
Read BGP output from the right: flags first. inaccessible always means "fix reachability to the next hop", never "fix BGP".
Practise it: build two routers and a peer in the browser labs, then read how BGP picks the best path.
Device names, addresses and some details are changed. The method is exactly what I used.
0 Comments
Post a Comment