BGP Routing Policies

BGP routing policies are used to control the flow of routing information and influence path selection. They are implemented using various tools like route maps, prefix lists, and AS-path access lists.

Common Policy Tools:

  • Route Maps: Flexible tools for matching and setting attributes.
  • Prefix Lists: Used to filter routes based on IP prefixes.
  • AS-Path Access Lists: Used to filter routes based on the AS_PATH attribute.

Example (Route Map):

ip prefix-list MY_PREFIXES seq 5 permit 10.0.0.0/8
route-map SET_LOCAL_PREF permit 10
 match ip address prefix-list MY_PREFIXES
 set local-preference 200
router bgp 65000
 neighbor 192.168.1.2 route-map SET_LOCAL_PREF in