Accessing Router Through A Telnet
(Telnet between 2 Routers)
Objective
Understanding the telnet operations. In this lab Router R1 is going to be telnet to Router R2.
Diagram
Procedure
1) Check the Connectivity between 2 routers.
2) Set the Privilege mode password on Router R2.
3) Set the TELNET (line VTY) password on Router R2.
4) Verify the telnet Session from Router R1 to Router R2.
5) Disconnect the telnet Session.
Configuration
Step 1: Check the Connectivity between 2 routers.
R1#ping 15.0.0.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 15.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
Step 2: Set the Privilege mode password on Router R2.
R2(config)#enable password cisco
Step 3: Set the Telnet (Line VTY)password on Router R2.
R2(config)#line vty 0 4
R2(config-line)#password cisco
R2(config-line)#login
Step 4: Verify the telnet Session from Router R1 to Router R2.
R1#telnet 15.0.0.2
Trying 15.0.0.2 ... Open
User Access Verification
Password:
R2>en
R2>enable
Password:
R2#
Step 5(A): Verify the telnet line on Router R2.
R2#show line
Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns
0 CTY - - - - - 0 1 0/0
1 AUX 9600/9600 - - - - - 0 0 0/0
* 2 VTY - - - - - 5 0 0/0
3 VTY - - - - - 0 0 0/0
4 VTY - - - - - 0 0 0/0
5 VTY - - - - - 0 0 0/0
6 VTY - - - - - 0 0 0/0
Step 5(B): Verify the telnet User on Router R2.
R2#show users
Line User Host(s) Idle Location
* 2 vty 0 idle 00:00:00 15.0.0.1
Step 5(C): Verify the telnet sessions from Router R1.
R1#sh sessions
Conn Host Address Byte Idle Conn Name
* 1 15.0.0.2 15.0.0.2 0 0 15.0.0.2
Step 6: Switch the telnet session from Router R2 to Router R1.
R2#
Press [ Ctrl+Shift+6 and then ‘x’ ]
R1#
Note: And then Resume connection by just Enter Key.
Step 7(A): Disconect the telnet session from Router R1 (Gracefully).
R1#disconnect
Closing connection to 15.0.0.2 [confirm]
R1#
Step 7(B): Disconect the telnet session from Router R2 (Disgracefully).
R2#Clear line 2
[Connection to 15.0.0.2 closed by foreign host]
R1#
No comments:
Post a Comment