The objective of this lab exercise is for you to learn and understand how to configure a switch to be accessed remotely via Telnet. By default, you can telnet to a switch but cannot log in if no password has been set.
Telnet access configuration is a fundamental skill. More often than not, switches are accessed and configured remotely via Telnet. As a Cisco engineer, as well as in the Cisco CCNA exam, you will be expected to know how to configure a switch to allow an administrator to log in via Telnet.
This lab is suitable for CCENT certification exam preparation.
This lab has a difficulty rating of 4/10.
When you are ready for your certification exam, you should complete this lab in no more than 10 minutes.
Please use the following topology to complete this lab exercise:
Configure hostnames on Sw1 and R1 as illustrated in the topology.
Create VLAN10 on Sw1 and assign port FastEthernet0/2 to this VLAN as an access port.
Configure IP address 10.0.0.1/30 on R1’s FastEthernet0/0 interface and IP address 10.0.0.2/30 on Sw1’s VLAN10 interface. Verify that R1 can ping Sw1, and vice versa.
Configure Telnet access to Sw1 using the local username howtonetwork and the password CISCO. The password is case-sensitive so take that into consideration in your configuration. Verify your configuration by creating a Telnet session from R1.
Configuration and Verification
For reference information on configuring hostnames, please refer to earlier labs.
For reference information on configuring and verifying VLANs, please refer to earlier labs.
For reference information on configuring IP interfaces, please refer to earlier labs.
Sw1#conf t Enter configuration commands, one per line. End with CTRL/Z. Sw1(config)#username howtonetwork password CISCO Sw1(config)#line vty 0 15 Sw1(config-line)#login local Sw1(config-line)#
NOTE: When you specify the login local command, the router will check for a username and password combination. If you just specify login, then you can reference a password added directly under the vty lines.
R1#telnet 10.0.0.2 Trying 10.0.0.2 ...Open User Access Verification Username: howtonetwork Password: Sw1>