The display ip routing-table route-number command displays the number of routes on a public network or in a VPN instance enabled with an IPv4 address family.
The display ip routing-table statistics command displays integrated route statistics of the IPv4 routing table.
display ip routing-table topology topology-name [ table-name localmt ] statistics
display ip routing-table vpn-instance vpn-instance-name [ table-name { localmt | msr } ] statistics
display ip routing-table [ table-name { localmt | mbgp | msr } ] statistics
display ip routing-table topology topology-name [ table-name localmt ] route-number
display ip routing-table vpn-instance vpn-instance-name [ table-name { localmt | msr } ] route-number
display ip routing-table [ table-name { localmt | mbgp | msr } ] route-number
Parameter | Description | Value |
---|---|---|
statistics |
Routing statistics. |
- |
vpn-instance vpn-instance-name |
Displays information about the routing table of an IPv4 address family-enabled VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
table-name |
Specifies a table of a producer. |
- |
localmt |
Displays integrated route statistics of the local multi-topology routing table. |
- |
msr |
Displays integrated route statistics of the multicast static routing table. |
- |
mbgp |
Displays integrated route statistics of the multicast BGP routing table. |
- |
topology topology-name |
Displays integrated route statistics of the specified IPv4 topology instance. |
The value is a string of 1 to 31 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive) and can contain numbers, hyphens (-), or underlines (_). When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
The display ip routing-table route-number command is used to view the number of routes on a public network or in a VPN instance enabled with an IPv4 address family.
Integrated route statistics include:The actual command output varies according to the device. The command output here is only an example.
[~HUAWEI] display ip routing-table statistics Summary Prefixes : 8 Proto total active added deleted freed routes routes routes routes routes DIRECT 7 7 7 0 0 STATIC 1 1 1 0 0 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 OPR 0 0 0 0 0 Total 8 8 8 0 0 [~HUAWEI]
Item | Description |
---|---|
Summary Prefixes | Total number of route prefixes in the routing table. |
Proto | Routing protocol.
|
total routes | Total number of routes in the routing table. |
active routes | Number of active routes in the routing table. |
added routes | Number of active and inactive routes added to 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. |