常见的远程登录方式主要有telnet和ssh方式,在实际网络环境中,为了确保数据的传输安全(telnet明文传输,容易被截取数据),不推荐使用telnet,上一篇文章我已经给讲解了SSH安全加密方式登录,需要的可以看我的SSH方式登录。
应用场景展示:
1、Telnet服务端配置
配置IP地址
<Huawei>sys //进入系统视图
[Huawei]sysname Telnet-server //配置设备名称
[Telnet-server]interface Vlanif 1 //进入VLANIF接口试图
[Telnet-server-Vlanif1]ip address 192.168.1.200 24 //配置IP地址
开启Telnet服务
[Telnet-server-Vlanif1]quit //退出
[Telnet-server]telnet server enable //开启Telnet服务
配置VTY认证模式
[Telnet-server]user-interface vty 0 4 //进图VTY配置模式
[Telnet-server-ui-vty0-4]authentication-mode aaa //配置认证模式为AAA
配置AAA模式
[Telnet-server-ui-vty0-4]aaa //进入AAA配置模式
[Telnet-server-aaa]local-user admin password cipher admin888 //配置用户名密码
[Telnet-server-aaa]local-user anli service-type telnet //配置用户服务类型
[Telnet-server-aaa]local-user anli privilege level 15 //配置用户等级
2、Telnet客户端设置
1.首先进行ping 测试,检验其路由连通性。
C:\Users\Administrator>ping 192.168.1.100
正在 Ping 192.168.1.100 具有 32 字节的数据:
来自 192.168.1.100 的回复: 字节=32 时间=1ms TTL=64
来自 192.168.1.100 的回复: 字节=32 时间=1ms TTL=64
来自 192.168.1.100 的回复: 字节=32 时间=1ms TTL=64
来自 192.168.1.100 的回复: 字节=32 时间=1ms TTL=64
39.156.66.10 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 1ms,最长 = 1ms,平均 =1ms
2、Telnet登陆测试
C:\Users\Administrator>telnet 192.168.1.200
User Access Verification //输入用户名
Password: //输入密码(密码不会显示在屏幕上)后敲回车键
Info: The max number of VTY users is 5, and the number
of current VTY users on line is 1.
The current login time is 2024-05-30 09:20:59.
<Telnet-server> //显示服务端设备名,登陆成功