> 1-I want to know why can't we provide IP reachability via ibgp by redistribution.I think i am missing something very basic here.It seems bgp is a routed protocol so a routed protocol can't route another routed protocol i.e. IP.
iBGP ist not a routed protocol.
BGP is a Layer 5 Protocol which is based on the Layer 4 Protocol TCP, which in turn uses the (routed) Layer 3 Protocol IP. So if you say BGP is a routed protocol, then you might mean that the needed IP is routed.
now you have the following options:
- use BGP on p2p Links, i.e. both routers are exactly one hop from each other.
- use BGP on shared links, i.e. both routers are exactly one hop from each other, but share Layer 2 with other devices
- use BGP on "remote" links, i.e. both routers are several hops from each other
in Option 1 (p2p) you would use the ip adresses of the physical Ports to establish the BGP Session. This is because using loopback adresses might add overhead (extra host routes), but then again there is no gain, because if the link fails, it fails.
Option 2 doesnt differ much.
Option 3 you have to differ again between alternate paths or wether this is a single path which has no redundancy whatsoever.
In the latter case use interface ips, they wil make handling easier.
In the former case however, IGP will solve two problems for you:
- First when you use your IGP to announce loopback adresses to the relevant routers (in OSPF for example divided by Areas) the IGP will automatically find a path between any given two routers for you. If you used static routes to route either Interface-IPs OR loopback addresses (this doesnt matter here) then this would mean that one link down will bring your network down in worst case.
- Second, you use your IGP so that iBGP will know which router is the actual next-hop in a multihop session. So Router A will learn the Prefix from Router C, which it reaches only over Router B; Through the IGP Router A will know that to get to Router C it will need to set the next-hop (or "gateway") to B.
NB: a multihop session doesnt mean that you will create a session over multiple BGP Hops, it means that you create the session over multiple IP-Hops - that is, the routers cannot(!) reach each other at layer 2 - which in turn means that if one router learns a route from another router it will not know where to set the gateway because it cant route a network to a gateway A OVER another gateway B, instead it will need to replace (for the given prefix) the next-hop "A" by next-hop "B" (which in turn knows how to reach "A", either by Layer 2 (i.e. shared or p2p network) or will have learned how to route packets to A).
Now you could try replacing the IGP by iBGP, but that *might* only work on p2p links, it will not work properly on MH-BGP Sessions, and even if you did, you will lose the automatic failovers that the IGP provides to you. On the other hand, if you configured the necessary routes statically, you might not need your "IGP Replacement" anyway. Also, this approach will always present kinda chicken-egg problem to you, because BGP relies on that your routers can reach each other at layer 3 already.
This is why the most common approach is to use an IGP to announce
- internal networks
- loopback addresses
who basically form your critical infrastructure itself.
.. and use BGP to announce
- customer-relevant network (though this might also be "just" in your IGP)
- external networks
who basically form the service you provide.
i hope this helps and wasnt too lowlevel (i take into consideration that i completely misunderstood your problem 😉
-R