cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
382
Views
1
Helpful
1
Replies

BGP "update-source" command odd behavior

bassomarco1998
Level 1
Level 1

Hello everyone,
I was setting up a simple lab and came across what, in my opinion, is an anomalous behavior. Below is the photo of the topology.

bassomarco1998_0-1703934529026.png

So, I have 2 routers, R1 and R3, with their configuration provided below. I tried to create a BGP session between the routers' loopback interfaces. However, on R1, I omitted the

update-source

command. Therefore, I would expect the session not to be established. Instead, it comes UP correctly.

 

 

 

R1:
router bgp 65000
 bgp log-neighbor-changes
 neighbor 3.3.3.3 remote-as 65100
 neighbor 3.3.3.3 ebgp-multihop 255

R3:
router bgp 65100
 bgp log-neighbor-changes
 neighbor 1.1.1.1 remote-as 65000
 neighbor 1.1.1.1 ebgp-multihop 255
 neighbor 1.1.1.1 update-source Loopback1

 

 

 


I tried capturing packets and performed a clear first on R1 and then on R3. I'm attaching the respective screens below.

bassomarco1998_1-1703934712086.png

When I perform the clear on R1, after terminating the session, R1 attempts to re-establish the session using the source IP associated with the physical interface. Obviously, R3 responds with a reset. The strange thing is that then R3 actively tries to open the session, and R1 responds using the source IP associated with its loopback. How do you explain this behavior if I haven't used the

update-source

command on R1?

bassomarco1998_3-1703934809386.png

If I instead clear on R3, as in the previous case, R3 actively attempts to open a BGP session, and R1 responds using the source IP associated with its loopback.

What do you think?"

1 Accepted Solution

Accepted Solutions

Hi, it normal, if R3 initiate the traffic to R1 using it LO as update then the BGP will form 
if the R1 initiate to R3 using is interface IP then the BGP will never form 
try add access list make deny traffic from R3 toward R1 using tcp port 179 and see the different 
NOTE:- the ACL must config in F1/0 with direction IN 

deny tcp host 3.3.3.3 host 1.1.1.1 eq 179
permit ip any any 

MHM

Screenshot (643).pngScreenshot (644).pngScreenshot (645).pngScreenshot (646).png

View solution in original post

1 Reply 1

Hi, it normal, if R3 initiate the traffic to R1 using it LO as update then the BGP will form 
if the R1 initiate to R3 using is interface IP then the BGP will never form 
try add access list make deny traffic from R3 toward R1 using tcp port 179 and see the different 
NOTE:- the ACL must config in F1/0 with direction IN 

deny tcp host 3.3.3.3 host 1.1.1.1 eq 179
permit ip any any 

MHM

Screenshot (643).pngScreenshot (644).pngScreenshot (645).pngScreenshot (646).png

Review Cisco Networking for a $25 gift card