锐捷网管交换机通过Telnet登录交换机的操作方法

Telnet Client为已登录到设备上的本地用户或远程用户提供访问网上其他远程系统资源的服务。用户在PC上通过终端仿真程序或Telnet程序建立与设备连接后,可通过输入Telnet命令再登录另一设备,并对其进行配置管理。下面通过一个典型配置举例说明如何使用Telnet登录交换机。

注:本例中 建立与远程设备的Telnet会话,远程设备的IP地址是192.168.65.119

配置步骤

(1) 在设备上开启Telnet服务

# 在设备A上开启Telnet服务。

DeviceA> enable

DeviceA# configure terminal

DeviceA(config)# enable service telnet-server

# 在设备B上开启Telnet服务。

DeviceB> enable

DeviceB# configure terminal

DeviceB(config)# enable service telnet-server

(2) 在Device B上配置用户及授权信息。

请根据实际需求,选择如下两种登录方式中的任意一种进行配置。

# 在Device B上配置仅使用密码登录。

DeviceB> enable

DeviceB# configure terminal

DeviceB(config)# line vty 0

DeviceB(config-line)# password Guestuser

DeviceB(config-line)# login

# 在Device B上配置使用用户名和密码登录

DeviceB> enable

DeviceB# configure terminal

DeviceB(config)# line vty 0

DeviceB(config-line)# login local

DeviceB(config-line)# exit

DeviceB(config)# username admin password Guestuser

DeviceB(config)# enable password Guestuser

DeviceB(config)# end

DeviceB# write

(3) 在Device A上建立与远程设备的Telnet会话。

# telnet命令支持在特权模式下配置,do telnet命令支持在用户模式、特权模式和接口配置模式下配置。

DeviceA# telnet 192.168.65.119

Trying 192.168.65.119 … Open

User Access Verification

Password: Guestuser

DeviceB>

验证配置结果

# 可使用ping命令查看配置结果。如果能ping通,则说明Telnet服务配置成功。

ICP备案号:晋ICP备18007549号-1
站长微信:13613567205