display ip routing-table protocol

Function

The display ip routing-table protocol command displays routing information about the specified routing protocol.

Format

display ip routing-table [ table-name localmt ] protocol { bgp | direct | isis | rip | static | ospf | unr } [ time-range min-age max-age ] { inactive | verbose }

Parameters

Parameter Description Value
table-name

Specifies a table of a producer.

-

localmt

Displays routing information about the local multi-topology routing table.

-

protocol

Displays routing information about the specified protocol.

-

bgp

Displays BGP routes.

-

direct

Displays direct routes.

-

isis

Displays IS-IS routes.

-

rip

Displays RIP routes.

-

static

Displays static routes.

-

ospf

Displays OSPF routes.

-

unr

Displays UNRs.

-

time-range

Displays routes that are generated within a specified period.

-

min-age

Specifies the start generation time.

The value is a string of characters, in the format of XXdXXhXXmXXs.

max-age

Specifies the end generation time.

The value is a string of characters, in the format of XXdXXhXXmXXs.

inactive

Displays brief information about inactive routes. If this parameter is not specified, brief information about all the active and inactive routes is displayed.

-

verbose

Displays detailed information about active and inactive routes matching the filtering rule. If this parameter is not specified, only the brief information about active routes matching the filtering rule is displayed.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
route-base read

Usage Guidelines

Usage Scenario

If neither verbose nor inactive is specified, only the summary of active routes of each routing protocol is displayed. To learn the detailed information about the active and inactive routes, specify verbose.

Example

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

# Display brief information about all direct routes.
<HUAWEI> display ip routing-table protocol direct
------------------------------------------------------------------------------
_public_ Routing Table : Direct
Destinations : 6           Routes : 6
Direct Routing Table Status : < Active>
Destinations : 5           Routes : 5
Destination/Mask  Proto  Pre  Cost  Flags  Nexthop    Interface
10.1.1.1/32    DIRECT  0    0     D     127.0.0.1  GigabitEthernet0/1/0
127.0.0.0/8    DIRECT  0    0     D     127.0.0.1  InLoopBack0
127.0.0.1/32   DIRECT  0    0     D     127.0.0.1  InLoopBack0
127.255.255.255/32   DIRECT  0    0     D     127.0.0.1  InLoopBack0
255.255.255.255/32   DIRECT  0    0     D     127.0.0.1  InLoopBack0
Direct Routing Table Status : < Inactive>
Destinations : 1           Routes : 1
Destination/Mask  Proto  Pre  Cost  Flags  Nexthop    Interface
192.168.0.1/32/32   DIRECT  0    0     D     127.0.0.1  GigabitEthernet0/1/1
Table 1 Description of the display ip routing-table protocol command output
Item Description
_public_ Routing Table

Contents of the public routing table:

  • direct: direct routes.
  • static: static routes.
  • bgp: BGP routes.
  • isis: IS-IS routes.
  • ospf: OSPF routes.
  • rip: RIP routes.
  • opr: OP-Routes.
Direct Routing Table Status

Status of the direct routing table: inactive or active.

Destinations

Total number of destination addresses.

Routes

Total number of routes in the routing table.

Destination/Mask

Destination Address/Mask Length.

Proto

Type of the routing protocol.

Pre

Priority of the routing protocol.

Cost

Cost of the imported route.

Flags

Route flags in the header of the routing table.

Interface

Outbound interface.

Nexthop

Next-hop IP address.

Active

Active routes in the routing table.

Inactive

Inactive routes in the routing table.

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