Networking NVIDIA NVOS User Manual for InfiniBand Switches

Hostname

You can set a hostname for the switch. Make sure that the hostname is unique and descriptive. You can set the hostname dynamically through DHCP, or statically with NVUE. For the hostname commands, see Hostname Commands.

Hostname from DHCP

By default, DHCP is enabled: the switch receives the Hostname option in the DHCP response and sets its hostname.

By default, DHCP is enabled on both interfaces that can receive a hostname, and NVOS always uses the latest hostname that it receives from DHCP.
To stop an interface from updating the hostname through DHCP:

admin@nvos:~$ nv set interface eth0 ipv4 dhcp-client set-hostname disabled
admin@nvos:~$ nv config apply

Do not use a dot (.), an underscore (_), an apostrophe ('), or non-ASCII characters in the hostname.

The hostname must be a valid hostname as defined in RFC 1123, or an internationalized hostname as defined in RFC 5890, section 2.3.2.3.

Static Hostname

To set a static hostname:

admin@nvos:~$ nv set system hostname leaf01
admin@nvos:~$ nv config apply

The command prompt does not show the new hostname until you log out of the switch or start a new shell.

Last updated: