
. L4 E' N0 J& `: k% I
1、设置允许同时登陆vty的最大用户数(默认为0-4,5个)5 b% l' J6 @# Z& `5 A4 H9 j
[Huawei]user-interface maximum-vty ? 6
2 ?- k( y+ V8 k) J INTEGER<0-15> The maximum number of VTY users, the default value is 5
) Z6 B0 c0 Q O9 `, J! [$ }2、设置vty用户界面基于acl的登陆限制. J* i5 Y: S- @! d b d
[Huawei-ui-vty0-4]acl ?
0 a6 W. Q: y4 q7 G# Z8 L" T INTEGER<2000-3999> Apply basic or advanced ACL
) X- W$ W, \2 R& u% D ipv6 Filter IPv6 addresses, Z2 F- t5 J. b8 z: ^* |2 E
[Huawei-ui-vty0-4]acl 2002 ?1 j# b$ S# f2 v9 K$ d K
inbound Filter login connections from the current user interface
& e) N% E" ?! C; W* h outbound Filter logout connections from the current user interface2 H' e4 F5 j, F: k8 V
3、设置VTY支持的呼入协议
2 I% G: P% K& ~/ y; T" L: C' ]: B[Huawei-ui-vty0-4]protocol inbound ?
5 M9 z; t+ Y2 j Y3 L1 d/ d/ a all All protocols5 g: @' Z( X5 A2 Z
ssh SSH protocol$ _+ I! o1 K7 @% @; m; i9 k H' D
telnet Telnet protocol8 I! u8 D1 J5 M4 y: l
4、开启终端服务(默认开启)
3 \8 y) D$ R% Z+ N% |[Huawei-ui-vty0-4]shell
( J9 h/ {. @ Y$ U. m7 w5、用户连接超时时间/终端屏幕显示行数/列数/登陆方式/账号级别/只以密码方式登陆 同console
6 a9 Z2 T) d7 U* C; G ^0 g-------------telnet服务器相关设置--------------% d8 p. \, R& _; w& y
[Huawei]telnet server ?
! @# I2 W" V/ L4 l2 e Y enable Enable the Telnet server #打开telnet功能(默认开启)& p( u; v/ p" p& L, |: Q# O) n* p
port Set the port attribute #修改telnet服务器端口
% r% h0 ^& n& {; L# E6、登陆账号相关设置同console登陆账号密码设置类似。
5 R" K$ Q- _" {! J8 W8 \ F==================================================================& n6 y$ _/ v7 _" o U
1、显示telnet显示状态- l: F D* c4 {! q. z+ I
<Huawei>display telnet server status$ x. j f* p8 j1 u& A( t+ }
TELNET IPv4 server :Enable
`5 c( }& U/ Z; c6 g TELNET IPv6 server :Enable* A+ W3 P+ @ k" @& I
TELNET server port :23, ^, @" r- ^7 H: l6 w: U
TELNET server source address :0.0.0.01 r: u( @! z+ s1 R$ q
2、显示vty用户界面信息
% n4 r7 j% N9 R+ _! k+ Q5 h<Huawei>display user-interface vty 0$ p4 `) s% w" [) q% T9 v3 c: W
Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int
& [. _: }1 {, i9 J+ 34 VTY 0 - 0 15 A -
0 G3 H1 r3 i; E2 E5 [$ ~. D! n6 }. o + : Current UI is active.) }. E- b O. j2 ?
F : Current UI is active and work in async mode.5 \/ e0 D- M8 x. r4 V' @
Idx : Absolute index of UIs.
/ F# \9 K) r2 z$ c) T" w Type : Type and relative index of UIs.9 K3 L1 B5 v9 E1 k- E6 U
Privi: The privilege of UIs.
7 M) b" o# |9 d ActualPrivi: The actual privilege of user-interface.
& L1 p% |7 q9 P$ \+ ]# N. R Auth : The authentication mode of UIs.1 A/ q; g0 v2 @# L3 @! v$ G
A: Authenticate use AAA.0 `4 X6 U" H) M' ]
N: Current UI need not authentication." X8 b4 e5 `1 @+ ?0 e( W
P: Authenticate use current UI's password.
8 t6 \7 t2 Q! ? Int : The physical location of UIs., l8 q7 U, h& Q0 S# Q
|
|