Telnet – Protocol developed in 1969, allow us to connect to the remote device using the command line interface, telnet protocol is the part of the TCP/IP suite.
To use the telnet, device should have telnet client installed and remote device should be configured to accept telnet connection so most of the devices like servers, router, switches, firewalls etc are configured to allow telnet connection.
We can use any telnet client to establish the connection; one of the famous free telnet clients is putty. Putty is used by many organizations as it is open source and it also works for the SSH connection.
In this packet tracer lab, we will set up a router for the telnet access. And then use the command prompt on the computer to test our telnet connection.
To telnet the router from our PC we will have to assign an IP address to our PC. After that, we will assign the IP address to the router interface which is connected with that PC.
To make the telnet work perfectly, our PC and router should be on the same network as PC and router is connected directly.
After assigning the IP addresses to both our devices, we have to enable the router for a telnet connection by configuring the VTY lines.
We will configure telnet lines 0-15 on the router, which will allow 16 simultaneous telnet connections to the router, this feature is helpful if more than one person wants to login to the device at the same time, this type of practice is common if we have many administrators to look after the device.
Once we have configured both the devices properly, we can try pinging the router from our PC to check the connectivity. If the router is responding to the ping command we can then establish a telnet connection from our PC’s command prompt.
Once the telnet connection is initiated successfully, we will be prompted with the password to access the router via a telnet connection.
An important thing, we have to configure the privileged mode password. That’s because it is not possible to access the privileged mode through a telnet connection if the password for our privileged mode is not configured. If you try to view the same by accessing the router via a telnet connection, you will see an error message saying ‘no password set’ when entering into the privileged exec mode without configuring the password.
Lab tasks
- Set pc0 IP address to 192.168.1.2/24
- Set interface fast Ethernet 0/0 IP address to 192.168.1.1/24
- Set privileged mode password to Cisco
- Enable telnet lines on router
- Test telnet connection via your PC