一、console口常用相关配置
- 1.进入console视图
[Huawei]user-interface ? console 0
INTEGER<0,34-48,50-54> The first user terminal interface to be configured
console Primary user terminal interface
current The current user terminal interface
maximum-vty The maximum number of VTY users, the default valueis 5
vty The virtual user terminal interface
- 2.设置连接console超时时间
[Huawei-ui-console0]idle-timeout ?
INTEGER<0-35791> Set the number of minutes before a terminal user timesout(default: 10minutes)
- 3.设置console屏幕显示行数和列数
[Huawei-ui-console0]screen-?
screen-length
screen-width
-------------------
[Huawei-ui-console0]screen-length ?
INTEGER<0-512> Display the number of lines on a screen (the value 0indicates none split screen, and the default value is 24)
- 4.设置历史命令缓存大小
[Huawei-ui-console0]history-command max-size ?
INTEGER<0-256> The size of a history buffer
- 5.设置登录console的用户级别
[Huawei-ui-console0]user privilege level ?
INTEGER<0-15> Set a priority
- 6.设置登录console的认证方式
[Huawei-ui-console0]authentication-mode ?
aaa AAA authentication
none Login without checking
password Authentication through the password of a user terminal interface
- 7.设置登录console的账号密码级别
[Huawei-aaa]local-user test001 password cipher 123456 privilege level 3
- 8.关联上步账号用于何种服务类型登陆
[Huawei-aaa]local-user test001 service-type ? terminal
8021x 802.1x user
bind Bind authentication user
ftp FTP user
http Http user
l2tp L2tp user
ppp PPP user
ssh SSH user
sslvpn Sslvpn user
telnet Telnet user
terminal Terminal user
web Web authentication user
x25-pad X25-pad user
- 9.登陆账号的其他常用属性设置
[Huawei-aaa]local-user test001 ?
access-limit Set access limit of user(s) #同时多少用户可以登录
ftp-directory Set user(s) FTP directory permitted #可以访问的FTP目录
idle-timeout Set the timeout period for terminal user(s)# 超时时间
state Activate/Block the user(s) #设置状态(启用或禁用)
———只以密码方式登陆———-
- 10.设置只以密码方式登陆的密码
[Huawei-ui-console0]set authentication password ?
cipher Set the password with cipher text
simple Set the password in plain text
- 显示console界面信息
[Huawei]display user-interface console 0
Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int
+ 0 CON 0 9600 - 3 3 N -
+ : Current UI is active.
F : Current UI is active and work in async mode.
Idx : Absolute index of UIs.
Type : Type and relative index of UIs.
Privi: The privilege of UIs.
ActualPrivi: The actual privilege of user-interface.
Auth : The authentication mode of UIs.
A: Authenticate use AAA.
N: Current UI need not authentication.
P: Authenticate use current UI's password.
Int : The physical location of UIs.
© 版权声明
文章版权归作者所有,未经允许请勿转载。
本站所有资源均为作者提供和网友推荐收集整理而来,仅供学习和研究使用,请在下载后24小时内删除。
如果有侵权之处请第一时间联系我们E-mail:630092965@qq.com删除。敬请谅解!
THE END
暂无评论内容