Telnet远程登录

Telnet是一个虚拟终端协议,使用它可以远程登录到网路设备上,对设备进行配置、获取信息或者在远程设备上运行程序。

登录

如果希望通过Telnet登录到路由器,路由器必须设置VTY密码,除非使用no login设置VTY。
可以同时登录多个设备。使用【Ctrl+Shift+6】(同时按下),松开后按【x】,会发起Telnet会话设备的提示符。然后就可以Telnet登录到另一台设备。

远程登录router
test#telnet 10.1.5.1
Trying 10.1.5.1 ...Open
Welcome! 
Please modify the original password! 

User Access Verification

Password: 
router>

查看路由器远程设备的连接

test#show sessions
Conn Host                Address             Byte  Idle Conn Name
*  1 10.1.5.1            10.1.5.1               0     0 10.1.5.1

显示Telnet连接的用户(正在使用控制台和连接中的VTY线路信息,*表示当前用户)

test#show user
    Line       User       Host(s)              Idle       Location
*  0 con 0                10.1.5.1             00:05:35 
router#show user
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00 
 324 vty 0                idle                 00:06:21 10.1.5.2

断开连接

远程设备输入exit,或者本端设备使用命令disconnect <连接编号>。

test#disconnect ?
  <1-16>  The number of an active network connection
test#disconnect 1
Closing connection to 10.1.5.1 [confirm]
posted @ 2021-04-25 10:52  一个只会爆零的小菜鸡  阅读(826)  评论(0编辑  收藏  举报