cisco — Monitoring and Maintaining BGP

allpath. This configuration results in static routes being redistributed with a next hop of self, but connected routes and routes learned via IBGP or EBGP continue to be redistributed with an unchanged next hop. route-map static-nexthop-rewrite permit 10 match source-protocol static set ip next-hop self route-map static-nexthop-rewrite permit 20 match route-type internal match route-type external match source-protocol connected !

router bgp 65000 neighbor 172.16.232.50 remote-as 65001 address-family vpnv4 neighbor 172.16.232.50 activate neighbor 172.16.232.50 next-hop unchanged allpaths neighbor 172.16.232.50 route-map static-nexthop-rewrite out exit-address-family address-family ipv4 unicast vrf inside bgp route-map priority redistribute static redistribute connected exit-address-family end Monitoring and Maintaining BGP You can remove all contents of a particular cache, table, or database. This might be necessary when the contents of the particular structure have become or are suspected to be invalid. You can display specific statistics, such as the contents of BGP routing tables, caches, and databases.

You can use the information to get resource utilization and solve network problems. You can also display information about node reachability and discover the routing path your device’s packets are taking through the network. The table given below lists the privileged EXEC commands for clearing and displaying BGP. Table 3: IP BGP Clear and Show Commands Resets a particular BGP connection. clear ip bgp address Resets all BGP connections. clear ip bgp * Removes all members of a BGP peer group. clear ip bgp peer-group tag show ip bgp prefix Displays peer groups and peers not in peer groups to which has been advertised. Also displays prefix attributes such as hop and the local prefix.

Displays all BGP routes that contain subnet and supernet ne masks. show ip bgp cidr-only Displays routes that belong to the specified communities. show ip bgp community [ community-number ] [ exact ] Configuring BGP Monitoring and Maintaining BGP Configuring BGP 56