6-15
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter6 Administering the Swi tc h Configuring a System Name and Prompt
This section contains this configuration information:
Default System Name and Prompt Configuration, page 6-15
Configuring a System Name, page 6-15
Configuring a System Prompt, page 6-16
Understanding DNS, page 6-16
Default System Name and Prompt Configuration
The default switch system name and prompt is Switch.
Configuring a System Name
Beginning in privileged EXEC mode, follow these steps to manually configure a system name:
When you set the system name, it is also used as the system prompt. You can override the prompt setting
by using the prompt global configuration command.
To return to the default hostname, use the no hostname global configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 hostname name Manually configure a system name.
The default setting is switch.
The name must follow the rules for ARPANET host names. They must start
with a letter, end with a letter or digit, and have as interior characters only
letters, digits, and hyphens. Names can be up to 63 charact ers.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.