案例2 网络设备初始化及Console端口密码认证

发布时间 2023-10-09 22:31:27作者: xl4ng

1. 华为设备

<Huawei>
<Huawei>system-view 
[Huawei]user-interface console 0
[Huawei-ui-console0]authentication-mode password
[Huawei-ui-console0]set authentication password cipher qytang
[Huawei-ui-console0]
[Huawei-ui-console0]quit
[Huawei]
[Huawei]quit

User interface con0 is available



Please Press ENTER.


Login authentication


Password:
<Huawei>
<Huawei>display users
  User-Intf    Delay    Type   Network Address     AuthenStatus    AuthorcmdFlag
+ 0   CON 0   00:00:00                                   pass           no        Username : Unspecified


<Huawei>

2. 华三设备

<H3C>
<H3C>system-view 
[H3C]user-interface console 0
[H3C-line-console0]authentication-mode password 
[H3C-line-console0]set authentication password simple qytang
[H3C-line-console0]
[H3C-line-console0]dis this
#
line aux 0
 user-role network-operator
#
line con 0
 authentication-mode password
 user-role network-admin
#
line vty 0 63
 user-role network-operator
#
return
[H3C-line-console0]q
[H3C]
[H3C]exit
<H3C>
<H3C>q
<H3C>quit

Line con0 is available.


Press ENTER to get started.
Password: 
******************************************************************************
* Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent,                                 *
* no decompiling or reverse-engineering shall be allowed.                    *
******************************************************************************

%Oct  9 22:12:11:197 2023 H3C SHELL/5/SHELL_LOGIN: Console logged in from con0.
<H3C>

image