set host

Purpose

Configures a name for the device, also known as a host name, or displays the current host name for the device.

Required permissions

For Digi products with two or more users, permissions must be set to set permissions s-host=read to display the current host name, and set permissions s-host=rw to display and set the host name. See set permissions for details on setting user permissions for commands.

Syntax

Configure a host name for the device

set host name=name

Display the current host name

set host

Options

name=name

The name for the device. If provided, this host name is placed in the DHCP Option 12 field when the device is configured as a DHCP client (by set network) and requests IP configuration from a DHCP server. This is an optional setting that is only used when DHCP is enabled.

The name can be up to 32 characters long and can contain any alphanumeric characters, and can also include the _ (underscore) and - (hyphen) characters.

Examples

#> set host name=hq_gateway

See also