zoukankan      html  css  js  c++  java
  • HCNA配置console线路密码aaa认证

    
      Please check whether system data has been changed, and save data in time
    
      Configuration console time out, please press any key to log on
    
    
    Login authentication
    
    
    Password:
    <R2>sys    
    <R2>system-view 
    Enter system view, return user view with Ctrl+Z.
    [R2]user-in    
    [R2]user-interface conso    
    [R2]user-interface console 0
    [R2-ui-console0]auth    
    [R2-ui-console0]authentication-mode aaa
    [R2-ui-console0]quit    
    [R2-ui-console0]quit 
    [R2]aaa
    [R2-aaa]loc    
    [R2-aaa]local-user user0 pass    
    [R2-aaa]local-user user0 password cip    
    [R2-aaa]local-user user0 password cipher huawei123
    Info: Add a new user.
    [R2-aaa]loc    
    [R2-aaa]local-user user1 ?
      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
    [R2-aaa]local-user user1 pass    
    [R2-aaa]local-user user1 password ?
      cipher  User password with cipher text
    [R2-aaa]local-user user1 password ci    
    [R2-aaa]local-user user1 password cipher huawei123
    Info: Add a new user.
    [R2-aaa]loc    
    [R2-aaa]local-user user2 pass    
    [R2-aaa]local-user user2 password cip    
    [R2-aaa]local-user user2 password cipher huawei123
    Info: Add a new user.
    [R2-aaa]q
    [R2]q
    <R2>q
    
      Configuration console exit, please press any key to log on
    
    
    Login authentication
    
    
    Username:user0
    Password:
    <R2>?
    User view commands:
      arp-ping               ARP-ping
      autosave               <Group> autosave command group
      backup                 Backup  information
      cd                     Change current directory 
      clear                  <Group> clear command group
      clock                  Specify the system clock
      cls                    Clear screen
      compare                Compare configuration file
      copy                   Copy from one file to another 
      debugging              <Group> debugging command group
      delete                 Delete a file 
      dialer                 Dialer
      dir                    List files on a filesystem 
      display                Display information
      factory-configuration  Factory configuration
      fixdisk                Try to restory disk 
      format                 Format file system
      free                   Release a user terminal interface
      ftp                    Establish an FTP connection
      help                   Description of the interactive help system
      hwtacacs-user          HWTACACS user
      license                <Group> license command group
      lldp                   Link Layer Discovery Protocol
    
    <R2>

    配置用户级别

    设置user0用户为0级 访问级别

    Configuration console exit, please press any key to log on
    
    
    Login authentication
    
    
    Username:user0
    Password:
    <R2>?
    User view commands:
      arp-ping               ARP-ping
      autosave               <Group> autosave command group
      backup                 Backup  information
      cd                     Change current directory 
      clear                  <Group> clear command group
      clock                  Specify the system clock
      cls                    Clear screen
      compare                Compare configuration file
      copy                   Copy from one file to another 
      debugging              <Group> debugging command group
      delete                 Delete a file 
      dialer                 Dialer
      dir                    List files on a filesystem 
      display                Display information
      factory-configuration  Factory configuration
      fixdisk                Try to restory disk 
      format                 Format file system
      free                   Release a user terminal interface
      ftp                    Establish an FTP connection
      help                   Description of the interactive help system
      hwtacacs-user          HWTACACS user
      license                <Group> license command group
      lldp                   Link Layer Discovery Protocol
    
    <R2>aaa
        ^
    Error: Unrecognized command found at '^' position.
    <R2>sys    
    <R2>system-view 
    Enter system view, return user view with Ctrl+Z.
    [R2]aaa    
    [R2]aaa
    [R2-aaa]lo    
    [R2-aaa]local-user pri    
    [R2-aaa]local-user?
      local-user  Add/Delete/Set user(s)
    [R2-aaa]local-user user    
    [R2-aaa]local-user user0 ?
      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
    [R2-aaa]loc    
    [R2-aaa]local-user user    
    [R2-aaa]local-user user0 pri    
    [R2-aaa]local-user user0 privilege ?
      level  Set admin user(s) level
    [R2-aaa]local-user user0 privilege 0
                                       ^
    Error: Unrecognized command found at '^' position.
    [R2-aaa]local-user user0 privilege lev    
    [R2-aaa]local-user user0 privilege level ?
      INTEGER<0-15>  Level value
    [R2-aaa]local-user user0 privilege level 0
    [R2-aaa]loc    
    [R2-aaa]local-user user    
    [R2-aaa]local-user user1    
    [R2-aaa]local-user user1 pri    
    [R2-aaa]local-user user1 privilege level    
    [R2-aaa]local-user user1 privilege level 1
    [R2-aaa]local-user user2    
    [R2-aaa]local-user user2 pri    
    [R2-aaa]local-user user2 privilege lev    
    [R2-aaa]local-user user2 privilege level 2
    [R2-aaa]q
    [R2]q
    <R2>q
    
      Configuration console exit, please press any key to log on
    
    
    Login authentication
    
    
    Username:user0
    Password:
      ----------------------------------------------------------------------------- 
        
      User last login information:     
      -----------------------------------------------------------------------------
      Access Type: Serial      
      IP-Address : --     
      Time       : 2017-12-07 21:04:46-08:00     
      -----------------------------------------------------------------------------
    <R2>?
    User view commands:
      display        Display information
      hwtacacs-user  HWTACACS user
      local-user     Add/Delete/Set user(s)
      ping           Ping function
      quit           Exit from current mode and enter prior mode
      save           Save file
      super          Modify super password parameters
      telnet         Open a telnet connection
      tracert        <Group> tracert command group
    

    设置user1用户为1级权限为监控级也不能进入系统视图

    设置user2用户为2级权限可以进入系统视图了

  • 相关阅读:
    最近的题越来越难了,卧槽,搞一上午一题不会,题解也看不懂
    hdu 4630 树状数组 ****
    hdu 3473 划分树 ***
    hdu 3360 最小点覆盖 **
    hdu 1507 记录路径的二分匹配 **
    poj 3177 边双联通 **
    hdu 4612 边双联通 ***
    Elasticsearch聚合后分页深入详解
    redis 五种数据类型及其使用场景
    再有人问你分布式锁,这篇文章扔给他
  • 原文地址:https://www.cnblogs.com/me80/p/8001104.html
Copyright © 2011-2022 走看看