16.4.7 Lab - Configure Network Devices with SSH

pdf

School

Paradise Valley Community College *

*We aren’t endorsed by this school

Course

140AB

Subject

Computer Science

Date

Oct 30, 2023

Type

pdf

Pages

6

Uploaded by MinisterWorldHummingbird22

Report
10/21/23, 7:01 PM 16.4.7 Lab - Configure Netw ork Devices w ith SSH about:blank 1/6 Lab - Configure Network Devices with SSH Topology Addressing Table Device Interface IP Address Subnet Mask Default Gateway R1 G0/0/1 192.168.1.1 255.255.255.0 N/A S1 VLAN 1 192.168.1.11 255.255.255.0 192.168.1.1 PC-A NIC 192.168.1.3 255.255.255.0 192.168.1.1 Objectives Part 1: Configure Basic Device Settings Part 2: Configure the Router for SSH Access Part 3: Configure the Switch for SSH Access Part 4: SSH from the CLI on the Switch Background / Scenario In the past, Telnet was the most common network protocol used to remotely configure network devices. Telnet does not encrypt the information between the client and server. This allows a network sniffer to intercept passwords and configuration information. Secure Shell (SSH) is a network protocol that establishes a secure terminal emulation connection to a router or other networking device. SSH encrypts all information that passes over the network link and provides authentication of the remote computer. SSH is rapidly replacing Telnet as the remote login tool of choice for network professionals. SSH is most often used to log in to a remote device and execute commands. However, it can also transfer files using the associated Secure FTP (SFTP) or Secure Copy (SCP) protocols. The network devices that are communicating must be configured to support SSH in order for SSH to function. In this lab, you will enable the SSH server on a router and then connect to that router using a PC with an SSH client installed. On a local network, the connection is normally made using Ethernet and IP. Note : The routers used with CCNA hands-on labs are Cisco 4221 with Cisco IOS XE Release 16.9.4 (universalk9 image). The switches used in the labs are Cisco Catalyst 2960s with Cisco IOS Release 15.2(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 the lab for the correct interface identifiers. 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page of 1 6 www.netacad.com
10/21/23, 7:01 PM 16.4.7 Lab - Configure Netw ork Devices w ith SSH about:blank 2/6 Lab - Configure Network Devices with SSH 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 4221 with Cisco IOS XE Release 16.9.4 universal image or comparable) 1 Switch (Cisco 2960 with Cisco IOS Release 15.2(2) lanbasek9 image or comparable) 1 PC (Windows with a terminal emulation program, such as Tera Term) Console cables to configure the Cisco IOS devices via the console ports Ethernet cables as shown in the topology Instructions Part 1: Configure Basic Device Settings 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 1: Cable the network as shown in the topology. Step 2: Initialize and reload the router and switch. Step 3: Configure the router. Open configuration window a. Console into the router and enable privileged EXEC mode. b. Enter configuration mode. c. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered commands as though they were host names. d. Assign as the privileged EXEC encrypted password. class e. Assign as the console password and enable login. cisco f. Assign as the VTY password and enable login. cisco g. Encrypt the plaintext passwords. h. Create a banner that will warn anyone accessing the device that unauthorized access is prohibited. i. Configure and activate the G0/0/1 interface on the router using the information contained in the Addressing Table. j. Save the running configuration to the startup configuration file. Step 4: Configure PC-A. a. Configure PC-A with an IP address and subnet mask. b. Configure a default gateway for PC-A. Step 5: Verify network connectivity. Ping R1 from PC-A. If the ping fails, troubleshoot the connection. Close configuration window 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page of 2 6 www.netacad.com
10/21/23, 7:01 PM 16.4.7 Lab - Configure Netw ork Devices w ith SSH about:blank 3/6 Lab - Configure Network Devices with SSH Part 2: Configure the Router for SSH Access Using Telnet to connect to a network device is a security risk because all the information is transmitted in a clear text format. SSH encrypts the session data and provides device authentication, which is why SSH is recommended for remote connections. In Part 2, you will configure the router to accept SSH connections over the VTY lines. Step 1: Configure device authentication. The device name and domain are used as part of the crypto key when it is generated. Therefore, these names must be entered prior to issuing the command. crypto key Open configuration window a. Configure device name. b. Configure the domain for the device. Step 2: Configure the encryption key method. Step 3: Configure a local database username. Configure a username using as the username and as the password. admin Adm1nP@55 Step 4: Enable SSH on the VTY lines. a. Enable Telnet and SSH on the inbound VTY lines using the command. transport input b. Change the login method to use the local database for user verification. Step 5: Save the running configuration to the startup configuration file. Step 6: Establish an SSH connection to the router. a. Start Tera Term from PC-A. b. Establish an SSH session to R1. Use the username and password . You admin Adm1nP@55 should be able to establish an SSH session with R1. Close configuration window Part 3: Configure the Switch for SSH Access In Part 3, you will configure the switch to accept SSH connections. After the switch has been configured, establish an SSH session using Tera Term. Step 1: Configure the basic settings on the switch. Open configuration window a. Console into the switch and enable privileged EXEC mode. b. Enter configuration mode. c. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered commands as though they were host names. d. Assign as the privileged EXEC encrypted password. class e. Assign as the console password and enable login. cisco f. Assign as the VTY password and enable login. cisco g. Encrypt the plain text passwords. h. Create a banner that will warn anyone accessing the device that unauthorized access is prohibited. 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page of 3 6 www.netacad.com
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
10/21/23, 7:01 PM 16.4.7 Lab - Configure Netw ork Devices w ith SSH about:blank 4/6 Lab - Configure Network Devices with SSH i. Configure and activate the VLAN 1 interface on the switch according to the Addressing Table. j. Save the running configuration to the startup configuration file. Step 2: Configure the switch for SSH connectivity. Use the same commands that you used to configure SSH on the router in Part 2 to configure SSH for the switch. a. Configure the device name as listed in the Addressing Table. b. Configure the domain for the device. c. Configure the encryption key method. d. Configure a local database username. e. Enable Telnet and SSH on the VTY lines. f. Change the login method to use the local database for user verification. Step 3: Establish an SSH connection to the switch. Start Tera Term from PC-A, and then SSH to the SVI interface on S1. Question: Are you able to establish an SSH session with the switch? Yes. SSH can be configured on a switch using the same commands that were used on the router Type your answers here. Close configuration window Part 4: SSH From the CLI on the Switch The SSH client is built into the Cisco IOS and can be run from the CLI. In Part 4, you will SSH to the router from the CLI on the switch. Step 1: View the parameters available for the Cisco IOS SSH client. Open configuration window Use the question mark ( ) to display the parameter options available with the command. ? ssh S1# ssh ? -c Select encryption algorithm -l Log in using this user name -m Select HMAC algorithm -o Specify options -p Connect to this port -v Specify SSH Protocol Version -vrf Specify vrf name WORD IP address or hostname of a remote system Step 2: SSH to R1 from S1. a. You must use the option when you SSH to R1. This allows you to log in as user –l admin admin . When prompted, enter for the password. Adm1nP@55 S1# ssh -l admin 192.168.1.1 Password: Authorized Users Only! R1> 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page of 4 6 www.netacad.com
10/21/23, 7:01 PM 16.4.7 Lab - Configure Netw ork Devices w ith SSH about:blank 5/6 Lab - Configure Network Devices with SSH b. You can return to S1 without closing the SSH session to R1 by pressing . Ctrl + Shift + 6 Release the keys and press . The switch privileged EXEC prompt displays. Ctrl + Shift + 6 x R1> S1# c. To return to the SSH session on R1, press Enter on a blank CLI line. You may need to press Enter a second time to see the router CLI prompt. S1# [Resuming connection 1 to 192.168.1.1 ... ] R1> d. To end the SSH session on R1, type at the router prompt. exit R1# exit [Connection to 192.168.1.1 closed by foreign host] S1# Question: What versions of SSH are supported from the CLI? 1 Protocol Version 1 2 Protocol Version 2 Type your answers here. Close configuration window Reflection Question How would you provide multiple users, each with their own username, access to a network device? Username command Type your answers here. Router Interface Summary Table Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2 1800 Fast 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) 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page of 5 6 www.netacad.com
10/21/23, 7:01 PM 16.4.7 Lab - Configure Netw ork Devices w ith SSH about:blank 6/6 Lab - Configure Network Devices with SSH Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2 1900 Gigabit 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) 2801 Fast 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) 2811 Fast 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) 2900 Gigabit 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) 4221 Gigabit Ethernet 0/0/0 (G0/0/0) Gigabit Ethernet 0/0/1 (G0/0/1) Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1) 4300 Gigabit Ethernet 0/0/0 (G0/0/0) Gigabit Ethernet 0/0/1 (G0/0/1) Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/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 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. End of document 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page of 6 6 www.netacad.com
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: If the efficiency of a coal-fired electrical generating plant is 35%, then what do we mean when
Q: = highly effective explosive.
Q: Suppose you are writing a C++ function that has three alternative approaches for accomplishing its…
Q: 1. As shown in the following figure, liquid water flows in and out of a rigid tank with one inlet…
Q: Suppose we add a fixed amount of money into our bank account at the beginning of every year. Modify…
Q: The Industrial Revolution impact on women joining the workforce
Q: . If f(x) = x + x +1 and g(x) = x - 3, find the following. (a) f+g (b) f - g (c) fog (d) g°f (e)…
Q: Two pieces of tape are stuck together, and then ripped apart, forming an electric dipole with one…
Q: 3. Find the probability of choosing a heart and then an ace from a standard deck of cards with…
Q: An army that overhauls ground mobile radar systems is interested in improving its processes. One…
Q: What is the hybridization and geometry of a carbon-centered radical? sp²-hybridized, tetrahedral…
Q: altered gene function. on PCOS (polycystic ovarian syndrome
Q: A company designs fish tanks of various sizes. Because of shipping restrictions, a fish tank's…
Q: The figure below is a plot of vapor pressure versus temperature for dichlorodifluoromethane, CCl2…
Q: The Chattanooga Furniture store gets an average of 72 customers per shift. Marilyn​ Helms, the​…
Q: An individual is nearsighted; his near point is 15.0 cm and his far point is 47.0 cm. (a) What lens…
Q: 1. A coin is tossed 10 times and lands heads up 6 times and tails up 4 times. Are these results…
Q: A company orders 250 units of a product each time the inventory drops below 175 units. If the…
Q: 4. A tank is full of water and open at the top as shown in the figure. There is a frictionless…
Q: Find fractional notation for the infinite sum. (These are geometric series.) 0.1313131313...
Q: A baker starts a bakery with a fixed cost of $25,000. The cost of making a pie is $11.50. If the…
Q: K Find the first 4 terms of the recursively defined sequence. a₁ = 3, an+1 = 1 + a₂ = (Simplify your…