The hostname command enables the OSPF dynamic hostname function.
The undo hostname command disables the OSPF dynamic hostname function.
By default, the OSPF dynamic hostname function is disabled.
Usage Scenario
To facilitate network management, configure dynamic hostnames to identify routers. After you run the hostname command to configure a dynamic hostname for a device, the device generates a router information (RI) Opaque LSA.
RI Opaque LSAs are generated based on the following rules:Prerequisites
The Opaque LSA capability has been enabled using the opaque-capability enable command.
Precautions
If you specify in this command, is advertised as the dynamic hostname. If no is specified in this command, the hostname specified in the sysname command is advertised as the dynamic hostname.