10.1.4 Packet Tracer - Configure Initial Router Settings (Instructor Version)
Topology

10.1.4 Packet Tracer - Configure Initial Router Settings
Objectives
- Part 1: Verify the Default Router Configuration
- Part 2: Configure and Verify the Initial Router Configuration
- Part 3: Save the Running Configuration File
Background
In this activity, you will perform basic router configurations. You will secure access to the CLI and console port using encrypted and plain text passwords. You will also configure messages for users logging into the router. These banners also warn unauthorized users that access is prohibited. Finally, you will verify and save your running configuration.
Part 1: Verify the Default Router Configuration
Step 1: Establish a console connection to R1.
a. Choose a Console cable from the available connections.
b. Click PCA and select RS 232.
c. Click R1 and select Console.
d. Click PCA > Desktop tab > Terminal.
e. Click OK and press ENTER. You are now able to configure R1.
Step 2: Enter privileged mode and examine the current configuration.
You can access all the router commands from privileged EXEC mode. However, because many of the privileged commands configure operating parameters, privileged access should be password-protected to prevent unauthorized use.
a. Enter privileged EXEC mode by entering the enable command.
Copy
Router> enable
Router#
Notice that the prompt changed in the configuration to reflect privileged EXEC mode.
b. Enter the show running-config command:
Copy
Router# show running-config
Building configuration...
Current configuration : 1114 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX152459PZ
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface FastEthernet0/1/0
switchport mode access
switchport nonegotiate
shutdown
!
interface FastEthernet0/1/1
switchport mode access
switchport nonegotiate
shutdown
!
interface FastEthernet0/1/2
switchport mode access
switchport nonegotiate
shutdown
!
interface FastEthernet0/1/3
switchport mode access
switchport nonegotiate
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
no cdp run
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
c. Answer the following questions:
What is the router’s hostname? Router
How many Fast Ethernet interfaces does the Router have? 4
How many Gigabit Ethernet interfaces does the Router have? 2
How many Serial interfaces does the router have? 2
What is the range of values shown for the vty lines? 0 - 4
d. Display the current contents of NVRAM.
Copy
Router# show startup-config
startup-config is not present
Why does the router respond with the startup-config is not present message? It displays this message because the configuration file was not saved to NVRAM. Currently it is only located in RAM.
Part 2: Configure and Verify the Initial Router Configuration
To configure parameters on a router, you may be required to move between various configuration modes. Notice how the prompt changes as you navigate through the router.
Step 1: Configure the initial settings on R1.
Note: If you have difficulty remembering the commands, refer to the content for this topic. The commands are the same as you configured on a switch.
a. Configure R1 as the hostname.
Copy
Router(config)# hostname R1
b. Configure Message of the day text: Unauthorized access is strictly prohibited.
Copy
R1(config)# banner motd $Unauthorized access is strictly prohibited.$
c. Encrypt all plain text passwords.
Copy
R1(config)# service password-encryption
Use the following passwords:
-
Privileged EXEC, unencrypted: cisco
Copy
R1(config)# enable password cisco -
Privileged EXEC, encrypted: itsasecret
Copy
R1(config)# enable secret itsasecret -
Console: letmein
Copy
R1(config)# line console 0 R1(config-line)# password letmein R1(config-line)# login
Step 2: Verify the initial settings on R1.
a. Verify the initial settings by viewing the configuration for R1.
What command do you use?
Copy
R1# show running-config
b. Exit the current console session until you see the following message:
Copy
R1 con0 is now available
Press RETURN to get started.
c. Press ENTER; you should see the following message:
Copy
Unauthorized access is strictly prohibited.
User Access Verification
Password:
Why should every router have a message-of-the-day (MOTD) banner?
Every router should have a banner to warn unauthorized users that access is prohibited. MOTD Banners can also be used to send messages to network personnel (such as impending system shutdowns or who to contact for access).
If you are not prompted for a password before reaching the user EXEC prompt, what console line command did you forget to configure?
Copy
R1(config-line)# login
d. Enter the passwords necessary to return to privileged EXEC mode.
Why would the enable secret password allow access to the privileged EXEC mode and the enable password no longer be valid?
The enable secret password overrides the enable password. If both are configured on the router, you must enter the enable secret password to enter privileged EXEC mode.
If you configure any more passwords on the router, are they displayed in the configuration file as plain text or in encrypted form? Explain.
Encrypted. The service password-encryption command encrypts all current and future passwords.
Part 3: Save the Running Configuration File
Step 1: Save the configuration file to NVRAM.
a. You have configured the initial settings for R1. Now back up the running configuration file to NVRAM to ensure that the changes made are not lost if the system is rebooted or loses power.
Copy
R1# copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
What command did you enter to save the configuration to NVRAM? copy running-config startup-config
What is the shortest, unambiguous version of this command? copy r s
Instructor Note: This can vary by platform and IOS version.
Which command displays the contents of the NVRAM? show startup-config or show start
b. Verify that all of the parameters configured are recorded. If not, analyze the output and determine which commands were not done or were entered incorrectly. You can also click Check Results in the instruction window.
Step 2: Optional bonus: Save the startup configuration file to flash.
Although you will be learning more about managing the flash storage in a router in later chapters, you may be interested to know now that, as an added backup procedure, you can save your startup configuration file to flash. By default, the router still loads the startup configuration from NVRAM, but if NVRAM becomes corrupt, you can restore the startup configuration by copying it over from flash.
Complete the following steps to save the startup configuration to flash.
a. Examine the contents of flash using the show flash command:
Copy
R1# show flash
System flash directory:
File Length Name/status
3 33591768 c1900-universalk9-mz.SPA.151-4.M4.bin
2 28282 sigdef-category.xml
1 227537 sigdef-default.xml
[33847587 bytes used, 221896413 available, 255744000 total]
249856K bytes of processor board System flash (Read/Write)
How many files are currently stored in flash? 3
Which of these files would you guess is the IOS image?
c1900-universalk9-mz.SPA.151-4.M4.bin
Why do you think this file is the IOS image? Answers may vary, but two clues are the file length compared to the others and the .bin at the end of the file name.
b. Save the startup configuration file to flash using the following commands:
Copy
R1# copy startup-config flash
Destination filename [startup-config]?
The router prompts to store the file in flash using the name in brackets. If the answer is yes, then press ENTER; if not, type an appropriate name and press ENTER.
c. Use the show flash command to verify the startup configuration file is now stored in flash.
Copy
R1# show flash
System flash directory:
File Length Name/status
3 33591768 c1900-universalk9-mz.SPA.151-4.M4.bin
2 28282 sigdef-category.xml
1 227537 sigdef-default.xml
4 1279 startup-config
[33848866 bytes used, 221895134 available, 255744000 total]
249856K bytes of processor board System flash (Read/Write)
Device Configs - Final
ROUTER R1
Copy
! ==============================================================
!--- 10.1.4 Packet Tracer - Configure Initial Router Settings
!--- ANSWER SCRIPT FOR ROUTER R1
!--- Usage: copy this whole file and paste it into the R1 terminal (start at the Router> prompt). Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
! ==============================================================
enable
configure terminal
! --------------------------------------------------------------
!--- Part 2: Configure and Verify the Initial Router Configuration.
! --------------------------------------------------------------
!--- a. Configure R1 as the hostname.
hostname R1
!--- b. Configure the message of the day text: Unauthorized access is strictly prohibited.
banner motd $Unauthorized access is strictly prohibited.$
!--- c. 1) Privileged EXEC, unencrypted password: cisco.
enable password cisco
!--- c. 2) Privileged EXEC, encrypted password: itsasecret (the secret overrides the enable password).
enable secret itsasecret
!--- c. 3) Console password: letmein (login makes the console ask for it).
line console 0
password letmein
login
exit
!--- c. Encrypt all plain text passwords.
service password-encryption
end
! --------------------------------------------------------------
!--- Part 3: Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config
! --------------------------------------------------------------
!--- Part 3, Step 2 (optional bonus): back up the startup configuration to flash. (Press Enter to accept the default filename.)
! --------------------------------------------------------------
copy startup-config flash
! ==============================================================
!--- Verification:
!--- show running-config -> hostname R1, MOTD banner, encrypted passwords, console login
!--- show startup-config -> the configuration is saved in NVRAM
!--- show flash -> startup-config is now also stored in flash
!--- Note: after "exit", the console asks for "letmein"; then "enable" accepts only "itsasecret", not "cisco".
! ==============================================================
Download Packet Tracer (.pka) file:
10.1.4 Packet Tracer - Configure Initial Router Settings .PKA 175.65 KB 12110 downloads
...
Previous Lab
9.3.4 Packet Tracer – IPv6 Neighbor Discovery