display ospf routing

Function

The display ospf migp-routing command displays information about the OSPF Multicast IGP (MIGP) table information.

The display ospf routing command displays the OSPF routing table.

Format

display ospf [ process-id ] routing router-id [ router-id ] [ age { min-value min-age-value | max-value max-age-value } * ]

display ospf [ process-id ] routing [ ip-address [ mask | mask-length ] ] [ [ interface { interface-name | interface-type interface-number } ] [ nexthop nexthop-address ] ] * [ age { min-value min-age-value | max-value max-age-value } * ]

display ospf [ process-id ] migp-routing [ ip-address [ mask | mask-length ] ] [ [ interface { interface-name | interface-type interface-number } ] [ nexthop nexthop-address ] ] * [ age { min-value min-age-value | max-value max-age-value } * ]

Parameters

Parameter Description Value
process-id

Specifies the ID of an OSPF process.

The value is an integer ranging from 1 to 4294967295.

router-id router-id

Specifies the router ID of a destination router.

The value is in dotted decimal notation.

age

Displays the LSAs that meet the age filtering rule.

-

min-value min-age-value

Displays information about only LSAs with the age value greater than or equal to the min-age-value value.

The value is an integer ranging from 0 to 4294967295.

max-value max-age-value

Displays information only about LSAs with the age value less than or equal to the max-age-value value.

The value is an integer ranging from 0 to 4294967295.

ip-address

Specifies a destination IP address.

The value is in dotted decimal notation.

mask

Specifies a subnet mask.

The value is in dotted decimal notation.

mask-length

Specifies the mask length.

The value is an integer ranging from 0 to 32.

interface interface-type interface-number

Specifies the type or the number of an interface.

-

interface-type

Specifies the interface type.

-

interface-number

Specifies the interface number.

-

nexthop nexthop-address

Specifies the next hop address.

The value is in dotted decimal notation.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
ospf read

Usage Guidelines

Usage Scenario

When multicast and an IGP Shortcut-enabled MPLS TE tunnel are configured on a network, the outbound interface of the route calculated by an IGP may not be a physical interface but a TE tunnel interface. The TE tunnel interface on the Device sends multicast Join packets over a unicast route to the multicast source address. The multicast Join packets are transparent to the Device from which the TE tunnel passes. As a result, the Device cannot generate multicast forwarding entries.

To resolve the problem, run the local-mt enable command to enable OSPF local MT so that a multicast routing table can be generated for multicast packet forwarding.

After local MT is enabled, if the outbound interface of a calculated route is an IGP Shortcut-enabled TE tunnel interface, the RM module creates an MIGP routing table for the multicast protocol,calculates a physical outbound interface for the route, and adds the route to the MIGP routing table.

The display ospf migp-routing command displays information about the MIGP routing table.

To view the OSPF routing table, run the display ospf routing command.

The command output can help you troubleshoot OSPF faults.

To query the next hop of a device, run the display ospf routing device-id command. If a segment routing next hop exists, it is displayed. If the device is in the segment routing anti-micro loop state, the anti-micro loop next hop and anti-micro loop label stack are displayed. In the anti-micro loop state, the segment routing next hop is not displayed. The segment routing next hop is displayed only after the device exits the anti-micro loop state.

Precautions

  • Local MT takes effect only on the OSPF process of a public network instance.
  • Local MT does not support Forwarding Adjacency (FA).

Example

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

# Display information about routes whose next hop address is 10.0.1.1 in the MIGP routing table.
<HUAWEI> display ospf migp-routing nexthop 10.0.1.1
Flags: A - Added to URT, S - Secondary route

          OSPF Process 1 with Router ID 2.2.2.2, 

Destination    : 1.1.1.1/32
AdverRouter    : 1.1.1.1                  Area       : 0.0.0.1
Cost           : 10                       Type       : Stub
NextHop        : 10.0.1.1                 Interface  : GE0/1/16.1
Priority       : Medium
Flags          : A/-

Destination    : 10.0.0.1/32
AdverRouter    : 1.1.1.1                  Tag        : 1
Cost           : 11                       Type       : Type1
NextHop        : 10.0.1.1                 Interface  : GE0/1/16.1
Priority       : Medium
Flags          : A/-
# Display information about the MIGP routing table.
<HUAWEI> display ospf migp-routing
OSPF Process 1 with Router ID 2.2.2.2
                   MIGP Routing Tables

 Routing for Network
 Destination        Cost  Type       NextHop         AdvRouter       Area
 192.168.3.0/24     4     Stub       10.0.1.1        5.5.5.5         0.0.0.0
 4.4.4.4/32         3     Stub       10.0.1.1        4.4.4.4         0.0.0.0
 5.5.5.5/32         4     Stub       10.0.1.1        5.5.5.5         0.0.0.0
 10.0.3.0/24        3     Transit    10.0.1.1        5.5.5.5         0.0.0.0

 Total Nets: 4
 Intra Area: 4  Inter Area: 0  ASE: 0  NSSA: 0
# Display the routes to a specified OSPF router after SR is configured.
<HUAWEI> display ospf routing router-id 4.4.4.4
          OSPF Process 1 with Router ID 2.2.2.2
 Destination     : 4.4.4.4         Route Type          : Intra-area
 Area            : 0.0.0.0         AdvRouter           : 4.4.4.4
 Type            : Normal          Age                 : 00:00:12
 URT Cost        : 13
 NextHop         : 10.1.1.1        Interface           : GE0/1/0
 SRULoopNexthop  : 10.1.1.1        Interface           : GE0/1/0
 SRULoopLsIndex  : 2000000001
 SRULoopStack    : {32789, 32789}
# Display the routes to a specified OSPF router.
<HUAWEI> display ospf routing router-id 10.1.1.1
OSPF Process 1 with Router ID 10.1.1.1

 Destination    : 10.1.1.2             Route Type          : Intra-area
 Area           : 0.0.0.1              AdvRouter           : 10.1.1.2
 Type           : ASBR                 Age                 : 00:00:33
 URT Cost       : 1
 NextHop        : 10.1.2.2             Interface           : GE0/1/0
 Backup NextHop : 10.1.3.3             Backup Interface    : GE0/1/16
 Backup Type    : LFA LINK             Tunnel Destination  : 3.3.3.3           
 Tunnel Type    : LDP
# Display the routes to a specified destination address.
<HUAWEI> display ospf routing 10.1.1.1
OSPF Process 1 with Router ID 1.1.1.1

 Destination    : 10.1.1.0/24
 AdverRouter    : 10.1.1.1             Tag                 : 1
 Cost           : 1                    Type                : Type2
 NextHop        : 10.1.2.2             Interface           : GE0/1/0
 Priority       : High                 Age                 : 00h00m00s
 Backup NextHop : 10.1.3.3             Backup Interface    : GE0/1/1
 Backup Type    : LFA LINK             Tunnel Destination  : 3.3.3.3           
 Tunnel Type    : LDP
# Display the OSPF routing table.
<HUAWEI> display ospf routing
OSPF Process 1 with Router ID 4.4.4.4

                   Routing Tables

 Routing for Network
 Destination        Cost      Type           NextHop         AdvRouter       Area
 172.16.1.0/24      4         Inter-area     192.168.2.1     2.2.2.2         0.0.0.2
                    4         Inter-area     192.168.2.3     2.2.2.2         0.0.0.2
 192.168.0.0/24     2         Inter-area     192.168.2.1     2.2.2.2         0.0.0.2
 
 Routing for ASEs
 Destination        Cost      Type       Tag      NextHop         AdvRouter
 10.0.0.0/8        1         Type2      1        192.168.2.1     1.1.1.1
 
 Total Nets: 4
 Intra Area: 1  Inter Area: 2  ASE: 1  NSSA: 0
Table 1 Description of the display ospf routing command output
Item Description
Destination

Destination network.

Area

Area ID.

Cost

Cost of the route to the destination address.

Type

Type of the destination network:

  • Inter-area: indicates inter-area routes.
  • Stub: indicates the routes advertised by router LSAs, which correspond to the direct routes of non-broadcast and non-NBMA networks.
  • Transit: indicates the routes advertised by network LSAs.
  • Direct: direct routes.
NextHop

Next hop address to the destination address.

Interface

Outbound interface of the route.

Priority

OSPF route priority:

  • Critical.
  • High.
  • Medium.
  • Low.
Flags

Routing information flag.

  • A - Added to URT: The route has been added to the unicast routing table.
  • S - Secondary route: The route is a secondary route.
Tag

Route tag.

AdvRouter

Advertising router.

Total Nets

Total number of networks in an area, between areas, in ASE areas, and in NSSAs.

Intra Area

Total number of intra-area networks (stub networks and transit networks).

Inter Area

Total number of inter-area networks.

Route Type

Route type.

Age

Route age.

URT Cost

Cost of the route.

SRULoopNexthop

SR anti-micro loop next hop.

SRULoopStack

Index of a label stack of SR anti-micro loop.

Backup NextHop

IP address of the next backup hop.

Backup Interface

Outbound interface of the next backup route.

Backup Type

Backup type:

  • LFA LINK: LFA link protect for OSPF.
  • LFA LINK-NODE: LFA link node protect for OSPF.
  • REMOTE LFA LINK: Remote LFA link protect for OSPF.
  • REMOTE LFA LINK-NODE: Remote LFA link node protect for OSPF.
  • TI-LFA LINK-NODE: TI-LFAlink node protect for OSPF.
Tunnel Destination

Destination of the Tunnel.

Tunnel Type

Type of the Tunnel, only support LDP now.

ASE

Total number of networks in the ASE area.

NSSA

Total number of networks in the NSSA.

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