设为首页收藏本站language 语言切换
查看: 3532|回复: 30
收起左侧

[分享] H3C (v7平台)Console口通过账号密码登陆配置教程

[复制链接]
 成长值: 65030
发表于 2017-10-9 11:07:29 | 显示全部楼层 |阅读模式
H3C (v7平台)Console口通过账号密码登陆配置教程
看不懂的地方请看后面的释义
1、设置登陆账号
[H3C]local-user ?
  STRING<1-80>  Local user name, which can contain the domain name

[H3C]local-user 023wg.com ?
  class  Specify a class for the local user
  <cr>

[H3C]local-user 023wg.com class ?
  manage   Device management user
  network  Network access user

[H3C]local-user 023wg.com class manage ?
  <cr>

[H3C]local-user 023wg.com class manage
New local user added.
[H3C-luser-manage-023wg.com]

2、设置登录账号密码
[H3C-luser-manage-023wg.com]password ?
  hash    Specify a hashtext password
  simple  Specify a plaintext password
  <cr>

[H3C-luser-manage-023wg.com]password simple ?
  STRING<1-63>  Plaintext password string

[H3C-luser-manage-023wg.com]password simple www.023wg.com
[H3C-luser-manage-023wg.com]

3、设置登录账号的权限(官方说法为授权用户角色)
[H3C-luser-manage-023wg.com]authorization-attribute ?
  acl                    Specify ACL of local user
  callback-number        Specify PPP callback number of local user
  idle-cut               Specify idle cut function for local user
  ip                     Specify the IP address of local user
  ip-pool                Specify the IP address pool of local user
  ipv6                   Specify the IPv6 address of local user
  ipv6-pool              Specify the IPv6 address pool of local user
  ipv6-prefix            Specify the IPv6 address prefix of local user
  primary-dns            Specify the primary DNS server of local user
  secondary-dns          Specify the secondary DNS server of local user
  session-group-profile  Specify the session group profile of local user
  session-timeout        Specify time of session-timeout
  sslvpn-policy-group    Specify the SSL VPN policy group name of local user
  subscriber-id          Specify the subscriber ID of local user
  url                    Specify the URL of local user
  user-profile           Specify user profile of local user
  user-role              Specify user role of the local user
  vlan                   Specify VLAN ID of local user
  vpn-instance           Specify the VPN instance of local user
  work-directory         Specify work directory of local user

[H3C-luser-manage-023wg.com]authorization-attribute user-role ?
  STRING<1-63>      User role name
  network-admin
  network-operator
  level-0
  level-1
  level-2
  level-3
  level-4
  level-5
  level-6
  level-7
  level-8
  level-9
  level-10
  level-11
  level-12
  level-13
  level-14
  level-15
  security-audit
  guest-manager

[H3C-luser-manage-023wg.com]authorization-attribute user-role network-admin

4、设置登陆账号的服务类型
[H3C-luser-manage-023wg.com]service-type ?
  ftp       FTP service
  http      HTTP service type
  https     HTTPS service type
  pad       X.25 PAD service
  ssh       Secure Shell service
  telnet    Telnet service
  terminal  Terminal access service

[H3C-luser-manage-023wg.com]service-type terminal

5、设置Console登陆采用账号密码登陆模式(即AAA或scheme认证方式)
[H3C]line console ?
  INTEGER<0-9>  Number of the first line

[H3C]line console 0
[H3C-line-console0]
[H3C-line-console0]authentication-mode ?
  none      Login without authentication
  password  Password authentication
  scheme    Authentication use AAA

[H3C-line-console0]authentication-mode scheme ?
  <cr>

[H3C-line-console0]authentication-mode scheme

6、验证设置
[H3C-line-console0]q
[H3C]sa
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
[H3C]qu
<H3C>qu


******************************************************************************
* Copyright (c) 2004-2016 Hangzhou H3C Tech. Co., Ltd. All rights reserved.  *
* Without the owner's prior written consent,                                 *
* no decompiling or reverse-engineering shall be allowed.                    *
******************************************************************************

Line con0 is available.


Press ENTER to get started.
login: 023wg.com
Password:

<H3C>

7、释义
H3Cv7平台相较于V5平台配置思路与含义有了一些变化,这些变化之处重庆网管博客做个释义,欢迎各位道友留言或进群讨论。
7.1、关于用户类别
[H3C]local-user 023wg.com class ?
  manage   Device management user
  network  Network access user

class:指定本地用户的类别。若不指定本参数,则表示设备管理类用户。
manage:设备管理类用户,用于登录设备,对设备进行配置和监控。此类用户可以提供ftp、http、https、telnet、ssh、terminal和pad服务。
network:网络接入类用户,用于通过设备接入网络,访问网络资源。此类用户可以提供advpn、ike、ipoe、lan-access、portal、ppp和sslvpn服务。
guest:来宾用户,仅能在帐户有效期内提供lan-access和portal服务。

7.2、授权用户角色
[H3C-luser-manage-023wg.com]authorization-attribute user-role ?
  STRING<1-63>      User role name
  network-admin
  network-operator
  level-0
  level-1
  level-2
  level-3
  level-4
  level-5
  level-6
  level-7
  level-8
  level-9
  level-10
  level-11
  level-12
  level-13
  level-14
  level-15
  security-audit
  guest-manager
游客,如果您要查看本帖隐藏内容请回复

发表于 2017-10-9 11:44:36 | 显示全部楼层
好东西谢谢楼主分享
沙发 2017-10-9 11:44:36 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-10-20 09:02:59 | 显示全部楼层
111111111111111
6# 2017-10-20 09:02:59 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-10-23 17:25:22 | 显示全部楼层
謝謝樓主詳解,感謝
7# 2017-10-23 17:25:22 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-12-2 19:03:23 | 显示全部楼层
謝謝樓主詳解,感謝
8# 2017-12-2 19:03:23 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-12-3 17:29:54 | 显示全部楼层
谢谢楼主分享
9# 2017-12-3 17:29:54 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-12-8 08:32:56 | 显示全部楼层
学习学习,谢谢分享
10# 2017-12-8 08:32:56 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-12-23 15:49:37 | 显示全部楼层
很好额外恶趣味
12# 2017-12-23 15:49:37 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-1-16 15:54:23 | 显示全部楼层
大大大大大大大大大大大大大大大大大大dddd
15# 2018-1-16 15:54:23 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-22 09:18 , Processed in 0.102742 second(s), 22 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表