AR1--------SW

首先配置路由器
<Huawei>sys //进入系统视图模式,能配置更多的命令
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR1 //路由器进行重命名,为了方便区分不同机器
[AR1]int g
[AR1]int GigabitEthernet 0/0/1 //进入界面接口0/0/1 模式,只对这一个接口进行命令配置
[AR1-GigabitEthernet0/0/1]ip add 10.1.10.30 255.255.255.224 //在接口模式下配置IP地址,指定了这个接口的静态IP
[AR1-GigabitEthernet0/0/1]ip add 10.1.10.30 255.255.255.224
Sep 16 2018 12:30:51-08:00 AR1 %%01IFNET/4/LINKSTATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR1-GigabitEthernet0/0/1]dis th //显示这个接口的配置信息
[V200R003C00]
#
interface GigabitEthernet0/0/1
ip address 10.1.10.30 255.255.255.224
#
return
[AR1-GigabitEthernet0/0/1]return //返回用户视图模式
<AR1>
<AR1>tenlet 10.1.10.10
^
Error: Unrecognized command found at '^' position.
<AR1>telnet 10.1.10.10 //用户视图模式下通过Telnet远程登录交换机,只有用户视图下才能远程连接
Press CTRL
] to quit telnet mode
Trying 10.1.10.10 ...
Connected to 10.1.10.10 ...

Login authentication

Password: //登录成功输入密码
Info: The max number of VTY users is 5, and the number
of current VTY users on line is 1.
The current login time is 2018-09-16 12:43:39.
<SwitchA> //登录成功,显示交换机用户视图
<SwitchA>
<SwitchA>
<SwitchA>sys //进入交换机的系统视图模式
Enter system view, return user view with Ctrl+Z.

配置交换机
<Huawei>
<Huawei>
<Huawei>sys //进入系统视图模式
Enter system view, return user view with Ctrl+Z.
[Huawei]sys SwitchA //交换机进行重命名
[SwitchA]
Sep 16 2018 12:31:23-08:00 SwitchA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 4, the change loop count is 0, and the maximum number of records is 4095.
[SwitchA]int vlanif 1 //进入Vlanif1虚拟界面接口1配置模式
[SwitchA-Vlanif1]ip add 10.1.10.30 255.255.255.224 //在虚拟接口下配置IP地址,在物理接口下是不能配置IP地址的
[SwitchA-Vlanif1]
Sep 16 2018 12:31:54-08:00 SwitchA %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface Vlanif1 has entered the UP state.
[SwitchA-Vlanif1]dis th //显示这个接口的配置信息
#
interface Vlanif1
ip address 10.1.10.30 255.255.255.224
#
return
[SwitchA-Vlanif1]
Sep 16 2018 12:32:03-08:00 SwitchA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 5, the change loop count is 0, and the maximum number of records is 4095.
[SwitchA-Vlanif1]quti
^
Error: Unrecognized command found at '^' position.
[SwitchA-Vlanif1]quit //退回上一层配置模式
[SwitchA]user-in
[SwitchA]user-interface vty 0 4 //进入用户界面里的远程配置模式,可以有多个用户同时进入交换机
[SwitchA-ui-vty0-4]aut
[SwitchA-ui-vty0-4]authentication-mode pass
[SwitchA-ui-vty0-4]authentication-mode password //在认证模式下选择密码认证
[SwitchA-ui-vty0-4]set aut
[SwitchA-ui-vty0-4]set authentication pass
[SwitchA-ui-vty0-4]set authentication password yyb-qytang
^
Error: Unrecognized command found at '^' position.
[SwitchA-ui-vty0-4]set authentication password c
[SwitchA-ui-vty0-4]set authentication password cipher yyb-qytang //设置认证密码以密文模式下
[SwitchA-ui-vty0-4]
Sep 16 2018 12:34:23-08:00 SwitchA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 6, the change loop count is 0, and the maximum number of records is 4095.
[SwitchA-ui-vty0-4]dis th //显示这个接口的配置信息
#
user-interface con 0
user-interface vty 0 4
set authentication password cipher }v.E/rh)PRVE~rNUsCR!!#I#
#
Return
return
[SwitchA-ui-vty0-4]return //返回用户视图模式
<SwitchA>ping 10.1.10.30 //测试连接路由器成功
PING 10.1.10.30: 56 data bytes, press CTRL_C to break
Reply from 10.1.10.30: bytes=56 Sequence=1 ttl=255 time=10 ms
Reply from 10.1.10.30: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 10.1.10.30: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 10.1.10.30: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 10.1.10.30: bytes=56 Sequence=5 ttl=255 time=1 ms

--- 10.1.10.30 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/8/30 ms

<SwitchA>ping 10.1.10.10 //测试连接自己失败
PING 10.1.10.10: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out

--- 10.1.10.10 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss //翻看前面设置的IP,不通的原因是设置了和路由器一样的IP

<SwitchA>sys //在次进入系统视图模式
Enter system view, return user view with Ctrl+Z.

#
return
[SwitchA-Vlanif1]ip add 10.1.10.10 255.255.255.224 //从新配置IP地址
[SwitchA-Vlanif1]
Sep 16 2018 12:36:50-08:00 SwitchA %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP on the interface Vlanif1 has entered the UP state.
Sep 16 2018 12:36:53-08:00 SwitchA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 8, the change loop count is 0, and the maximum number of records is 4095.
[SwitchA-Vlanif1]dis th //显示这个接口的配置信息

#
interface Vlanif1ip address 10.1.10.10 255.255.255.224
#
return
[SwitchA-Vlanif1]return                     //退到用户视图模式
<SwitchA>ping 10.1.10.10                              //Ping交换机自己成功PING 10.1.10.10: 56  data bytes, press CTRL_C to breakReply from 10.1.10.10: bytes=56 Sequence=1 ttl=255 time=30 msReply from 10.1.10.10: bytes=56 Sequence=2 ttl=255 time=1 msReply from 10.1.10.10: bytes=56 Sequence=3 ttl=255 time=10 msReply from 10.1.10.10: bytes=56 Sequence=4 ttl=255 time=1 msReply from 10.1.10.10: bytes=56 Sequence=5 ttl=255 time=1 ms--- 10.1.10.10 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 1/8/30 ms<SwitchA>ping 10.1.10.30                         //Ping路由器成功PING 10.1.10.30: 56  data bytes, press CTRL_C to breakReply from 10.1.10.30: bytes=56 Sequence=1 ttl=255 time=110 msReply from 10.1.10.30: bytes=56 Sequence=2 ttl=255 time=20 msReply from 10.1.10.30: bytes=56 Sequence=3 ttl=255 time=50 msReply from 10.1.10.30: bytes=56 Sequence=4 ttl=255 time=50 msReply from 10.1.10.30: bytes=56 Sequence=5 ttl=255 time=40 ms--- 10.1.10.30 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 20/54/110 ms

<SwitchA>sys //进入系统视图模式
Enter system view, return user view with Ctrl+Z.
[SwitchA]user-in
[SwitchA]user-interface vty 0 4 //进入用户界面里的远程管理模式

[SwitchA-ui-vty0-4]user privilege level 15 //设置用户访问权限等级为最大15级,权限大小决定了能使用命令的多少
[SwitchA-ui-vty0-4]dis th //显示这个接口的配置信息
#
user-interface con 0
user-interface vty 0 4
user privilege level 15
set authentication password cipher }v.E/rh)PRVE~rNUsCR!!#I#
#
return


[SwitchA-ui-vty0-4]
Sep 16 2018 12:42:13-08:00 SwitchA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 9, the change loop count is 0, and the maximum number of records is 4095.
[SwitchA-ui-vty0-4]return                                //配置Telnet远程登录结束,下面开始抓包实验使用Wireshark对路由器0/0/1接口Telnet登录时进行抓包![](https://s1.51cto.com/images/blog/201809/27/ffcf0ea700a07ac577e0ca3beb093467.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)![](https://s1.51cto.com/images/blog/201809/27/bd5c1fd3affce42af7ba27c0cbcaf5fa.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)![](https://s1.51cto.com/images/blog/201809/27/bfcb5678cca1a191904e19d2e35778c3.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)![](https://s1.51cto.com/images/blog/201809/27/58414f6d5cc3deeca312e2dd1e7c8db5.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)![](https://s1.51cto.com/images/blog/201809/27/0e5a38931f469682d4adc2ca6346df4a.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)实验结果:对命令的熟悉,IP地址配置一定要正确,IP配好后一定要确认ping通。抓包的数据显示了TCP/IP的分层结构,了解了4层数据封装结构模型,对远程访问的数据的传输形式,Telnet的传输模式不利于数据的保密性,很容易被破解密码。

转载于:https://blog.51cto.com/enderjoe/2286743

华为设备经典的地址以及远程登录(VTY)实施相关推荐

  1. 华为路由器console口加密 telnet远程登录 DHCP server在路由器中的两种写法

    console口加密 方法一 [Huawei]user-interface console 0 [Huawei-ui-console0]authentication-mode password Ple ...

  2. 华为设备远程登录(Telnet、SSH)配置

    一.Telnet登录配置 一台交换机能够通过Telnet登录的条件是: 交换机已经配置了IP地址: 交换机已经配置了远程登录密码: 交换机已经配置了特权密码: 交换机已经接入网络并开始工作: 这时,我 ...

  3. VRP基础(华为设备操作系统)

    目录 1.VRP简介 (1)前言 (2)什么是VRP 2.VRP命令行 (1)用户视图 (2)系统视图 (3)接口视图 (4)用户权限级别与命令级别的对应关系 (5)命令行的使用 [1]进入命令视图 ...

  4. 远程登录之中的安全特性

    远程登录之中的安全特性 本篇介绍思科中远程登录中的安全特性,可以有效的保护IOS文件和configuration文件的安全,防止恶意删除. 也可以有效的防止通过暴力破解获取设备的用户及密码,从而保护设 ...

  5. Telnet远程登录+实验

    前言: Telnet通常用在远程登录应用中,方便对本地或远端运行的网络设备进行管理.配置.监听和维护,提高了用户的灵活操作性.Telnet协议是TCP/IP协议族中应用层协议之一,Telnet服务器与 ...

  6. Telnet远程登录

    一.相关知识介绍 1.Telnet通常用在远程登录应用中,方便对本地或远端运行的网络设备进行管理.配置.监听和维护,提高了用户的灵活操作性.Telnet协议是TCP/IP协议族中应用层协议之一.Tel ...

  7. 服务器远程登录用户在哪查看,RAKsmart VNC用户登录信息在哪查看?

    前面跟大家分享了RAKsmart Windows美国服务器远程连接VNC方法,不过很多小伙伴在用客户端连接远程服务器时,对用户登录信息不知道怎么填写,也不知道在哪里查看.这里就给大家介绍下. 1.首先 ...

  8. 电脑远程登录控制Android手机-Webkey For Android使用教程

    通过电脑以WIFI无线方式登录Android安卓手机,就像Linux的SSH远程控制一样,可以在电脑浏览器中打开手机屏幕,并执行手机程序(打电话.发短信.上网等),还可以查看.操作SDCard的文件, ...

  9. 华为设备Telnet远程登录配置

    2020年5月14日的今天是一个特别的日子,因为我决定做一个自律的网络工程师,通过CSDN博客平台来记录我的毕生所学以及遇到的问题,从此告别垃圾网工,走向人生巅峰迎娶白富美云宝.咳咳,不多逼逼,第一篇 ...

最新文章

  1. [云炬创业基础笔记]第五章创业机会评估测试1
  2. python中importlib模块安装_Python中标准模块importlib详解
  3. MySQL 数据库设计规范
  4. Leetcode每日一题:all-nodes-distance-k-in-binary-tree(二叉树中所有距离为K的节点)
  5. SQL Server 版本变更检查
  6. JLink OB STM32F072 固件的过程
  7. MATLAB求解夏普利值
  8. NetLogo的下载安装过程
  9. repo+manifests+git方式管理安卓代码
  10. excel表格横向纵向变换_从Python到Excel
  11. 求解矩阵A的满秩分解的一般方法
  12. 彻底搞懂VGGNet-16
  13. Nginx网站服务(安装nginx、平滑升级nginx、nginx各种访问配置)
  14. 明朝皇帝有哪些(按在位顺序排列)?
  15. js实现div的碰壁反弹效果
  16. python异或^ 移位运算符
  17. HTML-坦克大战-完成子弹连发功能(三)
  18. 记录总结-如何逮捕实验室的老鼠
  19. 运维之道 | Ansible 安装使用
  20. 计算字符串的信息熵(香农熵)

热门文章

  1. 联想杜比音效_联想小新15 2020锐龙版首销;OPPO Find X2系列也可尝鲜安卓11
  2. php mysql 时间差_PHP中计算时间差的方法
  3. 跟百万人一起在快手学自动驾驶,是种怎样的体验?
  4. 商汤三体梦幻联动,能遭遇水滴的那种元宇宙要来了!我在现场听见了次元壁破碎的声音...
  5. 英特尔用英伟达显卡,给GTA5打了个超强画质补丁
  6. 华为“燃料”助力荣耀向上,全力冲击高端市场
  7. 华为这台「技术暴力输出机」,亮出「云原生2.0」,研发效率飙升10倍!
  8. 数据回填过程中,不可设置nobackfill和norecover
  9. 设置CentOS 6.6系统默认的语言为中文
  10. 解决TCP网络传输“粘包”问题