display ip routing-table protocol

Syntax

display ip routing-table protocol protocol [ inactive | verbose ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

protocol: Routing protocol. It can be direct, static.

inactive: Displays information about only inactive routes. With this argument absent, the command displays information about both active and inactive routes.

verbose: Displays detailed routing table information. With this argument absent, the command displays brief routing table information.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.

Description

Use the display ip routing-table protocol command to display routing information of a specified routing protocol.

Examples

# Display brief information about direct routes.

<Sysname> display ip routing-table protocol direct
Public Routing Table : Direct
Summary Count : 6

Direct Routing table Status : < Active>
Summary Count :  6

Destination/Mask    Proto  Pre  Cost       NextHop         Interface

2.2.2.0/24          Direct 0    0          2.2.2.1         Vlan2
2.2.2.2/32          Direct 0    0          127.0.0.1       InLoop0
127.0.0.0/8         Direct 0    0          127.0.0.1       InLoop0
127.0.0.1/32       Direct 0    0          127.0.0.1       InLoop0
192.168.80.0/24     Direct 0    0          192.168.80.10   Vlan1
192.168.80.10/32    Direct 0    0          127.0.0.1       InLoop0

Direct Routing table Status : < Inactive>
Summary Count : 0

# Display brief information about static routes.

<Sysname> display ip routing-table protocol static
Public Routing Table : Static
Summary Count : 2

Static Routing table Status : < Active>
Summary Count :  0

Static Routing table Status : < Inactive>
Summary Count : 2
Destination/Mask    Proto   Pre  Cost       NextHop      Interface
1.2.3.0/24          Static  60   0          1.2.4.5      Vlan10
3.0.0.0/8           Static  60   0           2.2.2.2     Vlan1

For detailed description of the output, see Table 2.