Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
2.8 Network device management access

Lab11.2.4.7ccna111 min

11.2.4.7 Lab - Examining Telnet and SSH in Wireshark

Topology

Router R1 connects directly from its G0/1 interface to PC-A. There is nothing else in this topology.

Addressing Table

DeviceInterfaceIP AddressSubnet MaskDefault Gateway
R1G0/1192.168.1.1255.255.255.0N/A
DeviceInterfaceIP AddressSubnet MaskDefault Gateway
PC-ANIC192.168.1.3255.255.255.0192.168.1.1

Objectives

  • Part 1: Configure the Devices for SSH Access

  • Part 2: Examine a Telnet Session with Wireshark

  • Part 3: Examine a SSH Session with Wireshark

Background / Scenario

In this lab, you will configure a router to accept SSH connectivity, and use Wireshark to capture and view Telnet and SSH sessions. This will demonstrate the importance of encryption with SSH.

Note: The routers used with CCNA hands-on labs are Cisco 1941 Integrated Services Routers (ISRs) with Cisco IOS Release 15.2(4)M3 (universalk9 image). The switches used are Cisco Catalyst 2960s with Cisco IOS Release 15.0(2) (lanbasek9 image). Other routers, switches, and Cisco IOS versions can be used. Depending on the model and Cisco IOS version, the commands available and the output produced might vary from what is shown in the labs. Refer to the Router Interface Summary Table at the end of this lab for the correct interface identifiers.

Note: Make sure that the routers and switches have been erased and have no startup configurations. If you are unsure, contact your instructor.

Required Resources

1 Router (Cisco 1941 with Cisco IOS Release 15.2(4)M3 universal image or comparable) 1 PC (Windows 7, 8, or 10 with terminal emulation program, such as Tera Term, and Wireshark installed) Console cables to configure the Cisco IOS devices via the console ports Ethernet cables as shown in the topology

Part 1: Configure the Devices for SSH Access

In Part 1, you will set up the network topology and configure basic settings, such as the interface IP addresses, device access, and passwords on the router.

Step 3: Configure the basic settings on the router.

a. Console into the router and enable privileged EXEC mode.

b. Enter configuration mode.

c. Configure the device name as listed in the Addressing Table.

d. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered commands as though they were host names.

e. Assign class as the privileged EXEC encrypted password.

f. Assign cisco as the console password and enable login.

g. Assign cisco as the VTY password and enable login.

h. Encrypt the plain text passwords.

i. Create a banner that will warn anyone accessing the device that unauthorized access is prohibited.

j. Configure and activate the G0/1 interface using the information contained in the Addressing Table.

Step 4: Configure R1 for SSH access.

a. Configure the domain for the device.

R1(config)# ip domain-name ccna-lab.com

b. Configure the encryption key method.

R1(config)# crypto key generate rsa modulus 1024

c. Configure a local database username.

R1(config)# username admin privilege 15 secret adminpass

d. Enable Telnet and SSH on the VTY lines.

R1(config)# line vty 0 4
R1(config-line)# transport input telnet ssh

e. Change the login method to use the local database for user verification.

R1(config-line)# login local
R1(config-line)# end

Step 6: Configure PC-A.

a. Configure PC-A with an IP address and subnet mask.

b. Configure a default gateway for PC-A.

Step 7: Verify network connectivity.

Ping R1 from PC-A. If the ping fails, troubleshoot the connection.

Part 2: Examine a Telnet Session with Wireshark

In Part 2, you will use Wireshark to capture and view the transmitted data of a Telnet session on the router. You will use Tera Term to telnet to R1, sign in, and then issue the show run command on the router.

Note: If a Telnet/SSH client software package is not installed on your PC, you must install one before continuing. Two popular freeware Telnet/SSH packages are Tera Term (http://download.cnet.com/TeraTerm/3000-20432_4-75766675.html) and PuTTY (www.putty.org).

Note: Telnet is not available from the command prompt in Windows 7, by default. To enable Telnet for use in the command prompt window, click Start > Control Panel > Programs > Programs and Features > Turn Windows features on or off. Click the Telnet Client check box, and then click OK.

Step 1: Capture data.

a. Start Wireshark.

b. Start capturing data on the LAN interface.

Note: If you are unable to start the capture on the LAN interface, you may need to open Wireshark using the Run as Administrator option.

Step 2: Start a Telnet session to the router.

a. Open Tera Term and select the Telnet Service radio button and in the Host field, enter 192.168.1.1.

The Tera Term: New connection dialog, set up for the Telnet half of the lab. TCP/IP is the selected radio button and Serial is greyed out. Host holds 192.168.1.1 and History is ticked. Under Service, Telnet is the selected option, with SSH and Other unselected. TCP port# reads 23. SSH version shows SSH2 but is greyed out because Telnet is selected. Protocol reads UNSPEC. The buttons are OK, Cancel and Help.

What is the default TCP port for Telnet sessions? ______

b. At the Username: prompt, enter admin and at the Password: prompt, enter adminpass. These prompts are generated because you configured the VTY lines to use the local database with the login local command.

A Tera Term VT window whose title bar reads 192.168.1.1:23 - Tera Term VT, so this is the Telnet session on port 23. Its menu bar carries File, Edit, Setup, Control, Window and Help. The router has printed its login banner between two rules of forty one asterisks each: Unauthorized Access is Prohibited! Below it the router asks for credentials with User Access Verification and then Username:, and the session is waiting there.

c. Issue the show run command.

R1# show run

d. Enter exit to exit the Telnet session and out of Tera Term.

R1# exit

Step 5: Use the Follow TCP Stream feature in Wireshark to view the Telnet session.

a. Right-click one of the Telnet lines in the Packet list section of Wireshark, and from the drop-down list, select Follow TCP Stream.

b. The Follow TCP Stream window displays the data for your Telnet session with the router. The entire session is displayed in clear text, including your password. Notice that the username and show run command that you entered are displayed with duplicate characters. This is caused by the echo setting in Telnet to allow you to view the characters that you type on the screen.

The Wireshark Follow TCP Stream window for the Telnet session, titled Follow TCP Stream (tcp.stream eq 1), file wireshark_D4A31D... The whole conversation is readable because Telnet sends in clear text. It shows User Access Verification, then a Username: line in which the Telnet option bytes appear as runs of dots and the terminal type xterm is visible, followed by the user name echoed back a character at a time so it reads aaddmmiinn, that is admin doubled. The next line reads Password: adminpass in plain text. Then the command prompt line, likewise doubled, reads R1#sshh rruunn, which is sh run typed at R1. The router answers Building configuration..., then Current configuration : 2039 bytes, then an exclamation mark, version 12.4 and service timestamps debug datetime msec, and the window is scrolled no further. Two values are circled in red in the source: the echoed user name and the password with the command under it. The foot of the window reads 39 client pkts, 35 server pkts, 55 turns, with the dropdown on Entire conversation (3302 bytes), shown as ASCII, Stream 1. The exact number of dots standing for unprintable option bytes on the Username line cannot be counted reliably in the scan, so that run is reproduced only approximately.

c. After you have finished reviewing your Telnet session in the Follow TCP Stream window, click Close.

Part 3: Examine an SSH Session with Wireshark

In Part 4, you will use the Tera Term software to establish an SSH session with the router. Wireshark will be used to capture and view the data of this SSH session.

Step 2: Start an SSH session on the router.

a. Open Tera Term and enter the G0/1 interface IP address of R1 in the Host: field of the Tera Term: New Connection window. Ensure that the SSH radio button is selected and then click OK to connect to the router.

The Tera Term: New connection dialog, now set up for the SSH half of the lab. TCP/IP is the selected radio button and Serial is greyed out. Host holds 192.168.1.1 and History is ticked. Under Service, SSH is the selected option, with Telnet and Other unselected. TCP port# reads 22, not 23. SSH version reads SSH2 and is now active rather than greyed out. Protocol reads UNSPEC. The buttons are OK, Cancel and Help.

What is the default TCP port used for SSH sessions? ______

b. The first time you establish an SSH session to a device, a SECURITY WARNING is generated to let you know that you have not connected to this device before. This message is part of the authentication process. Read the security warning and click Continue.

The Tera Term SECURITY WARNING dialog, shown the first time the student connects to the router over SSH. It reads: There is no entry for the server "192.168.1.1" in your list of known hosts. The machine you have contacted may be a hostile machine pretending to be the server. If you choose to add this machine to the known hosts list and continue, then you will not receive this warning again. Below that: The server's host key fingerprint is, with Fingerprint hash algorithm offering MD5 and SHA256 and SHA256 selected. The fingerprint reads SHA256:2Y2C4RmPeO100D5cOQhsmE7+UYAIxEt7cCukjU/L+bo. Under it is the randomart box, labelled RSA 1024 at the top and SHA256 at the bottom. The checkbox Add this machine and its key to the known hosts list is ticked, and the buttons are Continue and Disconnect. The randomart is transcribed as closely as the scan allows; the spacing inside it should be treated as approximate.

c. In the SSH Authentication window, enter admin for the username and adminpass for the passphrase. Click OK to sign into the router.

The Tera Term SSH Authentication dialog. The top line reads Logging in to 192.168.1.1, and under it, Authentication required. The User name box holds admin and the Passphrase box holds a masked entry shown as a row of dots. Remember password in memory is ticked; Forward agent is not. Of the five login methods offered, Use plain password to log in is the one selected. The others, none selected, are Use RSA/DSA/ECDSA/ED25519 key to log in with its Private key file box, Use rhosts to log in (SSH1) with its Local user name and Host private key file boxes (the whole row greyed out), Use challenge/response to log in (keyboard-interactive), and Use Pageant to log in. The buttons at the foot are OK and Disconnect.

d. You have established an SSH session on the router. The Tera Term software looks very similar to a command window. At the command prompt, issue the show run command.

A Tera Term VT window whose title bar reads 192.168.1.1:22 - Tera Term VT, so this is the SSH session on port 22. The router's login banner is printed between two rules of forty one asterisks each: Unauthorized Access is Prohibited! Because the user name and password were given in the SSH Authentication dialog rather than typed here, the session arrives straight at the privileged prompt, and the student has typed R1#show run.

e. Exit the SSH session by issuing the exit command.

R1# exit

Step 5: Use the Follow TCP Stream feature in Wireshark to view the SSH session.

a. Right-click one of the SSHv2 lines in the Packet list section of Wireshark, and in the drop- down list, select the Follow TCP Stream option.

b. Examine the Follow TCP Stream window of your SSH session. The data has been encrypted and is unreadable. Compare the data in your SSH session to the data of your Telnet session.

The Wireshark Follow TCP Stream window for the SSH session, titled Follow TCP Stream (tcp.stream eq 0), file wireshark_D4A31D... The first two lines are the only readable ones: the server announces SSH-2.0-Cisco-1.25 and the client answers SSH-2.0-TTSSH/2.83 Win32. Everything after that is the key exchange, so the pane shows runs of unprintable bytes rendered as dots mixed with the algorithm name lists: diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1, diffie-hellman-group1-sha1, ssh-rsa, then cipher lists of aes128-ctr, aes192-ctr, aes256-ctr, aes128-cbc, 3des-cbc, aes192-cbc and aes256-cbc offered twice, then hmac-sha1 and hmac-sha1-96 twice, then none and none for compression. The client's own offer follows, with ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group18-sha512, diffie-hellman-group16-sha512, diffie-hellman-group14-sha256, diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1 and diffie-hellman-group1-sha1 for key exchange, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-ed25519, ssh-rsa and ssh-dss for host keys, and aes256-gcm@openssh.com, aes128-gcm@openssh.com, camellia256-ctr, aes256-ctr, camellia256-cbc, aes256-cbc, camellia192-ctr, aes192-ctr and camellia192- (the line is cut off at the window edge) for ciphers. No user name, password or command appears anywhere, which is the point: unlike the Telnet stream, this one is encrypted. The foot of the window reads Packet 13. 33 client pkts, 37 server pkts, 56 turns. Click to select, with the dropdown on Entire conversation (8777 bytes), shown as ASCII, Stream 0. The exact number of dots standing for unprintable bytes cannot be counted reliably in the scan, so those runs are reproduced only approximately.

Why is SSH preferred over Telnet for remote connections? ______

Similar to Telnet, SSH is used to access and execute commands on a remote system. However, the SSH protocol allows users to communicate with remote systems securely by encrypting the communications. This prevents any sensitive information, such as usernames and passwords, from being captured during the transmission. By using public-key cryptography to support communication between remote computers, SSH eliminates the need for initial private key exchange between the communicating parties. With SSH, the private key is never sent, as it uses a pair of keys (public and private) for encryption. Messages encrypted with a public key can only be decrypted with the corresponding private key. Because the private key never leaves the endpoints, the system is inherently secure.

When a user establishes an SSH connection for the first time, the SSH client program exchanges the public keys. The user is trusting the security of the network during the key exchange. When the user clicks Continue in the SSH client, the user is accepting the remote system into the list of known hosts.

c. After examining your SSH session, click Close.

d. Close Wireshark.

Reflection

How would you provide multiple users, each with his or her own username, access to a network device? ______

Router Interface Summary Table

Router Interface Summary
Router ModelEthernet Interface #1Ethernet Interface #2Serial Interface #1Serial Interface #2
1800Fast Ethernet 0/0 (F0/0)Fast Ethernet 0/1 (F0/1)Serial 0/0/0 (S0/0/0)Serial 0/0/1 (S0/0/1)
1900Gigabit Ethernet 0/0 (G0/0)Gigabit Ethernet 0/1 (G0/1)Serial 0/0/0 (S0/0/0)Serial 0/0/1 (S0/0/1)
2801Fast Ethernet 0/0 (F0/0)Fast Ethernet 0/1 (F0/1)Serial 0/1/0 (S0/1/0)Serial 0/1/1 (S0/1/1)
2811Fast Ethernet 0/0 (F0/0)Fast Ethernet 0/1 (F0/1)Serial 0/0/0 (S0/0/0)Serial 0/0/1 (S0/0/1)
2900Gigabit Ethernet 0/0 (G0/0)Gigabit Ethernet 0/1 (G0/1)Serial 0/0/0 (S0/0/0)Serial 0/0/1 (S0/0/1)
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many interfaces the router has. There is no way to effectively list all the combinations of configurations for each router class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device. The table does not include any other type of interface, even
Router Interface Summary
though a specific router may contain one. An example of this might be an ISDN BRI interface. The string
in parenthesis is the legal abbreviation that can be used in Cisco IOS commands to represent the
interface.

Device Configs - Final

Router R1

service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 10
!
no ip domain lookup
ip domain name ccna-lab.com
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
username admin privilege 15 secret 4 QHjxdsVkjtoP7VxKIcPsLdTiMIvyLkyjT1HbmYxZigc
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
description Connection to S1-F0/5.
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
clock rate 2000000
!
interface Serial0/0/1
no ip address
shutdown
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
control-plane
!
!
banner motd ^C
****************************************
Unauthorized Access is Prohibited!
****************************************
^C
!
line con 0
password 7 00071A150754
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0
password 7 110A1016141D
login local
transport input telnet ssh
line vty 1 4
login local
transport input telnet ssh
!
scheduler allocate 20000 1000
!
end

Your answers

Nothing here is marked. Most of these answers are read off your own machine, so there is no right value to compare them against; they are kept so your work survives.

Check your answersEvery question in this lab, answered. Take your own capture first.→

Source: itexamanswers.net