domain-name
Syntax
domain-name <NAME>
no domain-name [<NAME>]
Description
Configures the domain name of the switch.
The
no
form of this command removes the domain name from the configuration.
Command context
config
Parameters
<NAME>
Specifies the domain name to be assigned to the switch. The first character of the name must be a letter or a number. Maximum string length: 32.
Authority
Administrators
Examples
Setting and showing the domain name:
switch# show domain-name switch# configure terminal switch(config)# domain-name example.com switch(config)# do show domain-name example.com switch(config)#
Setting the domain name to the default value:
switch(config)# no domain-name switch(config)# do show domain-name switch(config)#