FAQ–Why Is the Number of BGP Routing Entries Displayed with the display bgp routing-table statistics Command Different from the Number of Those Displayed with the display ip routing-table statistics Command

A: The BGP routing entries displayed by using the display bgp routing-table statistics command include all routes redistributed by the local host and all BGP routes advertised by the peer. All active and inactive routes are included, but the load balancing routes obtained through route iteration (that is, if multiple outbound interfaces can be obtained through IGP iteration for a destination, only the single next hop address before route iteration, instead of multiple interfaces is displayed here). The routing entries displayed by using the display ip routing-table statistics command are classified by protocol. The routes of each protocol include total, original, active, original active, added, deleted, and freed entries. The specific meanings of these types of entries are omitted. Note: Since the routing table needs to be sent to the FIB to guide forwarding, the total entries and active entries of all these routes include load-balancing routes obtained through route iteration, but do not include the routes whose next hop address is 0.0.0.0 in the BGP routing table (that is, the routes whose next hop address points to the device itself, or the IGP routes, direct routes, and static routes through which the next hop is reachable without passing through the BGP route). You can use the display ip routing-table protocol bgp command to view the iterated routes of the BGP. All outbound interfaces are listed for each active route. Therefore, the number of routing entries in the BGP routing table is unnecessarily the same as the number of BGP routing entries in the IP routing table, and there is no necessary relationship between these two numbers.