13.6.12 Checking the limit on the number of learned BGP4 routes
- <Structure of this section>
(1) List of operation commands
The following tables list the operation commands for limiting the number of learned BGP4 routes.
Command name |
Description |
---|---|
show ip route |
Displays routing information stored in the routing table. |
show ip bgp |
Shows information related to the BGP4 protocol. |
clear ip bgp |
Reconnects a peer that was disconnected because it exceeded the maximum number of BGP4 routes that can be learned from a particular device. |
(2) Checking the limit on the number of BGP4 learned routes and the number of routes learned from peers
To check the allowable maximum and the actual number of BGP4 routes (sum of the active and inactive paths) learned from a particular peer, use the show ip bgp operation command with the neighbors parameter and an <AS>, a <Peer Address>, or a <Host name> argument or the detail parameter specified.
>show ip bgp neighbors detail Date 20XX/01/17 18:45:09 BGP Peer: 172.16.2.2, Remote AS: 65532 Remote Router ID: 172.16.2.200 BGP Status: Idle HoldTime: 90 , Keepalive: 60 Established Transitions: 1 Established Date: 20XX/01/16 18:42:26..1 BGP Version: 4 Type: External Local Address: 172.16.23.214, Local AS: 65531 Local Router ID: 172.16.2.100 Next Connect Retry:-, Connect Retry Timer: - Last Keep Alive Sent: 18:42:20, Last Keep Alive Received: 18:42:20 BGP Message UpdateIn UpdateOut TotalIn TotalOut 12 14 36 42 BGP Peer Last Error: Cease(Over Prefix Limit) ..2 BGP Routes Accepted MaximumPrefix RestartTime Threshold ..3 0 10000 60m 80% BGP Capability Negotiation: <IPv4-Uni> Send : <IPv4-Uni> Receive: <IPv4-Uni> Password : Configured BFD Name: -, BFD ID: -, BFD State: - BGP Peer: 192.168.2.1, Remote AS: 65531 Remote Router ID: 192.168.2.200 BGP Status: Established HoldTime: 90 , Keepalive: 60 Established Transitions: 1 Established Date: 20XX/01/16 18:42:31 BGP Version: 4 Type: Internal Local Address: 192.168.23.214, Local AS: 65531 Local Router ID: 192.168.2.100 Next Connect Retry: 00:32, Connect Retry Timer: 00:32 Last Keep Alive Sent: 18:44:31, Last Keep Alive Received: 18:44:31 BGP Message UpdateIn UpdateOut TotalIn TotalOut 9 19 51 63 BGP Routes Accepted MaximumPrefix RestartTime Threshold ..4 942 1000 none 75% BGP Capability Negotiation: <IPv4-Uni> Send : <IPv4-Uni> Receive: <IPv4-Uni> Password : Configured BFD Name: -, BFD ID: -, BFD State: - |
-
The peer was disconnected at 20XX/01/16 18:42:26.
-
The peer was disconnected because it exceeded the maximum number of learned routes.
-
The disconnected peer was reconnected after 60 minutes.
-
Of the allowable maximum of 1000 routes, the peer has learned 942 routes from the specified peer.
(3) Reconnecting BGP4 Sessions Disconnected Due to Limited BGP4 Learned Routes
To reconnect a BGP4 session that was disconnected because the peer exceeded the maximum number of learned BGP4 routes, use the clear ip bgp operation command with the * parameter specified or with a <Peer Address> or <Host Name> argument specified.
Reconnection of a BGP4 session by using the command
-
# clear ip bgp 172.16.2.2
Reconnects the BGP4 session with remote peer address 172.16.2.2, which was disconnected after exceeding the learned routes limit.