3-2
Software Configuration Guide for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
OL-1957-03
Chapter 3
Configuring with the Command-Line Interface
Configuring the Host Name and Password
This chapter does not describe every configuration possible—only a small portion of the most commonly
used configuration procedures. For advanced configuration topics, refer to the Cisco IOS configuration
guide and command reference publications. These publications are available on the Documentation
CD-ROM that came with your router, on the World Wide Web from Cisco’s home page, or you can order
printed copies separately.
Note
If you skipped the previous chapter,
Chapter 2, “Using the Setup Command Facility,”
and you have
never configured a Cisco router, go back to that chapter and read it now. The chapter contains
important information you need to successfully configure your router.
Configuring the Host Name and Password
One of the first configuration tasks you might want to do is configure the host name and set an encrypted
password. Configuring a host name allows you to distinguish multiple Cisco routers from each other.
Setting an encrypted password allows you to prevent unauthorized configuration changes.
Command
Purpose
Step 1
Router> enable
Password: password
Router#
Enter enable mode. Enter the password.
You have entered enable mode when the prompt
changes to
Router#
.
Step 2
Router# configure terminal
Enter configuration commands, one per line.
End with CNTL/Z.
Router(config)#
Enter global configuration mode. You have
entered global configuration mode when the
prompt changes to
Router(config)#.
Step 3
Router(config)# hostname Router
Router(config)#
Change the name of the router to a meaningful
name. Substitute your host name for
Router
.
Step 4
Router(config)# enable secret guessme
Enter an enable secret password. This password
provides access to privileged EXEC mode. When
a user types enable at the EXEC prompt
(
Router>
), they must enter the enable secret
password to gain access to configuration mode.
Substitute your enable secret for
guessme
.
Step 5
Router(config)# line con 0
Router(config-line)# exec-timeout 0 0
Router(config-line)# exit
Router(config)#
Enter line configuration mode to configure the
console port. When you enter line configuration
mode, the prompt changes to
Router(config-line)#
.
Prevent the router’s EXEC facility from timing out
if you do not type any information on the console
screen for an extended period.
Exit back to global configuration mode.