码迷,mamicode.com
首页 > Web开发 > 详细

HCNA配置telnet远程管理

时间:2017-12-08 00:00:01      阅读:479      评论:0      收藏:0      [点我收藏+]

标签:prot   stand   abi   str   rip   ges   nbsp   .com   ssi   

1、拓扑图

 

 技术分享图片

说明:通过配置最终能通过R5 用telnet协议登陆到R4上并将R4改名为R44

2、R4配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R4
[R4]user-in    
[R4]user-interface vty    
[R4]user-interface vty 0 4
[R4-ui-vty0-4]au    
[R4-ui-vty0-4]authentication-mode aaa
[R4-ui-vty0-4]q
[R4]aaa
[R4-aaa]lo    
[R4-aaa]local-user user    
[R4-aaa]local-user user-telnet pass    
[R4-aaa]local-user user-telnet password ci    
[R4-aaa]local-user user-telnet password cipher huawei
Info: Add a new user.
[R4-aaa]lo    
[R4-aaa]local-user pri    
[R4-aaa]local-user user    
[R4-aaa]local-user user-telnet pri    
[R4-aaa]local-user user-telnet privilege le    
[R4-aaa]local-user user-telnet privilege level 2
[R4-aaa]loc    
[R4-aaa]local-user user    
[R4-aaa]local-user user-telnet serv    
[R4-aaa]local-user user-telnet service-type tel    
[R4-aaa]local-user user-telnet service-type telnet 
[R4-aaa]    
[R4-aaa]
[R4-aaa]q
[R4]int    
[R4]interface g    
[R4]interface GigabitEthernet 0/0/0
[R4-GigabitEthernet0/0/0]ip add    
[R4-GigabitEthernet0/0/0]ip address 192.168.1.10 24
Dec  7 2017 22:21:26-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]q
[R4]dis ip int    
[R4]dis ip interface bre    
[R4]dis ip interface bre
                     ^
Error: Wrong parameter found at ^ position.
[R4]dis ip interface bri    
[R4]dis ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.10/24      up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[R4]
[R44]

 3、R5配置并进行测试

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R5
[R5]int    
[R5]interface g    
[R5]interface GigabitEthernet 0/0/0
[R5-GigabitEthernet0/0/0]ip add    
[R5-GigabitEthernet0/0/0]ip address 192.168.1.20 24
Dec  7 2017 22:22:37-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R5-GigabitEthernet0/0/0]q
[R5]dis ip in    
[R5]dis ip interface bri    
[R5]dis ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.20/24      up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[R5]ping  192.168.1.10
  PING 192.168.1.10: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.10: bytes=56 Sequence=1 ttl=255 time=160 ms
    Reply from 192.168.1.10: bytes=56 Sequence=2 ttl=255 time=40 ms
    Reply from 192.168.1.10: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.10: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 192.168.1.10: bytes=56 Sequence=5 ttl=255 time=10 ms

  --- 192.168.1.10 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/50/160 ms

[R5]telnet 192.168.1.10
           ^
Error: Unrecognized command found at ^ position.
[R5]tel    
[R5]telnet 192.168.1.10
           ^
Error: Unrecognized command found at ^ position.
[R5]q
<R5>tel    
<R5>telnet 192.168.1.10
  Press CTRL_] to quit telnet mode
  Trying 192.168.1.10 ...
  Connected to 192.168.1.10 ...

Login authentication


Username:user-telnet
Password:
<R4>dis ip in    
<R4>dis ip interface br    
<R4>dis ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.10/24      up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
<R4>sysname R44
    ^
Error: Unrecognized command found at ^ position.
<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]sysname R44
[R44]

 

注意:telnet只能在用户模式上用

创建用户步骤

1、system-view进入系统模式

2、user-interface vty  0 4 进入vty视图

3 、允许AAA授权,退出vty

4、进入AAA模式 进入AAA视图

5、添加用户 local-user user-telnet password ciper huawei

6、授权用户级别2+ local-user user-telnet privileges level 2

7、授权用户可用协议  local-user user-telnet  service-type telnet

8、退出

9、从另外一台路由器登陆测试,前提是IP配置好互相能ping 通

 

HCNA配置telnet远程管理

标签:prot   stand   abi   str   rip   ges   nbsp   .com   ssi   

原文地址:http://www.cnblogs.com/me80/p/8001408.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!