2.1.2 Hostname Resolution
hostname
Syntax Description
Default
Modes/Context
History
Role
Example
Related Commands
Note
hostname <hostname>
no hostname
Sets a static system hostname.
The no form of the command clears the system hostname.
hostname
Default hostname
Config
3.1.0000
admin
switch (config) # hostname my-switch-hostname
my-switch-hostname (config) #
show hosts
•
Hostname may contain letters, numbers, periods ('.'), and hyphens ('-'), in any combination
•
Hostname can't contain other letters, such as '%', '_', etc.
•
Hostname can't begin with a hyphen.
•
Hostname can be 1-63 characters long
A free-form string.
Mellanox Technologies
Rev 1.6.2
43