Just a note to remind myself that to establish eBGP connection if loopback is used as the source then neighbor <peer’s ip address> update-source loopback<id>is necessary.
By default BGP will use the interface ip as the source address to establish TCP connection. If update-source is not used then the BGP adjacency will never be formed, and will always stuck in Active state.
Active state is the state whereby a router is attempting to establish a TCP connection to the destination.
Think of the remote BGP router as a server which is constantly listening to port 179, my local BGP router needs to establish a tcp connection to destination port 179 and start the 3-way handshake, at least one BGP router must have an update-source statement in order to establish adjacency.
Here’s the commands:
1841-2#sh run | s router bgp
router bgp 200
neighbor 22.214.171.124 remote-as 100
neighbor 126.96.36.199 ebgp-multihop 2
neighbor 188.8.131.52 update-source Loopback200
1841-1#sh run | i ip route
ip route 184.108.40.206 255.255.255.255 220.127.116.11
1841-1#sh run | s router bgp
router bgp 100
neighbor 18.104.22.168 remote-as 200
neighbor 22.214.171.124 ebgp-multihop 2
neighbor 126.96.36.199 update-source Loopback100
1841-2#sh run | i ip route
ip route 188.8.131.52 255.255.255.255 184.108.40.206
My mistake here is I have forgotten to use update-source keyword! Deadly mistake!
3 thoughts on “BGP: update source”
I am preparing for CCNP ROUTE exam.
The update-source is required only if you are using loopback interface address as the neighbour BGP address? If we use the interface address, then this “update-source” command is not required right?
Thanks for this wonderful site.
You are right.
by default BGP speaker advertises its interface IP address as the source address, however if you use loopback address as the source address you need to use update-source command, and your loopback must be reachable by other BGP speakers.
That means we have to advertise the loop back interface ip addresses which we created in different BGP speakers via IGP like OSPF or EIGRP?
That is also a difficult task.. 😦
Thank you very much for the reply.