BGP Fundamentals for Enterprise Networks

Path selection, policy with communities, route filtering and safe defaults for enterprise edge and data-centre BGP.

Published May 19, 2026Updated Aug 25, 202612 min read3 views
  • bgp
  • cisco
  • networking

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

  1. Highest weight (Cisco-local).

  2. Highest local preference — how you steer outbound traffic.

  3. Locally originated routes.

  4. Shortest AS path — how you influence inbound traffic, via prepending.

  5. Lowest origin, lowest MED, eBGP over iBGP, lowest IGP metric to next hop.

A safe edge configuration

Bash
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-family

Communities express intent

Bash
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 200

Verifying

Bash
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 bestpath

Operational 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.

Back to all docs