网络:Telnet协议

1. Telnet可以通过终端对本地和远程的设备进行集中管理。以客户端/服务器模式运行。需要在服务器上开通Telnet服务。基于TCP协议,服务器默认端口是23,服务器可以通过该端口与客户端建立Telnet连接。是一个应用层协议。Telnet协议 = TCP协议 + 23端口。

        认证模式:

认证模式描述
AAAAAA认证
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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值