Lab 5: Managed Session

 
    ----- e0/1          e0/0   -----  
   | R1  | ────────────────── | R2  | 
    -----   .1             .2  -----  
e0/0  │.254    12.1.1.0/24            
      │                               
      │                               
      │   192.168.10.0/24             
      │                               
      │                               
   .1 │                               
    __  _                             
   [__]|=|                            
   /++/|_|                        
  
! R2 ssh to R1.
! R2 pause this connect.
! R2 show session.
! R2 resume this pause connect.
! R2 pause this connect.
! R2 show session.
! R2 disconnect this connect.
! R2 show session.


! R2 ssh to R1.

R2#ssh -l abc -v 2 12.1.1.1
Password:

R1>en
R1>enable
Password:
R1#

! R2 pause this connect.

R1# <ctrl + shift + 6> + x = pause
R2#

! R2 show session.


R2#show sessions
Conn Host                Address             Byte  Idle Conn Name
*  1 12.1.1.1            12.1.1.1               0     1 12.1.1.1

R2#


! R2 resume this pause connect.
resume 1

R2#resume 1
[Resuming connection 1 to 12.1.1.1 ... ]

R1#

! R2 pause this connect.

R1# <ctrl + shift + 6> + x = pause
R2#

! R2 show session.


R2#show sessions
Conn Host                Address             Byte  Idle Conn Name
*  1 12.1.1.1            12.1.1.1               0     1 12.1.1.1

R2#

! R2 disconnect this connect.
! R2 show session.

R2#disconnect 1
Closing connection to 12.1.1.1 [confirm]

R2#show sessions
% No connections open
R2#


! show user

R2#ssh -l abc -v 2 12.1.1.1
Password:

R1>en
Password:


! connect by ssh
R1#show users
    Line       User       Host(s)              Idle       Location
   0 con 0                idle                 00:00:15
*  2 vty 0     abc        idle                 00:00:00 12.1.1.2

  Interface    User               Mode         Idle     Peer Address

R1#


! console
R1#show users
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00
   2 vty 0     abc        idle                 00:00:16 12.1.1.2

  Interface    User               Mode         Idle     Peer Address

R1#



! Clear line

! console
R1#show users
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00
   2 vty 0     abc        idle                 00:03:14 12.1.1.2

  Interface    User               Mode         Idle     Peer Address

R1# clear line 2
[confirm]
 [OK]
R1#
R1#


R1#show users
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00

  Interface    User               Mode         Idle     Peer Address

R1#



! connect by ssh
R1#
[Connection to 12.1.1.1 closed by foreign host]
R2#