cisco — Configuring BGP Filtering by Neighbor

Configuring BGP Filtering by Neighbor To configure BGP filter by neighbor, perform this procedure: Configuring BGP Configuring BGP Filtering by Neighbor Command or Action Purpose Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 route-map map-tag [permit | deny] [sequence-number] Example: Device(config)# route-map set-peer-address permit 10 Creates a route map, and enter route-map configuration mode. Step 4 set ip next-hop ip-address [...ip-address] [peer-address] Example:

Device(config)# set ip next-hop 10.1.1.3 (Optional) Sets a route map to disable next-hop processing • In an inbound route map, set the next hop of matching routes to be the neighbor peering address, overriding third-party next hops. • In an outbound route map of a BGP peer, set the next hop to the peering address of the local router, disabling the next-hop calculation. Step 5 end Example: Device(config)# end Returns to privileged EXEC mode. Step 6 show route-map [map-name] Example: Device# show route-map Displays all route maps configured or only the one specified to verify configuration. Step 7 copy running-config startup-config Example:

Device# copy running-config startup-config (Optional) Saves your entries in the configuration file. Configuring BGP 22