</p> 80. 在Cisco设备上修改控制端口密码:
3 u) z9 v* e6 `; L0 { R1(config)# line console 0: X- y' b4 P( k) D; g
R1(config-line)# login
. T, D/ p! m& u4 w0 a; b! G R1(config-line)# password Lisbon
8 {9 j3 E1 Y; U4 o: F R1(config)# enable password Lilbao
* n1 u8 K, ?. u h! _) Z, L: x# c R1(config)# login local
# b* [# [- f+ E9 V. } R1(config)# username student password cisco5 `5 _* q6 n+ w5 ]* w
81. 在Cisco设备上设置控制台及vty端口的会话超时:
8 {! O0 f& k. f' H R1(config)# line console 0
* H$ G/ E9 r n R1(config-line)# exec-timeout 5 109 l. n. h8 M: O
R1(config)# line vty 0 4
( c' S; `. L' r R1(config-line)# exec-timeout 5 2
5 p% C4 n X' h9 R1 K 82. 在Cisco设备上设定特权级:+ I1 D; T# V# c# Q2 z5 R
R1(config)# privilege configure level 3 username
* P: r6 W( }8 y. y- | R1(config)# privilege configure level 3 copy run start
0 v; a8 k! z2 Q! s; F R1(config)# privilege configure level 3 ping5 {4 o7 T; }/ `7 X6 ~! d
R1(config)# privilege configure level 3 show run! N3 n: ~, ]- m* f2 j
R1(config)# enable secret level 3 cisco2 {- i& _& S0 w6 k
83. 使用命令privilege 可定义在该特权级下使用的命令:
8 g* o' x7 v; U$ }; g# @" o6 M router(config)# privilege mode level level command
d7 \ P# {( z7 w, Q* T 84. 设定用户特权级:/ q/ O2 a9 [% G2 v4 L% \5 f
router(config)# enable secret level 3 dallas3 Q J( U# Y% i* H. k4 H
router(config)# enable secret san-fran
, O. w% t: O: U# q/ i router(config)# username student password cisco
: p6 Z2 ~; i' g- ?+ _$ [ 85. 标志设置与显示:* M$ y7 a' k+ z* a5 f, J
R1(config)# banner motd ‘unauthorized access will be prosecuted!’ |