xStack® DGS-3420 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide
301
26-5 create host_name
Description
This command is used to create the static host name entry of the Switch.
Format
create host_name <name 255> <ipaddr>
Parameters
<name 255> - Enter the hostname used here. This name can be up to 255 characters long.
<ipaddr> - Enter the host IP address used here.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To create static host name “www.example.com”:
DGS-3420-28SC:admin# create host_name www.example.com 10.10.10.10
Command: create host_name www.example.com 10.10.10.10
Success.
DGS-3420-28SC:admin#
26-6 delete host_name
Description
This command is used to delete the static or dynamic host name entries of the Switch.
Format
delete host_name [<name 255> | all]
Parameters
<name 255> - Enter the hostname used here. This name can be up to 255 characters long.
all - Specifies that all the hostnames will be deleted.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To delete the static host name entry “www.example.com”: