display ip routing-table (All views)

Function

The display migp routing-table command displays brief information about the Multicast Interior Gateway Protocol (MIGP) routing table.

The display ip routing-table command displays the summary of an IPv4 routing table.

Format

display ip routing-table [ table-name { localmt | mbgp | msr } ] { ip-address [ [ mask ] | [ mask-length ] ] | host-name host-name } [ longer-match ] [ verbose ]

display migp routing-table [ ip-address [ [ mask ] | [ mask-length ] ] [ longer-match ] ] [ verbose ]

Parameters

Parameter Description Value
table-name

Specifies a table of a producer.

-

localmt

Indicates a local multi-topology routing table.

-

mbgp

Indicates a multicast BGP routing table.

-

msr

Indicates a multicast static routing table.

-

ip-address

Displays information about a route to a specified IP destination address.

The value is in dotted decimal notation.

mask

Specifies the mask in dotted decimal notation.

The value is in dotted decimal notation.

mask-length

Specifies the mask length. A 32-bit mask is represented by consecutive 1s, and the mask in dotted decimal notation can be replaced by the mask length.

The value is an integer that ranges from 0 to 32.

longer-match

Displays only the routes that match the specified network or prefix.

-

verbose

Displays detailed information about active routes and inactive routes.

If the parameter is not specified, only brief information about active routes is displayed.

host-name host-name

Specifies the hostname.

The value is a string of 1 to 255 case-sensitive characters, spaces not supported.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
route-base read

Usage Guidelines

Usage Scenario

In the command output, each line indicates a route. The contents of the command output include the destination address, mask length, protocol, preference, cost, next hop, and outbound interface.

When the verbose parameter is not specified, information about only one route is displayed in each line. The contents include the destination address, mask length, protocol, priority, route cost, route flag, next hop, and outbound interface. This command displays only the preferred routes.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display brief information about the MIGP routing table.
<HUAWEI> display migp routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table: MIGP
         Destinations : 4        Routes : 4

Destination/Mask    Proto  Pre  Cost     Flags NextHop         Interface

4.4.4.4/32           OSPF   10   3              10.0.1.1        GigabitEthernet0/1/0
5.5.5.5/32           OSPF   10   4              10.0.1.1        GigabitEthernet0/1/0
10.0.3.0/24          OSPF   10   3              10.0.1.1        GigabitEthernet0/1/0
192.168.3.0/24       OSPF   10   4              10.0.1.1        GigabitEthernet0/1/0
# Display the routes with the destination address in the range of 1.0.0.0/8 to 4.0.0.0/24.
<HUAWEI> display ip routing-table 1.0.0.0 8 4.0.0.0 24
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table: _public_

Destination/Mask  Proto  Pre  Cost  Flags  NextHop  Interface

   1.0.0.0/8     Static  60    0     D    10.0.0.1  GigabitEthernet0/1/0
   1.1.1.0/24    Static  60    0     D    2.1.1.1   GigabitEthernet0/1/0
   1.2.0.0/16    Static  60    0     D    10.0.0.1  GigabitEthernet0/1/0
   2.1.1.0/24    Static  40    0     D    10.0.0.1  GigabitEthernet0/1/0
   3.1.1.0/24    Static  60    0     D    4.1.1.1   GigabitEthernet0/1/0
# Specify the IP address 10.0.0.0 in the IP routing table. Display the summary of the route that matches the natural mask range.
<HUAWEI> display ip routing-table 10.0.0.0
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table: _public_
Summary count: 1

Destination/Mask    Proto  Pre  Cost  Flags  Nexthop  Interface

   10.0.0.0/16      Static  60    0     D    2.1.1.1  LoopBack1
# Display detailed information about the route with destination IP address of 192.168.1.1/32 when BGP load balancing is configured.
<HUAWEI> display ip routing-table 192.168.1.1 verbose
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : Public
Summary Count : 1

Destination: 192.168.1.1/32
     Protocol: EBGP            Process ID: 0
   Preference: 255                   Cost: 80
     NextHop: 10.1.1.2       Neighbour: 10.1.1.2
        State: Active Adv             Age: 00h05m41s
          Tag: 0                 Priority: low
        Label: NULL               QoSInfo: 0x0
   IndirectID: 0x2
 RelayNextHop: 0.0.0.0          Interface: GigabitEthernet0/1/0
     TunnelID: 0x0                  Flags:  D
   RouteColor: 0
   BkNextHop: 10.2.1.2     BkInterface: GigabitEthernet0/1/1
      BkLabel: NULL           SecTunnelID: 0x0
 BkPETunnelID: 0x0        BkPESecTunnelID: 0x0
 BkIndirectID: 0x1
# Display the routes with the destination address 3.3.3.3/32.
<HUAWEI> display ip routing-table 3.3.3.3 verbose
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Summary Count : 1

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: 11d00h51m05s
          Tag: 0                 Priority: high
        Label: NULL               QoSInfo: 0x0
   IndirectID: 0x0
 RelayNextHop: 0.0.0.0          Interface: InLoopBack0
     TunnelID: 0x0                  Flags:  D
   RouteColor: 0
# Display detailed information about the MIGP routing table.
<HUAWEI> display migp routing-table verbose
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : MIGP
         Destinations : 5        Routes : 5


Destination: 4.4.4.4/32
     Protocol: ISIS            Process ID: 1
   Preference: 15                    Cost: 20
      NextHop: 10.0.1.1         Interface: GigabitEthernet0/1/0
        State: Active Adv             Age: 00h34m26s

Destination: 5.5.5.5/32
     Protocol: ISIS            Process ID: 1
   Preference: 15                    Cost: 30
      NextHop: 10.0.1.1         Interface: GigabitEthernet0/1/0
        State: Active Adv             Age: 00h34m26s

Destination: 10.0.2.0/24
     Protocol: ISIS            Process ID: 1
   Preference: 15                    Cost: 20
      NextHop: 10.0.1.1         Interface: GigabitEthernet0/1/0
        State: Active Adv             Age: 00h34m26s

Destination: 10.0.3.0/24
     Protocol: ISIS            Process ID: 1
   Preference: 15                    Cost: 30
      NextHop: 10.0.1.1         Interface: GigabitEthernet0/1/0
        State: Active Adv             Age: 00h34m27s

Destination: 192.168.3.0/24
     Protocol: ISIS            Process ID: 1
   Preference: 15                    Cost: 40
      NextHop: 10.0.1.1         Interface: GigabitEthernet0/1/0
        State: Active Adv             Age: 00h34m28s
Table 1 Description of the display ip routing-table (All views) command output
Item Description
Route Flags

Route flags.

  • R: indicates that the route is a recursive route.
  • D: indicates that the route is delivered to the FIB table.
Routing Table

Routing Table.

Destinations

Total number of destination networks or hosts.

Routes

Total number of routes.

Destination/Mask

Address and mask length of the destination network or host.

Proto

Protocol used to learn routes.

Pre

Preference.

Cost

Route cost.

Flags

Route flags in the header of the routing table.

NextHop

IPv4 address of the adjacent next hop through which the packet reaches the destination.

Interface

Outbound interface through which the next hop is reachable.

Summary Count

Number of summary routes.

Process ID

Process ID of the routing protocol.

Destination

Address of the destination network or host.

Protocol

Routing protocol.

Preference

Preference of the route.

State

Status of routes. The status of routes is as follows:

  • Active: indicates routes in the Active state.
  • Invalid: indicates invalid routes.
  • Inactive: indicates routes in the Inactive state.
  • NoAdv: indicates routes that cannot be advertised.
  • Adv: indicates routes that can be advertised.
  • Del: indicates routes to be deleted.
  • GotQ: indicates routes that are relayed successfully.
  • WaitQ: indicates routes that are not relayed successfully yet.
  • Stale: indicates routes with the Stale flag. The routes are used in GR.
Age

Lifetime of the route.

Tag

Administrative tag for routes.

Priority

Priority.

Label

Allocated MPLS label.

QoSInfo

QoS information.

IndirectID

Keyword of the indirect next hop, which is generated by the system. If route recursion is not performed, the value is 0x0.

RelayNextHop

Relay next hop.

TunnelID

Tunnel ID.

The value 0x0 indicates that no tunnel is used or no tunnel has been set up.

BkLabel

Backup label.

SecTunnelID

Backup tunnel.

BkPESecTunnelID

Backup tunnel on the backup PE.

BkPETunnelID

backup PE Tunnel ID.

BkInterface

Backup outbound interface.

BkNextHop

Backup next hop.

BkIndirectID

Backup IID value.

Neighbour

Neighbor.

RouteColor

Route color value.

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