Configuring IP Unicast Routing
Configuring BGP
Switch(config)# router bgp 50000
Switch(config-router)# address-family ipv4
Switch(config-router-af)# bgp dampening route-map BLUE
Switch(config-router-af)# 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.
Command
clear ip bgp address
clear ip bgp *
clear ip bgp peer-group tag
show ip bgp prefix
show ip bgp cidr-only
show ip bgp community [community-number]
[exact]
show ip bgp community-list
community-list-number [exact-match]
show ip bgp filter-list access-list-number
show ip bgp inconsistent-as
show ip bgp regexp regular-expression
show ip bgp
show ip bgp neighbors [address]
show ip bgp neighbors [address]
[advertised-routes | dampened-routes |
flap-statistics | paths regular-expression |
received-routes | routes]
show ip bgp paths
show ip bgp peer-group [tag] [summary]
show ip bgp summary
You can also enable the logging of messages generated when a BGP neighbor resets, comes up, or goes down by using
the bgp log-neighbor changes router configuration command.
Purpose
Reset a particular BGP connection.
Reset all BGP connections.
Remove all members of a BGP peer group.
Display peer groups and peers not in peer groups to which the
prefix has been advertised. Also display prefix attributes such
as the next hop and the local prefix.
Display all BGP routes that contain subnet and supernet
network masks.
Display routes that belong to the specified communities.
Display routes that are permitted by the community list.
Display routes that are matched by the specified AS path
access list.
Display the routes with inconsistent originating autonomous
systems.
Display the routes that have an AS path that matches the
specified regular expression entered on the command line.
Display the contents of the BGP routing table.
Display detailed information on the BGP and TCP connections
to individual neighbors.
Display routes learned from a particular BGP neighbor.
Display all BGP paths in the database.
Display information about BGP peer groups.
Display the status of all BGP connections.
870