
4 ?3 O P$ U" @/ l0 aConsole用户界面配置示例
5 V- Y! Q" M8 I0 l
: c9 |3 W$ I% }% K6 b, D6 K: @1 w0 p1、组网需求
( \, ]7 y6 I8 S) M7 p. S0 e3 T. G" y0 b; [9 |! _
在本地维护时,用户需要通过Console用户界面登录并进行配置。设备管理员可以根据使用需求或出于对设备安全性的考虑,配置Console用户界面的相关属性。
& Q) w% F1 m! B F7 s2 [5 P
" Z( m$ o4 }' N2 j% P5 p2 Q3 q* m 配置Console用户界面的用户优先级为15,对从Console登录的用户进行Password验证,用户登录时需要输入密码“023wg@com”。% O" q6 l9 E4 e( V
5 r' u* L/ a9 _" K) D. ^
2、配置思路+ o( U! K) K" ~, D
/ `, D0 i4 n( b采用如下的思路配置登录设备:3 [7 L- x7 A9 I
) M: _. t& O" M2 U' T
1. 配置Console用户界面的用户优先级。
) A' I! c$ S: s) ]2 O/ @$ |# }0 j9 m4 _; M a$ i, m
2.配置Console用户界面的验证方式和验证密码。5 G5 G4 ]! b4 F; N" \# K
& d' \2 n6 v4 x7 A
3、操作步骤4 V, z- k7 s+ p9 t* X
6 I; |4 r' l1 a3 ^! D' ?5 M1. 配置Console用户界面的用户优先级0 |+ \) M3 r8 Y$ M8 Q' r
3 T9 s( D2 e1 Y2 t% Y" G<HUAWEI> system-view$ n- d/ m$ D9 h+ U3 i E4 M
[HUAWEI] user-interface console 0
+ d8 C! [7 B- K' Z[HUAWEI-ui-console0] user privilege level 158 b% s7 y; k8 q- {
2.配置Console用户界面的用户验证方式为密码验证! n, w* E( y! r
1 g" L+ S9 L: i) P( Y! X& |5 D[HUAWEI-ui-console0] authentication-mode password2 U. R9 `& R, d4 c
[HUAWEI-ui-console0] set authentication password cipher 023wg@com. P: z9 v2 o# ~9 Y4 W/ {
[HUAWEI-ui-console0] quit* R9 }2 F6 H% A$ Y, n$ ]1 z. L
Console用户界面配置完成后,用户可以通过Console口使用Password方式登录设备,实现本地维护。
6 P1 R* E/ ^1 T3 M( ]% @0 y1 K7 O1 K* ?+ P
3. 验证配置结果
7 ?+ }( l& g% K9 X) V! I7 X5 `! [1 `' J4 n
# 用户执行quit命令,断开连接后使用Console线缆重新登录,检查新的密码是否生效。& D- }0 C8 K" M* h
: P/ T8 e! ]5 l. U9 z* P9 P
# 使用user-interface console 0进入Console界面视图,执行display this命令检查Console界面配置。- M4 n8 m9 O( W! u; A" t7 T H1 S
/ p: |( H: Z* x$ Y
[HUAWEI] user-interface console 0$ _3 J1 _& _& M4 e5 x
[HUAWEI-ui-console0] display this
) X7 K' `; V1 I0 n! `#
& A8 ]) |( x2 c. G3 Quser-interface con 0
1 W. ?, q$ U7 I2 q authentication-mode password
9 H9 l) E% h7 P% N' D* N! c user privilege level 15- A* _0 P$ v6 ^2 Q* {
set authentication password cipher %@%@#N&)XdgB87~RcnU9upv6,.d;,uXe*#IeE-ywBaSmj:\@.d>,%@%@
& M: _! ]8 C$ G6 m#
4 X3 O* f6 ]. G# z3 Oreturn
6 n+ A$ j# m, N9 i1 g" O/ c
' L* P. H3 e: m ?! X: V% A6 a# E
" D' p+ o% l) W4 n8 `6 W8 v4、配置文件* ^+ a& A" F. a" F& e
! g) U6 |7 _& {* h#
# F2 P& A9 c$ b4 Uuser-interface con 0
3 y. ? }4 O9 f8 k0 c1 M+ z" P authentication-mode password
7 o; z' d: v( q/ @, l# | user privilege level 15! [" M7 B4 j! S# c( s& \
set authentication password cipher %@%@#N&)XdgB87~RcnU9upv6,.d;,uXe*#IeE-ywBaSmj:\@.d>,%@%@: m* h* y/ p3 f; A4 I8 i1 T
#
: W2 @9 e$ h/ ?) _$ jreturn |
|