cisco — Configuring BGP Route Map Next-hop Self

Examples The following sample output shows the policies that are applied to the neighbor at 192.168.1.2. The output displays both inherited policies and policies that are configured on the neighbor device. Inherited polices are policies that the neighbor inherits from a peer-group or a peer-policy template. Device# show ip bgp neighbors 192.168.1.2 policy Neighbor: 192.168.1.2, Address-Family: IPv4 Unicast Locally configured policies: route-map ROUTE in Inherited polices:

prefix-list NO-MARKETING in route-map ROUTE in weight 300 maximum-prefix 10000 Configuring BGP Route Map Next-hop Self Perform this task to modify the existing route map by adding the ip next-hop self-setting and overriding the bgp next-hop unchanged and bgp next-hop unchanged all-paths settings. To configure BGP route map next-hop self, perform this procedure: Procedure Configuring BGP Configuring BGP Route Map Next-hop Self Command or Action Purpose Device(config-router-af)# end Step 8 show ip bgp neighbors [ip-address[policy [detail]]] Example: Device# show ip bgp neighbors 192.168.1.2 policy Displays locally configured peer policy templates.

• The output can be filtered to display a single peer policy template with the policy-template-name argument. This command also supports all standard output modifiers. • Use the policy keyword to display the policies that are applied to this neighbor per address family. • Use the detail keyword to display detailed policy information. Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Configuring BGP 50