收藏 分销(赏)

华为交换机VTY用户界面属性配置教程.doc

上传人:xrp****65 文档编号:6131752 上传时间:2024-11-28 格式:DOC 页数:7 大小:66.50KB 下载积分:10 金币
下载 相关 举报
华为交换机VTY用户界面属性配置教程.doc_第1页
第1页 / 共7页
华为交换机VTY用户界面属性配置教程.doc_第2页
第2页 / 共7页


点击查看更多>>
资源描述
华为交换机VTY用户界面属性配置教程 用户通过Telnet或SSH方式登录设备实现本地或远程维护时,可以根据用户使用需求以及对设备安全的考虑来配置VTY, 除对VTY类型用户界面呼入呼出进行限制的ACL号、用户名和口令及用户界面的验证方式外其他参数设备均有缺省值,用户可以结合实际需求和安全性考虑选择配置。 1、设置通过账号和密码登陆VTY界面 1.1、进入VTY用户界面视图 [Huawei]user-interface vty ?   INTEGER<0-4,16-20>  The first user terminal interface to be configured   [Huawei]user-interface vty 0 4 [Huawei-ui-vty0-4]   1.2、设置用户验证方式为AAA验证(即通过账号和密码登陆) [Huawei-ui-vty0-4]authentication-mode ?   aaa       AAA authentication   none      Login without checking   password  Authentication through the password of a user terminal interface   [Huawei-ui-vty0-4]authentication-mode aaa   1.3、设置登陆的账号和密码 [Huawei-ui-vty0-4]q [Huawei]aaa [Huawei-aaa]local-user ?   STRING<1-64>   User name, in form of 'user@domain'. Can use wildcard '*',                  while displaying and modifying, such as *@isp,user@*,*@*.Can                  not include invalid character / \ : * ? " < > | @ '   [Huawei-aaa]local-user ?   access-limit   Set access limit of user(s)   ftp-directory  Set user(s) FTP directory permitted   idle-timeout   Set the timeout period for terminal user(s)   password       Set password   privilege      Set admin user(s) level   service-type   Service types for authorized user(s)   state          Activate/Block the user(s)   user-group     User group   [Huawei-aaa]local-user password ?   cipher  User password with cipher text   [Huawei-aaa]local-user password cipher   1.4、设置账号的使用类型为Telnet或SSH [Huawei-aaa]local-user service-type telnet 或 [Huawei-aaa]local-user service-type ssh   2、设置只通过密码登陆VTY 2.1、置用户验证方式为密码验证 [Huawei-ui-vty0-4]authentication-mode password   2.2、设置登陆密码 [Huawei-ui-vty0-4]set authentication password cipher ?   STRING<1-16>/<24>  Plain text/cipher text password   [Huawei-ui-vty0-4]set authentication password cipher   3、设置直接登陆VTY(此模式不安全) [Huawei-ui-vty0-4]authentication-mode none   4、配置VTY用户界面的用户优先级 缺省情况下,VTY用户界面对应的默认命令访问级别是0,实际工作如果对权限要求不是特别严格,一本设置为15级。 [Huawei-ui-vty0-4]user privilege level ?   INTEGER<0-15>  Set a priority   [Huawei-ui-vty0-4]user privilege level 15   5、启用VTY终端服务 [Huawei-ui-vty0-4]shell   6、设置用户超时断连时间 [Huawei-ui-vty0-4]idle-timeout ?   INTEGER<0-35791>  Set the number of minutes before a terminal user times out(default: 10minutes)   7、设置终端屏幕每屏显示的行数 [Huawei-ui-vty0-4]screen-length ?   INTEGER<0-512>  Display the number of lines on a screen (the value 0 indicates none split screen, and the default value is 24)   8、设置终端屏幕显示的列数 [Huawei-ui-vty0-4]screen-width ?   INTEGER<60-512>  Screen width value, the default is 80   9、设置历史命令缓存条数 [Huawei-ui-vty0-4]history-command ?   max-size  Set the size of the maximum history buffer, the default value is 10   [Huawei-ui-console0]history-command max-size ?   INTEGER<0-256>  The size of a history buffer   10、VTY用户界面支持的登陆协议 [Huawei-ui-vty0-4]protocol inbound ?   all     All protocols   ssh     SSH protocol   telnet  Telnet protocol 11、配置VTY用户界面的最大个数 VTY用户界面最大个数是指登录设备的Telnet用户和SSH用户的总和。 当配置VTY用户界面最大个数为0时,任何用户(包括网管用户)都无法通过VTY登录到设备。 如果要配置的VTY类型用户界面的最大个数小于当前在线用户的数量,则系统提示配置失败。如果要配置的VTY类型用户界面的最大个数大于当前最多可以登录用户的数量,就必须为新增加的用户界面配置验证方式。 [Huawei]user-interface maximum-vty ?   INTEGER<0-15>  The maximum number of VTY users, the default value is 5   12、配置VTY用户界面的基于ACL的登录限制 [Huawei-ui-vty0-4]acl ?   INTEGER<2000-3999>  Apply basic or advanced ACL   ipv6                Filter IPv6 addresses   [Huawei-ui-vty0-4]acl 2000 ?   inbound   Filter login connections from the current user interface   outbound  Filter logout connections from the current user interface   13、查看VTY用户界面信息 [Huawei]display user-interface  vty  0 4   Idx  Type     Tx/Rx      Modem Privi ActualPrivi Auth  Int       38   VTY 4               -     15    -           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.   14、查看VTY类型用户界面的最大个数 [Huawei]display user-interface maximum-vty    Maximum of VTY user:15
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 应用文书 > 其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服