1. Telnet可以通过终端对本地和远程的设备进行集中管理。以客户端/服务器模式运行。需要在服务器上开通Telnet服务。基于TCP协议,服务器默认端口是23,服务器可以通过该端口与客户端建立Telnet连接。是一个应用层协议。Telnet协议 = TCP协议 + 23端口。
认证模式:
认证模式 | 描述 |
AAA | AAA认证 |
Password | 登陆时只通过密码实现认证 |
2. VTY:虚拟远程终端
3. 相关Telnet命令
开通Telnet的命令
[AR3]telnet server en
Error: TELNET server has been enabled
由于默认开通,所以会提示错误。
关闭Telnet命令
[AR3]undo telnet server enable
[AR3]telnet server enable
关闭后再次开通,就不会出现错误提示。
设置远程终端接入数量,最多同时5个用户远程连接到服务器:
[R1]user-interface vty 0 4
设置认证authentication方式及密码
[R1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):Huawei@123
修改认证密码
[R1]user-interface vty 0 4
[R1-ui-vty0-4]set authentication password cipher Huawei#123
在服务器设置远程用户访问权限1-15:
[R1-ui-vty0-4]user privilege level 1
设置远程访问超时时间
[R1-ui-vty0-4]idle-timeout 2
当无客户端远程到服务器时,如何进行自测Telnet服务及设置是否可用?
可以创建一个环回接口,通过telnet环回接口来验证是否生效。
[R1]interface LoopBack 0
[R1-LoopBack0]ip add 1.1.1.1 24
[R1-LoopBack0]dis ip inter bri
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.12.1/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 1.1.1.1/24 up up(s)
NULL0 unassigned up up(s)
[R1-LoopBack0]quit
<R1>telnet 1.1.1.1
Press CTRL_] to quit telnet mode
Trying 1.1.1.1 ...
Connected to 1.1.1.1 ...
Welcome to HUAWEI Certification!
Login authentication
Password:
Your Evevy operation will be record!
<R1>