系统集成论坛

标题: 配置VTY 用户界面示例 [打印本页]

作者: 胡振宇    时间: 2015-11-30 13:16
标题: 配置VTY 用户界面示例
步骤1 配置VTY用户界面的最大个数
<HUAWEI> system-view
[HUAWEI] user-interface maximum-vty 8
步骤2 配置VTY用户界面的呼入呼出限制类型
[HUAWEI] acl 2000
[HUAWEI-acl-basic-2000] rule permit source 10.1.1.0 0.0.0.255
[HUAWEI-acl-basic-2000] quit
[HUAWEI] user-interface vty 0 7
[HUAWEI-ui-vty0-7] acl 2000 inbound
步骤3 配置VTY用户界面的终端属性
[HUAWEI-ui-vty0-7] shell
[HUAWEI-ui-vty0-7] idle-timeout 30
[HUAWEI-ui-vty0-7] screen-length 30
[HUAWEI-ui-vty0-7] history-command max-size 20
步骤4 配置VTY用户界面的用户优先级
[HUAWEI-ui-vty0-7] user privilege level 2
步骤5 配置VTY用户界面的用户验证方式为密码验证
[HUAWEI-ui-vty0-7] authentication-mode password
[HUAWEI-ui-vty0-7] set authentication password cipher Helloworld@6789
[HUAWEI-ui-vty0-7] quit
VTY用户界面配置完成后,用户可以通过Telnet使用Password方式登录设备,实现本地
或者远程维护。用户登录设备的具体过程请参见配置用户通过Telnet登录设备。
步骤6 验证配置结果
# 使用Telnet方式登录,检查新的密码是否生效。
# 使用10.1.1.1的IP地址通过Telnet方式登录设备,可以登录。
# 使用user-interface vty 0 7进入VTY界面视图,执行display this命令检查VTY界面配置。
[HUAWEI] user-interface vty 0 7
[HUAWEI-ui-vty0-7] display this
#
user-interface maximum-vty 8
user-interface vty 0 7
acl 2000 inbound
authentication-mode password
user privilege level 2
set authentication password cipher %@%@#N&)XdgB87~RcnU9upv6,.d;,uXe*#IeE-ywBaSmj:\@.d>,%@%@
history-command max-size 20
idle-timeout 30 0
screen-length 30
#
return
----结束
配置文件
#
acl number 2000
rule 5 permit source 10.1.1.0 0.0.0.255
#
user-interface maximum-vty 8
user-interface vty 0 7
acl 2000 inbound
authentication-mode password
S2750&S5700&S6700 系列以太网交换机
典型配置举例1 基础配置
文档版本 07 (2014-07-30) 华为专有和保密信息
版权所有 &copy; 华为技术有限公司
5
user privilege level 2
set authentication password cipher %@%@#N&)XdgB87~RcnU9upv6,.d;,uXe*#IeE-ywBaSmj:\@.d>,%@%@
history-command max-size




欢迎光临 系统集成论坛 (http://bbs.xtjc.com/) Powered by Discuz! X3.1