Configuring an OSPFv3 Hostname

Compared with router IDs, OSPFv3 hostnames are easier to memorize. Therefore, using hostnames to identify routers can facilitate network management.

Usage Scenario

To facilitate network management, configure dynamic OSPFv3 hostnames to identify routers.

Either dynamic or static OSPFv3 hostnames can be configured. In dynamic mode, a hostname can be configured on and advertised by the local device. The mapping between the local device's router ID and hostname can then be queried on a remote router that successfully learns this dynamic hostname.

Pre-configuration Tasks

Before configuring a hostname, complete the following tasks:

  • Configure an IP address for each interface to ensure that neighboring routers can use the IP addresses to communicate with each other.
  • Configure basic OSPFv3 functions.

Procedure

  • Configure a dynamic OSPFv3 hostname.
    1. Run system-view

      The system view is displayed.

    2. Run ospfv3 [ process-id ]

      The OSPFv3 process view is displayed.

    3. Run hostname host-name

      An OSPFv3 dynamic hostname is configured.

      If you specify host-name in the hostname command, host-name is advertised as the dynamic hostname. If no host-name is specified in the hostname command, the hostname specified in the sysname command is advertised as the dynamic hostname.

    4. Run commit

      The configuration is committed.

Verifying the Configuration

Run the following command to check dynamic OSPFv3 hostnames:

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