BGP is a policy protocol
Unlike an IGP, BGP does not try to find the shortest path. It applies your policy to a set of advertised paths. Every operational problem is therefore either a filtering problem or an attribute problem.
Path selection, in the order that matters
Highest weight (Cisco-local).
Highest local preference — how you steer outbound traffic.
Locally originated routes.
Shortest AS path — how you influence inbound traffic, via prepending.
Lowest origin, lowest MED, eBGP over iBGP, lowest IGP metric to next hop.
A safe edge configuration
router bgp 65010
bgp log-neighbor-changes
neighbor 203.0.113.1 remote-as 64500
neighbor 203.0.113.1 description ISP-A
neighbor 203.0.113.1 password 7 <secret>
neighbor 203.0.113.1 maximum-prefix 1000 80 restart 15
address-family ipv4
network 198.51.100.0 mask 255.255.255.0
neighbor 203.0.113.1 activate
neighbor 203.0.113.1 prefix-list PL-OUT out
neighbor 203.0.113.1 prefix-list PL-IN in
neighbor 203.0.113.1 route-map RM-ISPA-IN in
exit-address-familyCommunities express intent
ip community-list standard CM-BACKUP permit 65010:200
route-map RM-ISPA-IN permit 10
match community CM-BACKUP
set local-preference 80
route-map RM-ISPA-IN permit 20
set local-preference 200Verifying
show bgp ipv4 unicast summary
show bgp ipv4 unicast neighbors 203.0.113.1 received-routes
show bgp ipv4 unicast 198.51.100.0/24 bestpathOperational guardrails
Document every prefix you originate and why.
Use RPKI ROAs for your own space and validate inbound where the platform supports it.
Alert on session flaps and on prefix-count deltas, not just on session down.