< Home

display ip routing-table time-range

Function

The display ip routing-table time-range command displays information about routes generated in a specified time range in an IP routing table.

Format

display ip routing-table [ vpn-instance vpn-instance-name ] time-range min-age max-age [ verbose ]

Parameters

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.
  • d indicates days. The value is an integer that ranges from 0 to 10000.
  • h indicates hours. The value is an integer that ranges from 0 to 23.
  • m indicates minutes. The value is an integer that ranges from 0 to 59.
  • s indicates seconds. The value is an integer that ranges from 0 to 59.
For example, you can enter 5d4h30m20s to specify 5 days, 4 hours, 30 minutes, and 20 seconds.
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.
  • d indicates days. The value is an integer that ranges from 0 to 10000.
  • h indicates hours. The value is an integer that ranges from 0 to 23.
  • m indicates minutes. The value is an integer that ranges from 0 to 59.
  • s indicates seconds. The value is an integer that ranges from 0 to 59.
For example, you can enter 5d4h30m20s to specify 5 days, 4 hours, 30 minutes, and 20 seconds.
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. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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

Table 1 Description of the display ip routing-table time-range command output

Item

Description

Route Flags

Route flags:
  • R: The route is an iterated route.

  • D: The route is sent to the FIB table.

  • T: Indicates a route whose next hop belongs to a VPN instance.

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
Table 2 Description of the display ip routing-table time-range verbose command output

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:
  • Active: an active route

  • Invalid: an invalid route

  • Inactive: an inactive route

  • NoAdv: a route that cannot be advertised

  • Adv: a route that can be advertised

  • Del: a route to be deleted

  • Relied: a route that is iterated to the next hop and outbound interface or a tunnel

  • Stale: a route with the Stale flag and used in GR

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:

  • low: The convergence priority of a route is low.

  • medium: The convergence priority of a route is medium.

  • high: The convergence priority of a route is high.

  • critical: The convergence priority of a route is critical.

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:
  • The value 0x0 indicates that the route does not use a tunnel or the tunnel fails to be set up.
  • If the value is not 0x0, the route is iterated to a tunnel.

Flags

Route flags in the heading of the routing table.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >