Appendix A
Cisco IOS CLI for Initial Configuration
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Step 3
hostname name
Example:
Router(config)# hostname myrouter
Step 4
Verify that the router prompt displays your new
hostname.
Example:
myrouter(config)#
Step 5
end
Example:
myrouter# end
Configuring the Enable and Enable Secret Passwords
To provide an additional layer of security, particularly for passwords that cross the network or are stored
on a TFTP server, you can use either the enable password command or enable secret command. Both
commands accomplish the same thing—they allow you to establish an encrypted password that users
must enter to access privileged EXEC (enable) mode.
We recommend that you use the enable secret command because it uses an improved encryption
algorithm. Use the enable password command only if you boot an older image of the Cisco IOS
software or if you boot older boot ROMs that do not recognize the enable secret command.
For more information, see the "Configuring Passwords and Privileges" chapter in Cisco IOS Security
Configuration Guide. Also see the
Security on Cisco Routers
Restrictions
If you configure the enable secret command, it takes precedence over the enable password command;
the two commands cannot be in effect simultaneously.
Cisco 3900 Series, Cisco 2900 Series, and Cisco 1900 Series Integrated Services Routers Generation 2 Software Configuration Guide
Purpose
Enables privileged EXEC mode.
Enter your password if prompted.
•
Enters global configuration mode.
Specifies or modifies the hostname for the network server.
—
(Optional) Returns to privileged EXEC mode.
Cisco IOS Password Encryption Facts
tech note.
Using the Cisco IOS CLI to Perform Initial Configuration
tech note and the
Improving
A-3