Sie sind auf Seite 1von 20

Lab 5

Router Startup and Initial


Configuration

CCNA Lab Guide L5-1


© Global Knowledge Training LLC
Router Startup and Initial Configuration

Objectives
In this lab you will connect to the routers in your pod in the remote lab and put a basic
configuration on them using the initial configuration dialog. You will then add some
commands to improve the usability of the router CLI

The switch in your pod already has a configuration. The routers start this lab powered off,
with their startup configuration files erased. Therefore when the routers boot up they are
unable to find a configuration in NVRAM; they start up the initial configuration dialog
which allows basic configuration tasks to be performed in an interactive, question-based
mode.

The objectives for this lab are:

 Connect to the routers in the remote lab.

 Use the initial configuration dialog to put a basic configuration on each router.

 Improve the usability of the CLI on your routers.

Important Substitute your pod number for x and the router number for y in all instructions
and commands.

The passwords configured on the PxSW at this point are:

 console: cisco

 enable secret: san-fran

 virtual terminal username: netadmin, password: netadmin

L5-2 CCNA Lab Guide


©Global Knowledge Training LLC
Router Startup and Initial Configuration

Lab Topology
Fa0/0 192.168.xx.2/24

S1/0 192.168.x.102/27 DCE

PxR2
S1/1 192.168.x.202/27
Student PC
Core Router
PxSW 192.168.x.200/27
VLAN 1 192.168.xx.10/24
Fa0/2
Frame Relay
Fa0/1
Fa0/10
Fa0/11 Fa0/12 Core Switch

S1/1 192.168.x.201/27

Virtual Access-PC-x PxR1


192.168.xx.250/24
S1/0 192.168.x.101/27 DTE

To Core Switch Fa0/0 192.168.xx.1/24

TFTP Server
10.1.1.1

Warning If ‘Tarantella’ is used in this Lab it will be necessary to switch the firewall mode. You
can access Tarantella by changing the firewall mode from “standard” to “tarantella” on
the upper left of the web browser screen.

CCNA Lab Guide L5-3


© Global Knowledge Training LLC
Router Startup and Initial Configuration

Note If you receive a ‘Web Services Failure’ notice when attempting to access the
xAccessPC it is quite possible that you clicked on the ‘X’ at the top of the
AccessPC window rather than using the ‘Start/Logout’ option. If you attempt to
reconnect you will get the ‘Web Services Failure’ message in the Tarantella
window. To fix this problem you must logout of the labs system, close your
browser, dismiss the Tarantella/SGD task tray icon and re-launch your browser,
delete cookies, and log back in to the labs

If you receive a ‘Cannot connect to lab hardware’ notice when attempting to


connect to a pod device and no XTerm window displays, the console port to this
device may be busy. Check with other users on the pod so make sure no one
else is connected. To verify this, switch the firewall mode to ‘Standard’ and then
use the ‘Default Telnet / Hyperterm’ option, you should get the message that the
line is busy and to use the ‘Clear Line’ feature to gain access.

Note Some of the information displayed in this Lab from screen captures may differ
from the information that the student sees displayed from commands entered on
the Remote Labs equipment. The information that was captured for the lab
guide was taken from a 2600 series router and some of the Remote Lab
equipment uses a 2800 series router. The commands used and the
functionality of the lab is the same but the output information may be a little
different.

An example of this would be a SHOW VERSION command. The 2600 would


display the following:

Cisco IOS Software, C2600 Software (C2600-ADVIPSERVICESK9-M),


Version 12.4(5b), RELEASE SOFTWARE (fc2)

Whereas a 2800 would display

Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9_IVS-M),


Version 12.4(15)T3, RELEASE SOFTWARE (fc1)

L5-4 CCNA Lab Guide


©Global Knowledge Training LLC
Router Startup and Initial Configuration

Command List
The following table lists the commands used in this lab, in alphabetical order.

Cisco IOS Commands Used In This Lab


Command Description
#configure terminal Enters global configuration mode.
#copy running-config startup- Saves the running configuration (in RAM) into
config the startup configuration (in NVRAM).
>enable Enters the EXEC privileged mode.
(config-line)#exec-timeout 60 Sets the inactivity time allowed before a
[0] session is automatically logged out to the
specified number of minutes (and optionally
number of seconds).
(config)#exit Exit the configuration mode or submode and
go up one level.
(config-line)#history size Sets the number of lines in the command
100 history buffer. Two separate buffers are used,
one for EXEC mode commands and one for
configuration mode commands.
(config)#[no] ip domain- ip domain lookup enables the IP DNS-based
lookup host name-to-address translation for unknown
commands. The no form of this command
disables the use of DNS for unknown
commands.
(config)#line console 0 Enters configuration mode for line console 0.
(config)#line vty 0 4 Enters virtual terminal configuration mode for
lines 0 through 4.
(config-line)#logging Synchronizes unsolicited messages and
synchronous output from debug commands with the CLI
input.
#setup Enters the initial configuration dialog mode.
#show running-config Displays the running configuration (in RAM).
#show terminal Displays the current settings for the terminal.

CCNA Lab Guide L5-5


© Global Knowledge Training LLC
Router Startup and Initial Configuration

Procedure (for each router)


Connect to your PxRy console
1. To connect to your pod, start up Internet Explorer, go to www.remotelabs.com and login
to your pod using the username and password that has been provided to you.

2. Similar to connecting to your switch, click on the PxRy link (where x is your pod number
and y is the router number; for example, if you are in Pod 3, R1’s link will be P3R1).
The link will expand and you will see a set of links below it.

Note Start with either of your routers; you will configure both of your routers in this
lab.

3. To connect to your PxRy console click on the “Xterm Telnet” link. If a security warning
appears, click “Run”.

L5-6 CCNA Lab Guide


©Global Knowledge Training LLC
Router Startup and Initial Configuration

4. Another security warning may appear, warning of an unrecognized security certificate.


Click “Accept”.

5. The terminal window that appears will ask for a password. Enter your e-lab password
and press <Enter>.

Important Remember that this is the password that used to login to www.remotelabs.com.
You will need to use this password to log into the terminal server every time you
start up a connection to one of the devices in your pod.

CCNA Lab Guide L5-7


© Global Knowledge Training LLC
Router Startup and Initial Configuration

Start up your router


6. The device appears to be unresponsive because it is currently turned OFF. Power on the
router by clicking the “Power On” link from the PxRy menu on your
www.remotelabs.com screen. The router will then boot; observe the messages in the
terminal window.
System Bootstrap, Version 12.2(8r) [cmong 8r], RELEASE SOFTWARE
(fc1)
Copyright (c) 2003 by cisco Systems, Inc.
C2600 platform with 131072 Kbytes of main memory

program load complete, entry point: 0x80008000, size: 0x1af43d0


Self decompressing the image :
###########################################################

<output omitted>

Use the initial configuration dialog


7. Notice the system prompted you to enter the initial configuration dialog (this dialog is
also called setup mode):
--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]:

Note To repeat the prompt, press <Enter>.

8. Enter setup mode by typing “y” or “yes” and pressing <Enter>. Throughout the
configuration dialog shown here, your responses are shown in bold.
% Please answer 'yes' or 'no'.
Would you like to enter the initial configuration dialog?
[yes/no]:yes

L5-8 CCNA Lab Guide


©Global Knowledge Training LLC
Router Startup and Initial Configuration

Note If you make a mistake during the initial configuration dialog and want to restart,
press <Control-C> to exit and then go to privileged mode and enter the setup
command.

Router>enable
Router#setup
--- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]:

Enter setup mode by typing “y” or “yes” and pressing <Enter>.

9. Notice that the default answer/setting to queries is in square brackets; press <Enter> to
accept the default, or type another response after the colon and then press <Enter>.

Decline entering basic management setup by entering “n” or “no”. You may opt to
review interfaces by answering “yes” to the interface summary question.
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.

Basic management setup configures only enough connectivity


for management of the system, extended setup will ask you
to configure each interface on the system

Would you like to enter basic management setup? [yes/no]: no

First, would you like to see the current interface summary? [yes]:

Any interface listed with OK? value "NO" does not have a valid
configuration

Interface IP-Address OK? Method Status Protocol


FastEthernet0/0 unassigned NO unset up up
BRI0/0 unassigned NO unset up down
BRI0/0:1 unassigned YES unset down down
BRI0/0:2 unassigned YES unset down down
FastEthernet0/1 unassigned NO unset up up
Serial1/0 unassigned NO unset down down
Serial1/1 unassigned NO unset up down
Serial1/2 unassigned NO unset down down
Serial1/3 unassigned NO unset down down

Note The number and type of interfaces on your router may be different than the
example shown.

CCNA Lab Guide L5-9


© Global Knowledge Training LLC
Router Startup and Initial Configuration

10. Enter PxRy (where x is your pod number and y is the router number) as the name for
your router. For example, the name of Pod 2 R1 is P2R1.
Configuring global parameters:

Enter host name [Router]: PxRy

Important Remember to type your pod number instead of x and the router number instead
of y!

11. Next, you will be asked to enter passwords for the router; use the passwords in the
following table:

Router passwords
Password Description Password Usage
enable secret san-fran Privileged access (encrypted)
enable password notused Privileged access (not encrypted; this
password is deprecated)
virtual terminal password router Telnet

Note All passwords are case sensitive; enter them exactly as shown.

The enable secret password is used to control access to privileged mode. It is saved in
the configuration in a hashed (encrypted) form, unlike the enable password. If both
passwords are specified, the enable secret overrides the enable password (thus the clever
enable password in the above table); note that in the initial configuration dialog you must
enter both of these passwords. The virtual terminal password controls telnet access.
The enable secret is a password used to protect access to
privileged EXEC and configuration modes. This password, after
entered, becomes encrypted in the configuration.
Enter enable secret: san-fran

The enable password is used when you do not specify an


enable secret password, with some older software versions, and
some boot images.
Enter enable password: notused

The virtual terminal password is used to protect


access to the router over a network interface.
Enter virtual terminal password: router
12. SNMP is not covered in this course; answer “no” to the configure SNMP question.
Configure SNMP Network Management? [yes]: no

L5-10 CCNA Lab Guide


©Global Knowledge Training LLC
Router Startup and Initial Configuration

13. The router will ask if you want to configure IP; answer yes. Answer no when asked if
you want to configure the RIP routing protocol (RIP is configured in a later lab).
Configure IP? [yes]: yes
Configure RIP routing? [yes]: no
14. The router will ask if you want to configure CLNS and bridging; answer no to both
questions.
Configure CLNS? [no]: no
Configure bridging? [no]: no

If the router you are configuring has an ISDN BRI interface, you will be asked to chose a
switch-type; type 0 if asked this question.
BRI interface needs isdn switch-type to be configured
Valid switch types are :
[0] none..........Only if you don't want to
configure BRI.
[1] basic-1tr6....1TR6 switch type for Germany
[2] basic-5ess....AT&T 5ESS switch type for the
US/Canada
[3] basic-dms100..Northern DMS-100 switch type for
US/Canada
[4] basic-net3....NET3 switch type for UK and
Europe
[5] basic-ni......National ISDN switch type
[6] basic-qsig....QSIG switch type
[7] basic-ts013...TS013 switch type for Australia
[8] ntt...........NTT switch type for Japan
[9] vn3...........VN3 and VN4 switch types for
France
Choose ISDN BRI Switch Type [2]: 0
15. Asynchronous interfaces are not setup in this course. Choose “no” if asked to configure
async lines.
Async lines accept incoming modems calls. If you will have
users dialing in via modems, configure these lines.

Configure Async lines? [yes]: no


16. The router will now prompt to configure each of its other interfaces, starting with the
FastEthernet 0/0 interface.

Configure the FastEthernet 0/0 interface. Accept the default connector. Type “yes” when
asked if you want the interface to operate in full-duplex mode. Use the IP address
192.168.xx.y (where x is your pod number and y is the router number); for example, for
Pod 2 R1 the address is 192.168.22.1. Use the default subnet mask 255.255.255.0.
Do you want to configure FastEthernet0/0 interface? [yes]: yes
Use the 100 Base-TX (RJ-45) connector? [yes]:
CCNA Lab Guide L5-11
© Global Knowledge Training LLC
Router Startup and Initial Configuration

Operate in full-duplex mode? [no]: yes


Configure IP on this interface? [yes]:
IP address for this interface: 192.168.xx.y
Subnet mask for this interface [255.255.255.0] :
Class C network is 192.168.xx.0, 24 subnet bits; mask is /24

Important Remember to type your pod number for each x and the router number for the y!

17. Do not configure any of the other the interfaces at this time.
Do you want to configure FastEthernet0/1 interface? [yes]: no

Do you want to configure Serial1/0 interface? [yes]: no

Do you want to configure Serial1/1 interface? [yes]: no

Do you want to configure Serial1/2 interface? [yes]: no

Do you want to configure Serial1/3 interface? [yes]: no


18. When asked if you would like to go through the Autosecure configuration, answer no.
Would you like to go through AutoSecure configuration? [yes]: no
AutoSecure dialog can be started later using "auto secure" CLI
19. Finally, the initial configuration dialog (setup) is complete. The router will propose a
configuration based on your input.

The router may display several pages of output. Pressing <Enter> will display one line at
a time; pressing the <space bar> will move forward a page at a time.
The following configuration command script was created:

hostname PxRy
enable secret 5 $1$1cOg$JPY9bTbxWTB9wnQYS4PhP0
enable password notused
line vty 0 4
password router
no snmp-server
!
ip routing
no clns routing
no bridge 1
isdn switch-type none
!
interface FastEthernet0/0
media-type 100BaseX
full-duplex
ip address 192.168.xx.y 255.255.255.0
no mop enabled

L5-12 CCNA Lab Guide


©Global Knowledge Training LLC
Router Startup and Initial Configuration

!
interface FastEthernet0/1
shutdown
no ip address
!
interface Serial1/0
shutdown
no ip address
!
interface Serial1/1
shutdown
no ip address
!
interface Serial1/2
shutdown
no ip address
!
interface Serial1/3
shutdown
no ip address
dialer-list 1 protocol ip permit
!
end

20. If you are satisfied with your configuration, select “2” at the prompt to save the
configuration to NVRAM and exit the initial configuration dialog.
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.

Enter your selection [2]: 2


21. If you make a mistake during the initial configuration dialog and want to restart, press
<Control-C> to exit and then go to privileged mode and enter the setup command.
Router>enable
Router#setup
--- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]:

Note Enter setup mode by typing “y” or “yes” and pressing <Enter>.

CCNA Lab Guide L5-13


© Global Knowledge Training LLC
Router Startup and Initial Configuration

Improve the usability of the CLI


22. Enter privileged mode; enter the enable secret password (san-fran) when prompted.
PxRy>enable
Password: san-fran
PxRy#
23. To improve the usability of the CLI you will increase the number of lines in the history
buffer, increase the inactivity timer on the console port and stop the attempted name
resolution of mistyped commands. First, display the current terminal settings.
PxRy#show terminal
Line 0, Location: "", Type: ""
Length: 24 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600, no parity, 2 stopbits, 8 databits
Status: PSI Enabled, Ready, Active, Automore On
Capabilities: none
Modem state: Ready
Modem hardware state: CTS* noDSR DTR RTS
Special Chars: Escape Hold Stop Start Disconnect Activation
^^x none - - none
Timeouts: Idle EXEC Idle Session Modem Answer Session
Dispatch
00:10:00 never none
not set
Idle Session Disconnect Warning
never
Login-sequence User Response
00:00:30
Autoselect Initial Wait
not set
Modem type is unknown.
Session limit is not set.
Time since activation: 00:00:40
Editing is enabled.
History is enabled, history size is 20.
DNS resolution in show commands is enabled
Full user help is disabled
Allowed input transports are none.
Allowed output transports are pad telnet rlogin mop v120 ssh.
Preferred transport is telnet.
No output characters are padded
No special data dispatching characters
PxRy#

L5-14 CCNA Lab Guide


©Global Knowledge Training LLC
Router Startup and Initial Configuration

Notice that the default idle timeout is 10 minutes and the default history buffer size is 20.
You could change the history size for this terminal session using the EXEC #terminal
history size command; however you would have to retype this command next time you
login to the router. Instead, the history size can be changed under the console or virtual
terminal line configuration so that it is always set to the new value.

24. Change the history size for the console line to 100.
PxRy#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PxRy(config)#line con 0
PxRy(config-line)#history size 100
25. Change the EXEC inactivity timer on the console line from its default of 10 minutes to 60
minutes.
PxRy(config-line)#exec-timeout 60
26. Synchronize unsolicited messages and output from debug commands with the CLI input
on the console line.
PxRy(config-line)#logging synchronous
PxRy(config-line)#exit

27. The router has five virtual terminal lines by default: vty 0 4. Put the same on all of the
virtual terminal lines: change the history size to 100, change the EXEC inactivity timer to
60 minutes, and synchronize messages.
PxRy(config)#line vty 0 4
PxRy(config-line)#history size 100
PxRy(config-line)#exec-timeout 60
PxRy(config-line)#logging synchronous
PxRy(config-line)#exit
28. Disable DNS lookup for entries on the command line.
PxRy(config)#no ip domain-lookup
29. Exit configuration mode. Use the Up arrow to recall the show terminal command and
press <Enter>. Notice the parameters that have changed.
PxRy(config)#exit
PxRy#
*Mar 8 00:37:54.130: %SYS-5-CONFIG_I: Configured from console by
console
PxRy#show terminal
Line 0, Location: "", Type: ""
Length: 24 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600, no parity, 2 stopbits, 8 databits
Status: PSI Enabled, Ready, Active, Automore On
Capabilities: none
Modem state: Ready
CCNA Lab Guide L5-15
© Global Knowledge Training LLC
Router Startup and Initial Configuration

Modem hardware state: CTS* noDSR DTR RTS


Special Chars: Escape Hold Stop Start Disconnect Activation
^^x none - - none
Timeouts: Idle EXEC Idle Session Modem Answer Session
Dispatch
01:00:00 never none
not set
Idle Session Disconnect Warning
never
Login-sequence User Response
00:00:30
Autoselect Initial Wait
not set
Modem type is unknown.
Session limit is not set.
Time since activation: 00:12:14
Editing is enabled.
History is enabled, history size is 100.
DNS resolution in show commands is enabled
Full user help is disabled
Allowed input transports are none.
Allowed output transports are pad telnet rlogin mop v120 ssh.
Preferred transport is telnet.
No output characters are padded
No special data dispatching characters
PxRy#
30. Save your PxRy configuration to startup-config.
PxRy#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
PxRy#

Configure the other router in your pod


31. If you have not already done so, do all of the steps in this lab for the other router. Both
PxR1 and PxR2 should be configured.

STOP You have completed this lab, you may choose to explore the
information that you entered in more detail before the moving on to another
lab. Good job!

L5-16 CCNA Lab Guide


©Global Knowledge Training LLC
Router Startup and Initial Configuration

Completed Configuration
Your configuration should be similar to the example below. Notice that the enable secret
is saved in hashed form.

PxRy#show running-config
Building configuration...

Current configuration : 1267 bytes


!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname PxRy
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$1cOg$JPY9bTbxWTB9wnQYS4PhP0
enable password notused
!
no aaa new-model
!
resource policy
!
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!

CCNA Lab Guide L5-17


© Global Knowledge Training LLC
Router Startup and Initial Configuration

!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.xx.y 255.255.255.0
speed auto
full-duplex
no mop enabled
!
interface BRI0/0
no ip address
encapsulation hdlc
shutdown
isdn point-to-point-setup
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
no ip address
shutdown
!
interface Serial1/1
no ip address
shutdown
!
interface Serial1/2
no ip address
shutdown
no dce-terminal-timing-enable
!
interface Serial1/3
no ip address
shutdown
no dce-terminal-timing-enable
!
!
!
ip http server
no ip http secure-server
!
dialer-list 1 protocol ip permit
L5-18 CCNA Lab Guide
©Global Knowledge Training LLC
Router Startup and Initial Configuration

!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 60 0
logging synchronous
history size 100
line aux 0
line vty 0 4
exec-timeout 60 0
password router
logging synchronous
login
history size 100
!
!
end

PxRy#

CCNA Lab Guide L5-19


© Global Knowledge Training LLC
Router Startup and Initial Configuration

L5-20 CCNA Lab Guide


©Global Knowledge Training LLC

Das könnte Ihnen auch gefallen