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 must be an existing VPN instance name. |
min-age | Specifies the end time of the period when routes are generated. | The value is in xxdxxhxxmxxs format.
NOTE:
If the value of d is 10000, the values of h, m, and s can only be 0. |
max-age | Specifies the start time of the period when routes are generated. | The value is in xxdxxhxxmxxs format.
NOTE:
If the value of d is 10000, the values of h, m, and s can only be 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 brief 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. You can then find the flapping route rapidly and accelerate fault location.
Precautions
max-age must be larger than min-age. Otherwise, the display ip routing-table time-range command does not display any information.
If max-age is larger than min-age but 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.
<HUAWEI> display ip routing-table time-range 0 20m
Route Flags: R - relay, D - download to fib, T - to vpn-instance
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.3.3.3/32 Direct 0 0 D 127.0.0.1 LoopBack1
10.4.4.0/24 Static 60 0 D 0.0.0.0 NULL0
Item |
Description |
---|---|
Route Flags |
Route flags:
|
Routing Tables: Public |
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.
<HUAWEI> display ip routing-table time-range 0 20m verbose
Route Flags: R - relay, D - download to fib, T - to vpn-instance
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 3 Routes : 3
Destination: 10.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: 10.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: 10.4.4.4/32
Protocol: Static Process ID: 0
Preference: 60 Cost: 0
NextHop: 10.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 that ranges from 0 to 4294967295. |
Priority |
Convergence priority of the route:
|
Label |
Label allocated by MPLS. |
QoSInfo |
QoS information. 0x0 indicates QoS information is empty. |
IndirectID |
ID of the indirect next hop. |
RelayNextHop |
Iterated next hop. |
Interface |
Iterated outbound interface. |
Tunnel ID |
Tunnel ID:
|
Flags |
Route flags in the heading of the routing table. |