05-11-2025 09:07 PM
Hello,
I'm running BGP on a Cisco router using a sub-interface that has both a primary and a secondary IP address.
My BGP peer is configured to connect using the secondary IP, and I'm using the update-source command with the sub-interface.
The BGP session successfully establishes the first time using the secondary IP. However, after performing a shutdown and no shutdown on the sub-interface, the BGP session becomes stuck in the Active state and does not re-establish.
Thank you in advance,
Chetra
05-12-2025 02:12 AM
Hello @Chetra, welcome to the community!
This should work fine. BGP is "just" a TCP service and should be able to reestablish the adjacency to any assigned IP without issue. Which software version are you running?
05-12-2025 02:26 AM
Hello @Chetra
If it is iBGP peerig, consider to use Loopback as update-source
05-12-2025 10:26 PM
If I am understanding the OP correctly the configuration changes were done to configure BGP using an address on a secondary address of a subinterface, the BGP session establishes correctly, then a shut/no shut on the subinterface, and the BGP session did not come back up. My first comment is that shut/no shut on a subinterface surprises me. Shut on a physical interface stops all activity on the interface, I am not so clear about what happens when it is on a subinterface. My first question is whether there are connected devices on that subnet, and if so were they able to communicate after the shut/no shut? My second question is whether we can see some of the details of the configuration of the interface/subinterface and routing information.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide