分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > IT知识

HCNA配置telnet远程管理

发布时间:2023-09-06 01:29责任编辑:傅花花关键词:配置

1、拓扑图

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

2、R4配置

<Huawei>sysEnter 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 huaweiInfo: 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 24Dec ?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): spoofingThe number of interface that is UP in Physical is 2The number of interface that is DOWN in Physical is 2The number of interface that is UP in Protocol is 2The number of interface that is DOWN in Protocol is 2Interface ????????????????????????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>sysEnter 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 24Dec ?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): spoofingThe number of interface that is UP in Physical is 2The number of interface that is DOWN in Physical is 2The number of interface that is UP in Protocol is 2The number of interface that is DOWN in Protocol is 2Interface ????????????????????????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 authenticationUsername:user-telnetPassword:<R4>dis ip in ???<R4>dis ip interface br ???<R4>dis ip interface brief *down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 2The number of interface that is DOWN in Physical is 2The number of interface that is UP in Protocol is 2The number of interface that is DOWN in Protocol is 2Interface ????????????????????????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>sysEnter 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远程管理

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

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved