Telnet
Telnet
Packet Tracer
Welcome to this tutorial! Here, we’ll have have an overview of the Telnet then see
how to configure it on a switch and a router in Packet Tracer. So precisely, we’ll look
at:
1. An overview of Telnet
2. Configuring Telnet on a switch in Packet Tracer
3. Configuring Telnet on a router in Packet Tracer
1. About Telnet
The topology above consists of an ADMIN laptop and a remote switch. We’ll
configure Telnet on the switch so that as the admin,you’ll be able to access and
manage the switch remotely.
2. Configure enable password or enable secret password on the switch. If you
fail to do this,you won’t get past the executive mode of the switch even after you
establish a telnet connection to the switch.
Switch>enable
Switch#config terminal
We assign an IP address to the VLAN interface of the switch so that we can Telnet
the switch from the laptop using this address.
Switch(config)#int VLAN 1
Switch(config-if)#no shut
Switch(config-if)#exit
This password is configured on VTY lines. VTY means Virtual Terminal. Before you
can manage the switch remotely via Telnet, you’ll have to provide this password.
Switch(config)#line vty 0 15
Switch(config-line)#password cisco
Switch(config-line)#login
Telnet access to the switch is allowed through VTY lines. We can establish up
to 16 telnet connections to the switch at the same time. Tha’ts what ‘0 15‘ means.
Next,
Hope you remember that 10.0.0.20 is the VLAN address of the switch through which
we can access it remotely.
6. Now provide the Telnet password that you set in step 3. Mine is cisco. Notice that
password characters won’t show up(no echo) on the screen as you type them, but
just type, then hit ENTER.
After you’re authenticated, you will see the the CLI of the remote switch appear.
Now provide the enable password admin (or yours which you set in step 1) to enter
the privileged executive mode of the switch. You can then continue to configure
your switch the way you desire( but now, remotely)
Router>en
Router#config term
Router
Router(config)#int fa0/0
Router(config-if)#no shut
Admin PC
4. Configure VLAN interface on the router. This interface allows for remote access
on a switch or router via protocols such as Telnet or Secure Shell(SSH)
Router(config)#int VLAN 1
Router(config-if)#no shutdown
As you can see, we’ve not configured the VLAN interface with an IP address. We
could do this but it unnecessary. We already have an interface fa0/0 of the router
with an IP address through which we can Telnet the router from the PC.
Router(config)#line vty 0 15
Router(config-line)#password cisco
Router(config-line)#login
5. We can now telnet the router using the IP address of fa0/0 interface. So, in the
command prompt of the admin PC type telnet 10.0.0.1 then hit enter key.
6. Provide Telnet Password (that you set in step 4), then hit enter. Correct password
allows you access the CLI of the router .
7. Now provide the enable password (that you set in step 2) to be allowed
into privileged executive mode of the router.