admin 发表于 2021-2-4 17:42:05

HCNA-3 通过配置Telnet登录系统

HCNA-3 通过配置Telnet登录系统


利用Router2和Router3模拟PC通过Telnet远程访问Router1设备;2为普通用户给予监控权,3为管理员给予最高管理权限。1、基本配置Router1<Huawei>clocktimezone BJ add 8:00:00<Huawei>clockdatetime 22:30 2020-04-13<Huawei>system-viewsysnameRouter1headerlogin information "welcome to ipgzj.com"//配置登录时标题文本信息为headershell information "welcome to zurkj.com"//配置登录成功后标题文本信息为interfaceGigabitEthernet 0/0/0ipaddress 10.1.1.1 24quitdisplayip interface briefreturn<Router1>saveRouter2<Huawei>system-viewsysnameRouter2interfaceGigabitEthernet 0/0/0ipaddress 10.1.1.100 24return<Router2>displayip interface brief<Router2>saveRouter3<Huawei>system-viewsysnameRouter3interfaceGigabitEthernet 0/0/0ipaddress 10.1.1.200 24return<Router3>displayip interface brief<Router3>save
2、配置Telnet密码验证Router1<Router1>system-viewuser-interfacevty 0 4//VTY用户界面authentication-modepassword   //认证模式为密码Please configurethe login password (maximum length 16):admin1234//配置密码:return<Router1>save在Router2与Router3上Telnet连接Router1(系统默认给予权限)<Router2>telnet10.1.1.1   //远程登录Press CTRL_] to quit telnet modeTrying 10.1.1.1 ...Connected to 10.1.1.1 ...Loginauthentication   //登录认证Password:<Router1>
3、配置Telnet区分不同用户的权限<Router1>system-viewuser-interfacevty 0 4authentication-modepasswordPlease configurethe login password (maximum length 16):admin1234setauthentication password cipher admin1234 (另一种配置密码的方式)userprivilege level 15//配置用户权限 级别15return<Router1>save在Router2与Router3上Telnet连接Router1(配置级别为15的管理员权限)<Router2>telnet10.1.1.1Press CTRL_] to quit telnet modeTrying 10.1.1.1 ...Connected to 10.1.1.1 ...LoginauthenticationPassword:<Router1>displayusers//查看用户User-Intf   Delay    Type   Network Address   AuthenStatus    AuthorcmdFlag0   CON0   00:01:33                                 pass                   Username : Unspecified+ 129 VTY 0   00:00:00 TEL    10.1.1.100                pass                   Username : Unspecified通过AAA视图配置一个user及zurkj扮演用户和管理员角色用户权限1;管理员15Router1<Router1>system-viewuser-interfacevty 0 4 //VTY用户界面authentication-modeaaa   //认证模式 AAAquitlocal-userzurkj password cipher admin1234   //本地用户zurkj 密码 密文显示admin1234local-userzurkj privilege level 15   //本地用户zurkj权限级别 15local-userzurkj service-type telnet   //本地用户zurkj服务类型Telnetlocal-useruser password cipher admin1234 privilege level 1   //密码和级别可同时配置local-useruser service-type telnetquitdisplaylocal-user   //查看本地用户 ----------------------------------------------------------------------------User-name                      StateAuthMask AdminLevel ----------------------------------------------------------------------------user                           A      T      1          admin                        A      H      -          zurkj                        A      T      15         ----------------------------------------------------------------------------Total 3 user(s)在Router2与Router3上Telnet连接Router1<Router2>telnet10.1.1.1Press CTRL_] to quit telnet modeTrying 10.1.1.1 ...Connected to 10.1.1.1 ...LoginauthenticationUsername:userPassword: -----------------------------------------------------------------------------User last login information:    -----------------------------------------------------------------------------Access Type: Telnet      IP-Address : 10.1.1.1   Time      : 2020-04-13 20:38:43+08:00    -----------------------------------------------------------------------------<Router1>system-view//无权限报错         ^Error:Unrecognized command found at '^' position.
<Router3>telnet10.1.1.1Press CTRL_] to quit telnet modeTrying 10.1.1.1 ...Connected to 10.1.1.1 ...
LoginauthenticationUsername:zurkjPassword: -----------------------------------------------------------------------------User last login information:    -----------------------------------------------------------------------------Access Type: Telnet      IP-Address : 10.1.1.100   Time      : 2020-04-13 20:34:12+08:00    -----------------------------------------------------------------------------<Router1>system-viewEntersystem view, return user view with Ctrl+Z.
页: [1]
查看完整版本: HCNA-3 通过配置Telnet登录系统

公司网站