Learn how to configure telnet on a switch.We configure telnet services on a switch or a router to access it from anywhere remotely.Suppose you are in London and the switch you want to configure,manage and monitor is in New Delhi then you can monitor and manage your switch remotely through telnet without going physicaly to new delhi.So telnet is basically a remote login program which helps us to manage any device remotely.
Now see in below lab how to configure telnet on a switch.
Configuration on Switch:
Switch>enable
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S1(config)#interface vlan 1
S1(config-if)#ip address 192.168.1.1 255.255.255.0
S1(config-if)#no shut
S1(config-if)#exit
S1(config)#line vty 0 5
S1(config-line)#password redhat123
S1(config-line)#login
S1(config-line)#
Now see how to access a switch from a pc through telnet:
Packet Tracer PC Command Line 1.0
PC>telnet S1
PC>telnet 192.168.1.1
Trying 192.168.1.1 …Open
User Access Verification
Password:
S1>
S1>show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 – 0001.43A9.275D ARPA Vlan1
Internet 192.168.1.3 11 00E0.F940.4904 ARPA Vlan1