86
display ospf routing
Syntax
display ospf [ process-id ] routing [ interface interface-type interface-number ] [ nexthop
nexthop-address ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
interface interface-type interface-number: Displays OSPF routing information advertised via the specified
interface.
nexthop nexthop-address: Displays OSPF routing information with the specified next hop.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see 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, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf routing to display OSPF routing information.
If no OSPF process is specified, the routing information of all OSPF processes is displayed.
Examples
# Display OSPF routing information.
<Sysname> display ospf routing
OSPF Process 1 with Router ID 192.168.1.2
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
192.168.1.0/24 1562 Stub 192.168.1.2 192.168.1.2 0.0.0.0
172.16.0.0/16 1563 Inter 192.168.1.1 192.168.1.1 0.0.0.0
Total Nets: 2
Intra Area: 1 Inter Area: 1 ASE: 0 NSSA: 0
Table 26 Command output
Field Descri