< Home

display ospf hostname-table

Function

The display ospf hostname-table command displays information about OSPF dynamic hostnames.

Format

display ospf [ process-id ] hostname-table

Parameters

Parameter Description Value
process-id Specifies the ID of an OSPF process The value is an integer ranging from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To facilitate network management, configure dynamic hostnames to identify routers. After you run the hostname command to configure a dynamic hostname for a router, the router generates a router information (RI) Opaque LSA, from which you can check the mapping between the router ID and the dynamic hostname.

After all routers receive RI Opaque LSAs, you can run the display ospf hostname-table command on the router to check the mapping between the router ID and the dynamic hostname.

Example

# Display information about OSPF dynamic hostnames.

<sysname> display ospf hostname-table
        OSPF Process 1 with Router ID 10.1.1.1
                Hostname table information

                Area: 0.0.0.1

 Router ID            Hostname
 10.1.1.1              RTR_BLR
 10.1.1.1             RTR_SHANGHAI

                Area: 0.0.0.2

 Router ID            Hostname
 10.1.1.1              RTR_BLR
 10.3.1.1             RTR_DELHI

                AS-Scope

 Router ID            Hostname
 10.2.1.1             RTR_SHENZHEN
Table 1 Description of the display ospf hostname-table command output

Item

Description

Area

Flooded OSPF hostname in the area

Router ID

Router ID

Hostname

OSPF hostname

AS-Scope

Flooded hostname in the OSPF AS

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