As I'm trying to understand the basic BGP way of working, I have a questiong that I need someones help to answer:
If I want to use in my AS as IGP, BGP, and I want all the updates to be sent as source from loopback interfaces, before all the BGP will go up, do I have to make static routes for all my speekers to all the loopbacks of all my peers? I mean in order for a router to have a neighbor relation with another one, it has to have the neigh IP in his routing table (from my understanding), as R1 to see R2's loop, do I have to add it before making the neigh statments a static route to this loopback?
Is it not possible to just add the loopback in the router bgp AS configuration as a "network" statment?
To be more precise what I am asking here I will try to give the simplest example that comes into my mind right now:
R1 -> R2 directly connected with 10.10.10.0/32
R1 - has lo 184.108.40.206
R2 - has lo 220.127.116.11
for R1 I want as a neighbor 18.104.22.168
for R2 -> 22.214.171.124
from R1 to 126.96.36.199 has to be a static route? or I can just add in the network statment under bgp of R2, network 188.8.131.52 and R1 should learn it via BGP?
If you are not using an IGP you would need a static route because the network statement would only come into effect after the BGP peering has been setup. But to setup the BGP peering each router needs to know how to reach the loopback. So it's a kind of catch 22 situation.