h3c AAA本地认证 Telnet - 侯志清

时间:2024-02-17 10:59:25

h3c AAA本地认证 Telnet

 h3c <wbr>AAA本地认证 <wbr>Telnet
用VTY密码登陆

 

首先开启Telnet服务器功能

[R1]telnet server enable

[R1]user-interface vty 0 4

[R1-ui-vty0-4]set authentication password cipher h3c

[R1]super password cipher abc123,

 

这样之后R2就可以直接用密码telnet R1了


<R2>telnet 172.16.1.1
Trying 172.16.1.1 ...
Press CTRL+K to abort
Connected to 172.16.1.1 ...

Login authentication


Password:h3c

<R1>super Password:abc123,
Now user privilege is 3 level, and only those commands whose level is
equal to or less than this level can be used.
Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE
<R1>system-view

之后就可以直接配置R1

 

用AAA本地认证登陆

[R1]aaa

[R1-aaa]local-user zhang3 password cipher telnetadmin

[R1-aaa]authentication-scheme authe

[R1-aaa-authen-authe]authentication-mode local 

[R1-aaa-authen-authe]authentication-super super

[R1]user-interface vty 0 4

[R1-ui-vty0-4]authentication-mode aaa

配置好后用R2 telnet R1

<R1>telnet 172.16.1.1
Trying 172.16.1.1 ...
Press CTRL+K to abort
Connected to 172.16.1.1 ...

Login authentication


Username:zhang3
Password:telnetadmin
Info: The max number of VTY users is 10, and the number
      of current VTY users on line is 2.
<R1>super

   Password:abc123,

Now user privilege is 3 level, and only those commands whose level is
equal to or less than this level can be used.
Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE
<R1>