The display ip routing-table time-range command displays information about routes generated in a specified time range in an IP routing table.
display ip routing-table [ vpn-instance vpn-instance-name ] time-range min-age max-age [ verbose ]
| Parameter | Description | Value |
|---|---|---|
| vpn-instance vpn-instance-name | Displays information about routes generated in a specified time range in the IP routing table of the specified VPN instance. If you do not specify this parameter, the display ip routing-table time-range command displays information about routes generated in a specified time range in the public IP routing table. | 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. |
| min-age | Specifies the end time of the period when routes are generated. | The format is xxdxxhxxmxxs.
NOTE:
If the value of the d is 10000, the values of the h, m, and s can be only 0. |
| max-age | Specifies the start time of the period when routes are generated. | The format is xxdxxhxxmxxs.
NOTE:
If the value of the d is 10000, the values of the h, m, and s can be only 0. |
| verbose | Displays detailed information about active and inactive routes. If you do not specify this parameter, the display ip routing-table time-range command displays only summary information about active routes. | - |
Usage Scenario
If route flapping occurs on a network, you can run the display ip routing-table time-range command and specify a small time range for the command. By doing so, you can find the flapping route in a timely manner and accelerate fault locating.
Precautions
You must make sure that max-age is greater that min-age. Otherwise, the display ip routing-table time-range command does not display any information.
If the specified max-age is greater than min-age and no route was generated within this time range, the display ip routing-table time-range command displays only the table heading.
# Display information about public network routes generated in the last 20 minutes.
<sysname> display ip routing-table time-range 0 20m
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 6 Routes : 6
Destination/Mask Proto Pre Cost Flags NextHop Interface
3.3.3.3/32 Direct 0 0 D 127.0.0.1 LoopBack1
4.4.4.0/24 Static 60 0 D 0.0.0.0 NULL0
Item |
Description |
|---|---|
Route Flags |
Route flags:
|
Routing Tables: Public |
Indicates the routing table is a public routing table |
Destinations |
Number of destination networks and hosts |
Routes |
Number of routes |
Destination/Mask |
Address and mask length of the destination network and host |
Proto |
Protocol used to learn routes |
Pre |
Route preference |
Cost |
Route cost |
Flags |
Route flags in the heading of the routing table |
NextHop |
Next hop |
Interface |
Outbound interface in a route with a reachable next hop |
# Display detailed information about public network routes generated in the last 20 minutes.
<sysname> display ip routing-table time-range 0 20m verbose
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 7 Routes : 7
Destination: 3.3.3.3/32
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 127.0.0.1 Neighbour: 0.0.0.0
State: Active Adv Age: 00h14m06s
Tag: 0 Priority: high
Label: NULL QoSInfo: 0x0
IndirectID: 0x0
RelayNextHop: 0.0.0.0 Interface: LoopBack1
TunnelID: 0x0 Flags: D
Destination: 4.4.4.0/24
Protocol: Static Process ID: 0
Preference: 60 Cost: 0
NextHop: 0.0.0.0 Neighbour: 0.0.0.0
State: Active Adv Age: 00h01m38s
Tag: 0 Priority: medium
Label: NULL QoSInfo: 0x0
IndirectID: 0x0
RelayNextHop: 0.0.0.0 Interface: NULL0
TunnelID: 0x0 Flags: D
Destination: 4.4.4.4/32
Protocol: Static Process ID: 0
Preference: 60 Cost: 0
NextHop: 4.4.4.0 Neighbour: 0.0.0.0
State: Invalid Adv Relied Age: 00h01m38s
Tag: 0 Priority: medium
Label: NULL QoSInfo: 0x0
IndirectID: 0x80000002
RelayNextHop: 0.0.0.0 Interface: NULL0
TunnelID: 0x0 Flags: R
Item |
Description |
|---|---|
Process ID |
Process ID of the routing protocol |
Preference |
Route preference |
Cost |
Route cost |
NextHop |
Next hop |
Neighbour |
IP address of a neighbor. 0.0.0.0 indicates that the route is generated by a local device. |
State |
Route status:
|
Age |
Time after the route is generated |
Tag |
Administrative tag of the route The value is an integer ranging from 0 to 4294967295. |
Priority |
Convergence priority of the route:
|
Label |
Label allocated by MPLS |
QoSInfo |
QoS information. 0x0 indicates QoS information is null. 32-bit octal number. The right-most three octal digits from right to left represent the value of QoS local ID. You can run the apply qos-local-id command to configure this value. The fourth and seventh octal digits are reserved and their values are 0. The fifth and sixth octal digits represent the value of BGP traffic index. You can run the apply traffic-index command to configure this value. The eighth octal digit is the flag. |
IndirectID |
Indicates the keyword of indirect next hop, which is generated by the system and cannot be configured by users. If the route is not iterated, the value is 0x0. If the route is iterated, the value is not 0x0. |
RelayNextHop |
Iterated next hop |
Interface |
Iterated outbound interface |
Tunnel ID |
Tunnel ID:
|
Flags |
Route flags in the heading of the routing table |