You said âwe also have to use the update-source command to tell the routers to use the IP address on their loopback interface as the source IP address for the eBGP neighbor adjacencyâ
The 2nd command âneighbor 2.2.2.2 remote-as 2â â what does that do? That doesnât establish R2 as the source?
That command instructs R1 to establish a neighbor relationship with 2.2.2.2. It does not, however, tell R1 to use any specific interface as source or âfromâ address when establishing the relationship. By default, BGP will try to use the closest interface to the neighbor to establish the relationship. Knowing this, what do you suppose would happen if we just used the command above to try to establish a BGP neighbor relationship with R2?
From R2âs perspective it would be receiving packets from R1, but the source address would be R1âs closest intefaceâin this case either 192.168.12.1 or 192.168.21.1. Now, assuming that the administrator correctly setup R2 ahead of time, R2 is expecting a relationship with R1, but only from the source address of 1.1.1.1 (R1âs loopback). The reason for this is because the R2 administrator has already typed in âneighbor 1.1.1.1 remote-as 1â on his side.
When the BGP Open packet arrives from R1, but not from 1.1.1.1, R2 will ignore it, so a relationship will never be formed! This is why the additional command of: âneighbor 2.2.2.2 update source loopback0â is necessary. R1 is being told, âWhenever you talk to R2 at 2.2.2.2, be sure to use the loopback interface as the packet source.â
imagine instead of using loopback interfaces for configuring the 1 BGP session, instead we just configure multiple sessions (one per link), R1 will then install the prefix on the RIB and show as possible next hops the 2 ips configured on the interfaces of R2⌠besides adding more configuration and load on the BGP process (2 sessions instead of 1) and removing the need of care about loopback interfaces, do you see any criterias to prefer one solution or the other?
Edward,
What you describe will work. The answer as to whether you should do this comes down scenario-specific criteria. Since the example in this lesson is external BGP, there really isnât an an advantage of using loopbacks or multiple connections over different links.
You will most often see loopback based peering in an iBGP scenario where the traffic is traversing a network under your own control. In this case, it is much better to use loopbacks because internal routing protocols can achieve sub-second convergence in the event of a path failure.
By the way, there are some scenarios, like MPLS Layer 3 VPNs, where you must use loopbacks or the network will fail.
Hi Rene, What if you donât know the number of hops of your neighbor router. What is going to be the configuration or is there any replacement for ebgp-multihop command ? Thanks
Hi Rene, What if you donât know the number of hops of your neighbor router. What is going to be the configuration or is there any replacement for ebgp-multihop command ? Thanks
I have a question about load balancing with respect to routing. Here we have this static routes doing the load balancing for BGP messages. What kind of load balancing this is, is it per packet basis or something else?
Also does this load balancing concept same for all routing protocols?
Routing protocols are used to learn different routes, CEF is used for the forwarding of traffic. If you change the load sharing type then it will apply to all traffic.
Something is not clear for me in BGP which I need to ask you:
Sometimes in BGP we use network command to advertise our routes to BGP but sometimes we just use neighbor command and we donât advertise any network.
I am aware we use neighbor to build adjacencies and I am also aware that we use network command to advertise routes in to BGP. Can you please tell me why in some senarios we donât use network command which makes neighbor command both for adjacencies and also advertisementâŚ
Sara,
I am not quite following what you are asking. Are you asking why you would have a neighbor statement, but not a corresponding network statement? If so, the most common example of this would be a company that wants to form a neighbor relationship with its ISPâs BGP router in order to get routes inâusually just a default route (if there is only one exist point), or sometimes all routes within the ISPâs autonomous system. In either case, there might be no need for the customer to advertise anything out to the ISP.
If I have misunderstood your question, please clarify.
Thanks,
Andrew
1 Like
shantel
(Shantel - Networklessons.com)
Split this topic
39
19 posts were merged into an existing topic: EBGP Multihop
One question about BGP load balaning.
By default EBGP does not do load balancing it will choose one best path,
if we enable maximum-path command only then I will support loadbalancing.
pls clarify.