< Home

display ip routing-table statistics

Function

The display ip routing-table statistics command displays integrated route statistics in the routing table.

Format

display ip routing-table [ vpn-instance vpn-instance-name | all-vpn-instance ] statistics

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Displays integrated route statistics of a specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
all-vpn-instance Displays integrated route statistics in the routing table of all VPN instances. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To check integrated route statistics of the routing table, run the display ip routing-table statistics command. You can check whether the number of routes of each protocol and the total number of routes exceed the system specifications. The display ip routing-table statistics command output shows the following information:
  • Total number of active and inactive routes of each protocol in the routing table

  • Number of active routes of each protocol in the routing table

  • Total number of newly added active and inactive routes of each protocol in the routing table

  • Total number of active or inactive routes that are labeled for deletion but are not yet deleted from the routing table

  • Number of routes of each protocol that are deleted permanently from the routing table

You can specify the following parameters in the display ip routing-tablestatistics command:
  • If you do not specify any parameter, the command output displays integrated route statistics in the routing table.
  • If you specify vpn-instance vpn-instance-name, the command output displays integrated route statistics in the routing table of the specified VPN instance.
  • If you specify all-vpn-instance, the command output displays integrated route statistics in the routing table of all VPN instances.

Precautions

The reset ip routing-table statistics protocol command clears route statistics in the routing table, including the number of newly added routes of each protocol, active or inactive routes that are labeled for deletion but are not yet deleted, and routes that are permanently deleted. You can run the display ip routing-table statistics and reset ip routing-table statistics protocol commands to check statistics changes during a period in the routing table to diagnose faults.

Example

# Display integrated route statistics in the routing table.

<sysname> display ip routing-table statistics
Summary Prefixes: 9
Proto   total   active  added      deleted     freed
        routes  routes  routes     routes      routes
DIRECT   6        6      42          36         36
STATIC   3        3      21          18         18
RIP      0        0       0           0          0
OSPF     0        0       0           0          0
IS-IS    0        0       0           0          0
BGP      0        0       0           0          0
UNR      0        0       0           0          0
Total    9        9      63          54         54
Table 1 Description of the display ip routing-table statistics command output

Item

Description

Summary Prefixes

Total number of prefixes in the routing table

Proto

Routing protocol

total routes

Total number of active and inactive routes in the routing table

active routes

Number of active routes in the routing table

added routes

Number of active and inactive routes added in the routing table

deleted routes

Number of routes to be deleted from the routing table

freed routes

Number of routes that are permanently deleted from the routing table

Total

Total number of routes in the routing table

# Display integrated route statistics in the routing table of all VPN instances.
<sysname> display ip routing-table all-vpn-instance statistics
Summary prefixes: 9
Proto   total   active  added      deleted     freed
        routes  routes  routes     routes      routes
DIRECT   6        6      42          36         36
STATIC   3        3      21          18         18
RIP      0        0       0           0          0
OSPF     0        0       0           0          0
IS-IS    0        0       0           0          0
BGP      0        0       0           0          0
UNR      0        0       0           0          0
Total    9        9      63          54         54
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >