Cisco 3725 Software Configuration Guide - Page 62

Configuring the Host Name and Password

Page 62 highlights

Configuring the Host Name and Password Chapter 3 Configuring with the Command-Line Interface 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 Step 1 Router> enable Password: password Router# Step 2 Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# Step 3 Router(config)# hostname Router Router(config)# Step 4 Router(config)# enable secret guessme Step 5 Router(config)# line con 0 Purpose Enter enable mode. Enter the password. You have entered enable mode when the prompt changes to Router#. Enter global configuration mode. You have entered global configuration mode when the prompt changes to Router(config)#. Change the name of the router to a meaningful name. Substitute your host name for Router. 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. Enter line configuration mode to configure the console port. When you enter line configuration mode, the prompt changes to Router(config-line)#. Router(config-line)# exec-timeout 0 0 Prevent the router's EXEC facility from timing out if you do not type any information on the console screen for an extended period. Router(config-line)# exit Router(config)# Exit back to global configuration mode. Verifying the Host Name and Password To verify that you configured the correct host name and password: Step 1 Enter the show config command: Router(config)# show config Software Configuration Guide for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers 3-2 OL-1957-04

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

3-2
Software Configuration Guide for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
OL-1957-04
Chapter 3
Configuring with the Command-Line Interface
Configuring the Host Name and Password
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.
Verifying the Host Name and Password
To verify that you configured the correct host name and password:
Step 1
Enter the
show config
command:
Router(config)#
show config
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.