Information Technology Reference
In-Depth Information
Example 9-18 show ip bgp Command
R7#show ip bgp
BGP table version is 14, local router ID is 7.7.7.7
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 18.88.88.0/24 78.1.1.8 0 0 128 i
* i 172.16.64.1 100 0 128 i
*>i79.7.7.0/24 9.9.9.9 0 100 0 i
*>i109.1.1.0/24 10.10.10.10 0 100 0 i
*>i155.55.55.0/24 172.16.64.1 100 0 128 i
*> 172.16.1.0/24 78.1.1.8 0 128 i
* i 172.16.64.1 0 100 0 128 i
*>i199.99.99.0 9.9.9.9 0 100 0 i
*>i222.222.222.0 172.16.64.1
You can use several keywords to clear BGP sessions. Example 9-19 shows the possible
keywords. To reset all of BGP, use clear ip bgp * . To clear peers within an AS, use clear ip bgp
as-number . To clear a BGP neighbor, use clear ip bgp ip-address . To clear all BGP external
peers, use clear ip bgp external .
Example 9-19 Clearing the BGP Table
R7#clear ip bgp ?
* Clear all peers
<1-65535> Clear peers with the AS number
A.B.C.D BGP neighbor address to clear
dampening Clear route flap dampening information
external Clear all external peers
flap-statistics Clear route flap statistics
ipv4 Address family
peer-group Clear all members of peer-group
vpnv4 Address family
The router enters BGP table entries into the routing table. To verify BGP routes, use the show
ip routes command, as shown in Example 9-20. By default, eBGP routes have an administrative
distance of 20, and iBGP routes have an administrative distance of 200. In the example, network
222.222.222.0/24 was learned from BGP with an administrative distance of 200 (iBGP). Network
18.88.88.0/24 is an eBGP route, and the next hop is 78.1.1.8. Network 172.16.1.0/24 was learned
from an external BGP peer because its administrative distance is 20. Network 199.99.99.0/24 was
learned from an internal BGP peer because the administrative distance is 200.
Search WWH ::




Custom Search