zl程序教程

您现在的位置是:首页 >  硬件

当前栏目

玩转华为ENSP模拟器系列 | 通过Telnet登录其他设备配置举例

设备配置华为 系列 通过 登录 玩转 其他
2023-09-14 09:09:07 时间

素材来源:华为路由器配置指南

一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!

附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_ensp实验大全


目标

配置Telnet登录其他设备的示例。在本示例中,通过配置用户验证方式和密码,实现Telnet登录。

组网需求

网络中有大量设备需要管理与维护,用户不可能为每台设备连接用户终端,特别是终端与需要管理的设备之间无可达路由时,用户可以使用Telnet方式从当前设备登录到网络上另一台设备,从而实现对远程设备的管理与维护。

如图1所示,用户可以通过Telnet登录到P1,但是无法直接Telnet到P2。P1与P2路由可达,此时用户可以从P1上通过Telnet登录到P2,从而远程管理和配置P2。

配置思路

  • 在P2上配置Telnet验证方式和密码
  • 从P1上Telnet登录到P2。

操作步骤

  1. 配置P2的Telnet验证方式和密码
P2:
sysname P2
user-interface vty 0 4
 authentication-mode password
 set authentication password cipher $1c$5h7|C{G%-P$O!yW'FR~HO,%gi7O%`D6]3uoPp:*^
Ongc9@B4TQY$

如果采用ACL方式配置Telnet登录其他设备,需要在P2上进行如下配置。

P2:
acl number 2000
 rule 5 permit source 1.1.1.1 0
user-interface vty 0 4
 acl 2000 inbound
  1. 验证配置结果

完成以上配置后,可以从P1上Telnet到P2。

P1:
sysname P1
<P1>telnet 1.1.1.2
Trying 1.1.1.2 ...
Press CTRL+K to abort
Connected to 1.1.1.2 ...
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
Password:
Info: The max number of VTY users is 5, the number of current VTY users online i
s 1, and total number of terminal users online is 2.
      The current login time is 2019-10-21 15:36:21.
<P2>