How to configure EBGP (External BGP)

Hello Boris

When a BGP peering takes place between two routers, one router takes the active role while the other takes the passive role. The router with the highest BGP router identifier will be the active peer, and will actively search for, and establish the connection to the remote peer via TCP port 179. In this sense, the router with the highest identifier will play the active role, while the other router will play the passive role.

You can change this behaviour by using the neighbor transport command with the appropriate keywords under the BGP configuration mode. For example, the following command will cause the local router to be the passive router in its BGP peering with neighbor 150.1.1.1:

neighbor 150.1.1.1 transport connection-mode passive

More information about this command can be found here:
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/command/irg-cr-book/bgp-m1.html#wp2116780248

I hope this has been helpful!

Laz