hostname
Syntax
hostname 没有主机名( ]
描述
Sets the host name of the switch.
The没有
form of this command sets the host name to the default value, which is西南itch
.
Command context
config
Parameters
-
-
Specifies the host name. The first character of the host name must be a letter or a number. Length: 1 to 32 characters. Default:
西南itch
权威
Administrators or local user group members with execution rights for this command.
Examples
Setting and showing the host name:
西南itch#show hostname西南itch switch#config西南itch(config)#hostname myswitchmyswitch(config)#show hostnamemyswitch
Setting the host name to the default value:
myswitch(config)#没有hostname西南itch(config)#