hostname (OSPFv3 view)

Function

The hostname command enables the OSPFv3 dynamic hostname function.

The undo hostname command disables the OSPFv3 dynamic hostname function.

By default, the OSPFv3 dynamic hostname function is disabled.

Format

hostname [ host-name ]

undo hostname

Parameters

Parameter Description Value
host-name

Specifies an OSPFv3 hostname.

The value is a string of 1 to 255 characters.

Views

OSPFv3 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

To facilitate network management, configure dynamic hostnames to identify routers. To enable the OSPFv3 dynamic hostname function, run the hostname command.

Precautions

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

Example

# Configure OSPFv3 hostname BLR and enable the OSPFv3 dynamic hostname function.
<HUAWEI> system-view
[~HUAWEI] ospfv3 100
[*HUAWEI-ospfv3-100] hostname BLR
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >