仿真模拟--telnet服务两种认证模式(自作)

自己做的笔记,有问题或看不懂请见解一下~

 

目录

两个路由器间实现telnet服务(password认证模式)

server

client

两个路由器间实现telnet服务(aaa认证模式)

server

client


改名

tab键补齐

不会就扣问号                                 ?

save

两个路由器间实现telnet服务(password认证模式)

server

接口配置好ip

开启telnet服务

设置用户端的监听

(认证模式,密码最大长度,密码,用户权限等级)

---自己搜搜吧....


client

将接口配置ip后

直接telnet连接服务端即可.

<Huawei>sy	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sy	
[Huawei]sysname client
[client]
[client]
[client]
[client]int	
[client]interface G	
[client]interface GigabitEthernet 0/0/0
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]ip add	
[client-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[client-GigabitEthernet0/0/0]
Jun 20 2024 22:28:45-08:00 client %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]di	
[client-GigabitEthernet0/0/0]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/0
 ip address 192.168.2.2 255.255.255.0 
#
return
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]qu
[client]
[client]
<client>sa	
<client>save 
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.........
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<client>
<client>
<client>tel	
<client>telnet 192.168.2.1
  Press CTRL_] to quit telnet mode
  Trying 192.168.2.1 ...
  Connected to 192.168.2.1 ...

Login authentication


Password:
<server>
<server>

两个路由器间实现telnet服务(aaa认证模式)

server

进入接口,选择aaa模式认证.

进入aaa界面

创建账户名

(密码,权限等级,协议服务)

[server]aaa
[server-aaa]loca	
[server-aaa]local-user ?
  STRING<1-64>    User name, in form of 'user@domain'. Can use wildcard '*',    
                  while displaying and modifying, such as *@isp,user@*,*@*.Can  
                  not include invalid character / \ : * ? " < > | @ '
  wrong-password  Use wrong password to authenticate
[server-aaa]local-user xiaodi
                              ^
Error:Incomplete command found at '^' position.
[server-aaa]local-user xiaodi ?
  access-limit   Set access limit of user(s)
  ftp-directory  Set user(s) FTP directory permitted
  idle-timeout   Set the timeout period for terminal user(s)
  password       Set password 
  privilege      Set admin user(s) level
  service-type   Service types for authorized user(s)
  state          Activate/Block the user(s)
  user-group     User group
[server-aaa]local-user xiaodi p	
[server-aaa]local-user xiaodi password ?
  cipher  User password with cipher text
[server-aaa]local-user xiaodi password  c	
[server-aaa]local-user xiaodi password  cipher ?
  STRING<1-32>/<32-56>  The UNENCRYPTED/ENCRYPTED password string
[server-aaa]local-user xiaodi password  cipher 123
Info: Add a new user.
[server-aaa]local-user xiaodi p	
[server-aaa]local-user xiaodi passwor	
[server-aaa]local-user xiaodi password 
[server-aaa]local-user xiaodi password	
[server-aaa]local-user xiaodi pt	
[server-aaa]local-user xiaodi pr	
[server-aaa]local-user xiaodi pri	
[server-aaa]local-user xiaodi privilege 3
                                        ^
Error: Unrecognized command found at '^' position.
[server-aaa]local-user xiaodi privilege >?
                                        ^
Error: Unrecognized command found at '^' position.
[server-aaa]local-user xiaodi privilege ?
  level  Set admin user(s) level
[server-aaa]local-user xiaodi privilege l	
[server-aaa]local-user xiaodi privilege level 3
[server-aaa]
[server-aaa]
[server-aaa]local-user xiaodi ?
  access-limit   Set access limit of user(s)
  ftp-directory  Set user(s) FTP directory permitted
  idle-timeout   Set the timeout period for terminal user(s)
  password       Set password 
  privilege      Set admin user(s) level
  service-type   Service types for authorized user(s)
  state          Activate/Block the user(s)
  user-group     User group
[server-aaa]local-user xiaodi se	
[server-aaa]local-user xiaodi service-type tel	
[server-aaa]local-user xiaodi service-type telnet 
[server-aaa]
[server-aaa]
[server-aaa]
[server-aaa]di	
[server-aaa]dis this
[V200R003C00]
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
 local-user xiaodi password cipher %$%$zx!S#Qzc72@-{%"5}:<ZX:\'%$%$
 local-user xiaodi privilege level 3
 local-user xiaodi service-type telnet
#
return
[server-aaa]

client

telnet连接服务端,

输入账户密码,登录~

<client>
<client>
<client>tel	
<client>telnet 192.168.2.1
  Press CTRL_] to quit telnet mode
  Trying 192.168.2.1 ...
  Connected to 192.168.2.1 ...

Login authentication


Password:
<server>
<server>

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please retry to log on

  The connection was closed by the remote host
<client>

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<client>
<client>tel	
<client>telnet 192.168.2.1
  Press CTRL_] to quit telnet mode
  Trying 192.168.2.1 ...
  Connected to 192.168.2.1 ...

Login authentication


Username:xiaodi
Password:
Error: Local authentication is rejected.

  Logged Fail!

Username:xiaodi
Password:
<server>
<server>


  • 7
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

金灰

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值