free lab · CertCrack Packet Tracer Labs · All labs

Lab 1: IOS Basics & Device Security

CCNA domain: Domain 1 · Network Fundamentals (device management basics also support Domain 6 · Security Fundamentals)  ·  Difficulty: Beginner  ·  Time: ~20 minutes  ·  Devices: 1 router (2911), 1 switch (2960), 1 PC

Every Cisco device leaves the box with a default name, no passwords and a configuration that vanishes when the power cycles. In this first lab you take a brand-new router from factory state to a managed, password-protected device: you will name it, protect privileged mode, lock the console line, post a legal banner, encrypt stored passwords and — the step beginners always forget — save your work so it survives a reload.

Your progress on this lab

0 of 5 tasks done — tick tasks off as you finish them; progress is saved in this browser.

What you need

Topology

R1ISR 2911SW12960PC0management PCG0/0Fa0/1Fa0/2console cable

The Ethernet links (R1 G0/0 to SW1, SW1 to PC0) give the topology a realistic shape, but this lab is about the management plane: you will work over the dashed console connection from PC0 into R1, exactly the way you would with a brand-new device on a bench. No IP addressing is needed yet — that is Lab 2.

DeviceInterfaceIP addressNotes
R1Console 0—Console cable from PC0 RS232 port — your management path for this lab
R1GigabitEthernet 0/0Not configuredEthernet link to SW1 Fa0/1; addressed in later labs
SW1FastEthernet 0/1—Link up to R1 G0/0
SW1FastEthernet 0/2—Link down to PC0
PC0RS232 + FastEthernet 0—Console port for the terminal session; Ethernet port cabled to SW1

Tasks

Build the topology first, then work through the tasks in order. Try each task from memory before you open the commands — that is how the skill sticks. Click Show commands only when you are stuck or to check your work.

Task 1 — Build the topology and open the router CLI

Drag one 2911 router, one 2960 switch and one PC onto the workspace. Cable them as shown: copper straight-through from R1 G0/0 to SW1 Fa0/1 and from SW1 Fa0/2 to PC0, plus a console cable from PC0's RS232 port to R1's Console port. Then click PC0 → Desktop → Terminal (default settings are fine), press Enter, and when the router offers the initial configuration dialog, answer no. You land at the Router> user EXEC prompt. Enter privileged EXEC mode:

enable

Task 2 — Set the hostname and a login banner

A hostname identifies the device in every prompt and log line, and a message-of-the-day (MOTD) banner is the legal warning shown to anyone who connects — before they log in. From privileged EXEC mode, enter global configuration mode, rename the router R1-CC, and set the banner. The # characters are delimiters: everything between them is the banner text, so do not use # inside the message itself. Watch the prompt change to R1-CC(config)# as proof the hostname took effect.

configure terminal
hostname R1-CC
banner motd #Authorized access only. CertCrack.com training lab - log out when finished.#
exit

Task 3 — Protect privileged mode and the console line

Two different doors need two different locks. The enable secret guards privileged EXEC mode (the mode that can change anything) and is stored as a hash. The console line password guards physical access through the console port — and it is only checked because the login command tells the line to demand it. Set the enable secret to Cl@ssSecret1 and the console password to Cons0lePass:

configure terminal
enable secret Cl@ssSecret1
line console 0
password Cons0lePass
login
exit
exit

Task 4 — Encrypt the passwords stored in the configuration

The console password you just set is stored in the running configuration as readable plain text — anyone who sees a show running-config output can read it. The service password-encryption command applies Cisco's Type 7 encryption to these stored passwords. It is weak encryption (treat it as obfuscation, not real secrecy — the enable secret's hash is the strong control), but it stops casual shoulder-surfing. Apply it, leave configuration mode, and check the result:

configure terminal
service password-encryption
exit
show running-config | include password

Task 5 — Save the configuration so it survives a reload

Everything you configured lives in the running-config in RAM. If the router reloads now, it all disappears. Saving copies it to the startup-config in NVRAM, which the router loads at boot. Run the copy command and press Enter to accept the default destination filename when prompted:

copy running-config startup-config
show startup-config

Verification

Run these checks from the device CLI (or a PC command prompt where noted). Your output should match the description — wording may vary slightly by Packet Tracer version.

Exam connection

Device management is woven through the whole CCNA 200-301 blueprint: Domain 1 expects you to configure a device out of the box, and Domain 6 (Security Fundamentals) tests exactly the controls in this lab — enable secret vs. line passwords, password encryption, and banners. Expect exam questions that show a show running-config snippet and ask what is wrong with it. Practise spotting those issues, then test yourself with the free 30-question CCNA practice sample and the CCNA 200-301 guidebook.

Turn lab skills into exam marks

You just used the CLI the way the CCNA exam expects — from memory, in the right mode, in the right order. The free sample shows you how those skills turn into exam questions.

Free CCNA SampleCCNA Guidebook

FAQ

What is the difference between enable secret and enable password?

Both guard privileged EXEC mode, but enable secret is stored as a cryptographic hash and always wins when both are set. The older enable password is stored weakly (plain text unless password encryption is on). Modern practice: use enable secret only — which is why this lab never sets an enable password.

Is service password-encryption actually secure?

Not really. It applies Cisco Type 7 encryption, which is reversible with widely available tools in seconds. Its real job is stopping casual viewing of passwords in configuration printouts. For genuine protection rely on the hashed enable secret, strong unique passwords, and limiting who can see configuration files.

Why did my configuration disappear after a reload?

Because changes are made to the running-config in RAM and are only loaded at boot from the startup-config in NVRAM. Until you run copy running-config startup-config, a reload, power cut or crash restores the old saved state. Saving early and often is a habit this lab is designed to build.

Back toAll Packet Tracer Labs Next lab →Lab 2: IPv4 Addressing & Subnetting

More free tools

Packet Tracer LabsAll 10 free CCNA hands-on labs Subnet CalculatorNetwork, broadcast & host ranges from any IP/CIDR Subnetting PracticeTimed subnet drills with worked solutions OSI Model QuizLearn the 7 layers and test yourself All Free ToolsThe CertCrack tools hub