案例 3 telnet远程管理协议
![在这里插入图片描述](https://img-blog.csdnimg.cn/45ab90f9976043868ede6b07ba7bbc00.png)
实验要求
R1作为客户端 ,telnet协议(23)远程管理服务器sw1
配置要点
1、设置IP ,实现设备间通讯
2、开启telnet服务
3、开启vty 0 4 设置用户级别
实验步骤
1、设置IP ,实现设备间通讯
[H3C]sysname R1
[R1]int g0/0
[R1-GigabitEthernet0/0]ip address 10.1.11.1 29
[H3C]sy SW1
[SW1-vlan1]int vlan 1
[SW1-Vlan-interface1]ip a 10.1.11.2 29
[SW1-Vlan-interface1]ping 10.1.11.1
Ping 10.1.11.1 (10.1.11.1): 56 data bytes, press CTRL_C to break
56 bytes from 10.1.11.1: icmp_seq=0 ttl=255 time=2.464 ms
56 bytes from 10.1.11.1: icmp_seq=1 ttl=255 time=0.942 ms
56 bytes from 10.1.11.1: icmp_seq=2 ttl=255 time=1.002 ms
2、开启telnet服务 和vty 0 4 设置用户级别
[SW1]telnet server enable
[SW1]line vty 0 4
[SW1-line-vty0-4]authentication-mode none
3、 验证
<R1>telnet 10.1.11.2
Trying 10.1.11.2 ...
Press CTRL+K to abort
Connected to 10.1.11.2 ...
******************************************************************************
* Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
<SW1>sys
[SW1]dis users
Idx Line Idle Time Pid Type
0 CON 0 00:07:01 Nov 12 14:17:44 290
+ 84 VTY 0 00:00:00 Nov 12 14:24:21 298 TEL
Following are more details.
VTY 0 :
Location: 10.1.11.1
+ : Current operation user.
F : Current operation user works in async mode.
核心知识 - 开启telnet服务
1、vty 虚拟终端 virtual teletype terminal
2、0 4是指可以有5个用户会话同时连接,0,1,2,3,4
3、authentication-mode三种模式
none 远程维护登陆不需要密码
scheme 用户密码验证模式
password 密码验证
① none 远程维护登陆不需要密码
[SW1]telnet server enable
[SW1]line vty 0 4
[SW1-line-vty0-4]authentication-mode none
② scheme 用户密码验证模式
[SW1]telnet server enable
[SW1]line vty 0 4
[SW1-line-vty0-4]authentication-mode scheme
[SW1-line-vty0-4]qu
[SW1]local-user abc class manage
[SW1-luser-manage-abc]password simple 123
[SW1-luser-manage-abc]authorization-attribute user-role level-15 #设置授权访问级别
[SW1-luser-manage-abc]service-type telnet #设置访问服务类型为
故障排查思路
通用命令累积
reset sa 恢复设备默认设置
reb 重启
un in en 关闭提示