display ip routing-table statistics
Use display ip routing-table statistics to display IPv4 route statistics, including numbers of total routes, routes installed by the protocol, routes marked as deleted, and active routes.
Syntax
display ip routing-table [ all-routes | all-vpn-instance | vpn-instance vpn-instance-name ] statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all-routes: Displays IPv4 route statistics for the public network and all VPN instances.
all-vpn-instance: Displays IPv4 route statistics for all VPN instances.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays IPv4 route statistics for the public network.
Usage guidelines
If you do not specify any parameters, this command displays IPv4 route statistics for the public network.
Examples
# Display IPv4 route statistics for the public network.
<Sysname> display ip routing-table statistics Total prefixes: 15 Active prefixes: 15 Proto Routes Active Added Deleted DIRECT 12 12 30 18 STATIC 3 3 5 2 RIP 0 0 0 0 OSPF 0 0 0 0 IS-IS 0 0 0 0 BGP 0 0 0 0 Total 15 15 35 20
# Display IPv4 route statistics for the public network and all VPN instances.
<Sysname> display ip routing-table all-routes statistics Total prefixes: 11 Active prefixes: 11 Proto Routes Active Added Deleted DIRECT 8 8 8 0 STATIC 3 3 5 2 RIP 0 0 0 0 OSPF 0 0 0 0 IS-IS 0 0 0 0 LISP 0 0 0 0 BGP 0 0 0 0 Total 11 11 13 2
# Display IPv4 route statistics for VPN instance vpn1.
<Sysname> display ip routing-table vpn-instance vpn1 statistics Total prefixes: 11 Active prefixes: 11 Proto Routes Active Added Deleted DIRECT 8 8 8 0 STATIC 3 3 5 2 RIP 0 0 0 0 OSPF 0 0 0 0 IS-IS 0 0 0 0 LISP 0 0 0 0 BGP 0 0 0 0 Total 11 11 13 2
# Display IPv4 route statistics for all VPN instances.
<Sysname> display ip routing-table all-vpn-instance statistics Total prefixes: 11 Active prefixes: 11 Proto Routes Active Added Deleted DIRECT 8 8 8 0 STATIC 3 3 5 2 RIP 0 0 0 0 OSPF 0 0 0 0 IS-IS 0 0 0 0 LISP 0 0 0 0 BGP 0 0 0 0 Total 11 11 13 2
Table 4: Command output
Field | Description |
---|---|
Proto | Protocol that installed the route. |
Routes | Number of routes installed by the protocol. |
Active | Number of active routes. |
Added | Number of routes added to the routing table after the router started up or the routing table was cleared most recently. |
Deleted | Number of routes marked as deleted, which will be cleared after a period. |
Total | Total number of routes. |