← Back to list

CCNA Studies Sessions — Lab 1:Back to Basics

This lab will test your ability to configure basic settings such as hostname, motd banner, encrypted passwords, and terminal options on a…

Enzo Lucchesi · 2025-06-05 16:50 · 0 claps · 3.1 min read
#ccna-labs
Open on Medium ↗
Wiki topics: GEN · Genomics & Sequencing

CCNA Studies Sessions — Lab 1:Back to Basics

This lab will test your ability to configure basic settings such as hostname, motd banner, encrypted passwords, and terminal options on a Cisco Catalyst 2960 switch emulated in Packet Tracer 8.1.1.

  1. Use the local laptop connect to the switch console and configure the laptop with the right parameters for console access to the Cisco 2960 Catalyst switch
  1. Configure Switch hostname as LOCAL-SWITCH
  1. Configure the message of the day as “Unauthorized access is forbidden”
  1. Configure the password for privileged mode access as “cisco”. The password must be md5 encrypted
  1. Configure password encryption on the switch using the global configuration command
  1. Configure CONSOLE access with the following settings :
  • Login enabled
  • Password : ciscoconsole
  • History size : 15 commands
  • Timeout : 6'45'’
  • Synchronous logging
  1. Configure TELNET access with the following settings :
  • Login enabled
  • Password : ciscotelnet
  • History size : 15 commands
  • Timeout : 8'20'’
  • Synchronous logging
  1. Configure the IP address of the switch as 192.168.1.2/24 and it’s default gateway IP (192.168.1.1).
  1. Test telnet connectivity from the Remote Laptop using the telnet client.

Step 1:

Click Laptop-PT and Launch Terminal

Click Laptop-PT and Launch Terminal

Ensure 8N1. Baud 9600. Press Connect

Ensure 8N1. Baud 9600. Press Connect

Success

Success

Step 2:

Let’s start with changing the hostname — for this we will issue:

Switch>en
Switch#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname LOCAL-SWITCH
LOCAL-SWITCH(config)#

Step 3:

We need to now set up a banner motd.

LOCAL-SWITCH(config)#banner motd "Unauthorized access is forbidden!!"

Step 4:

Time to config privileged exec mode. Note: we use enable secret and NOT enable password.

LOCAL-SWITCH(config)#enable secret cisco

Step 5:

Time to set up password encryption:

LOCAL-SWITCH(config)#service password-encryption 

We can confirm passwords are encrypted while staying in global config mode by issuing:

LOCAL-SWITCH(config)#do show run
Building configuration...

Current configuration : 1181 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname LOCAL-SWITCH
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
 --More-- 

Step 6:

Time to set up console! We will do this by issuing:

LOCAL-SWITCH(config)#line console 0
LOCAL-SWITCH(config-line)#pass
LOCAL-SWITCH(config-line)#password ciscoconsole
LOCAL-SWITCH(config-line)#histor
LOCAL-SWITCH(config-line)#history si
LOCAL-SWITCH(config-line)#history size 15
LOCAL-SWITCH(config-line)#exe
LOCAL-SWITCH(config-line)#exec-timeout 645
LOCAL-SWITCH(config-line)#logg
LOCAL-SWITCH(config-line)#logging syn
LOCAL-SWITCH(config-line)#logging synchronous 
LOCAL-SWITCH(config-line)#login

And now to set up Telnet!

LOCAL-SWITCH(config-line)#line vty 0 15
LOCAL-SWITCH(config-line)#pass
LOCAL-SWITCH(config-line)#password ciscotelnet
LOCAL-SWITCH(config-line)#hist
LOCAL-SWITCH(config-line)#history size
LOCAL-SWITCH(config-line)#history size 15
LOCAL-SWITCH(config-line)#exe
LOCAL-SWITCH(config-line)#exec-timeout 820
LOCAL-SWITCH(config-line)#logg
LOCAL-SWITCH(config-line)#logging syn
LOCAL-SWITCH(config-line)#logging synchronous 
LOCAL-SWITCH(config-line)#login

We are almost in the homestretch

Step 7:

Time to configure the ip-address of the switch:

LOCAL-SWITCH(config)#interface vlan 1
LOCAL-SWITCH(config-if)#ip address 192.168.1.2 255.255.255.0
LOCAL-SWITCH(config-if)#no shut

LOCAL-SWITCH(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

LOCAL-SWITCH(config-if)#exit
LOCAL-SWITCH(config)#ip def
LOCAL-SWITCH(config)#ip default-gateway 192.168.1.1
LOCAL-SWITCH(config)#do copy run start

Step 8:

Time to test! Please ensure you go to the other laptop that is not “local” as it will not have an ip address.

Success!

Success!


메타데이터
post_id
bb30e22e622d
slug
ccna-studies-sessions-lab-1-back-to-basics-bb30e22e622d
url
https://medium.com/@enzo.d.lucchesi/ccna-studies-sessions-lab-1-back-to-basics-bb30e22e622d
canonical_url
https://medium.com/@enzo.d.lucchesi/ccna-studies-sessions-lab-1-back-to-basics-bb30e22e622d
author_url
https://medium.com/@enzo.d.lucchesi
status
ok
fetched_at
2026-07-10 06:45:42