如何轻松操作H3C路由器进行登录与管理
一、本地用户Telnet登录管理(模拟器实验)
1、在配置之前要添加一个以太网接口,默认是桥接到本地的网卡上(建议添加一个微软的逻辑口,并禁用本地物理网卡,让它桥接到逻辑接口上) 也可以编辑路由器的配置文件“hardcfg.tcl”添加代码“AddEthernet -index 1”,在启动路由器即可!!
<H3C>format flash: //要想保存数据 ,必须格式化
All data on flash: will be lost , proceed with format ? [Y/N]:y
./
%Format flash: completed.
<H3C>system-view
[H3C]telnet server enable //启动telnet服务
[H3C]password-control length 4 //默认密码长度为10,这里设为4
[H3C]local-user zzx //添加一个用户
New local user added.
[H3C-luser-zzx]password simple admin //密码
Updating user(s) information, please wait....
[H3C-luser-zzx]service-type telnet level 3 //服务类型 ,权限为3 即管理级别(有的是命令authorization-attribute level 3)
[H3C-luser-zzx]quit
[H3C]user-interface vty 0 4 //设置同时登录的用户为5个
[H3C-ui-vty0-4]authentication-mode scheme //验证用户名和密码
[H3C-ui-vty0-4]quit
[H3C]inter Ethernet 0/1/0 //配置接口地址
[H3C-Ethernet0/1/0]ip add 192.168.10.10 255.255.255.0
缺省情况下,用户使用Telnet方式登录设备,通过口令验证后,只能使用级别为0的命令。 如果想使用1,2,3级别的命令可以配置super password xxxx 来实现
或者通过验证密码
[H3C] user-interface vty 0 4
[H3C-ui-vty0-4] authentication-mode password
[H3C-ui-vty0-4] set authentication password cipher 123
[H3C-ui-vty0-4] user privilege level 2 //在这里指明级别
二、本地用户console登录管理
(不同之处)
[H3C-luser-zzx]service-type terminal //设置服务类型为terminal
[H3C]user-interface con 0
[H3C-ui-vty0-4]authentication-mode scheme //设置scheme认证
三、SSH方式登录管理
1、验证方式为pasword认证
[H3C]local-user zzx //创建本地账号
[H3C-luser-zzx]password simple zzx123
[H3C-luser-zzx]service-type ssh //服务类型为ssh
[H3C-luser-zzx]level 3 //级别为3
[H3C]inter Ethernet 0/1/0 //配置接口地址
[H3C-Ethernet0/1/0]ip add 192.168.10.10 255.255.255.0
[H3C]ssh server enable //开启ssh服务
[H3C]ssh user zzx service-type stelnet authentication-type password //SSH用户client1的服务类型为stelnet,即安全Telnet,使用密码认证方式
[H3C]public-key local create rsa //生成本地密钥对并指定密钥长度
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits of the modulus[default = 1024]:
Generating Keys...
...++..++...++..++...++...++...++..++.+++++++++.+++++++
连接一下看看如下;
2、验证方式为公钥认证
[H3C]public-key local create rsa //生成1024位的rsa本地密钥对
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits of the modulus[default = 1024]:
Generating Keys...
...++..++...++..++...++...++...++..++.+++++++++.+++++++
<H3C>tftp 192.168.10.1 get Identity.pub //导入公钥.(公钥是用Secure CRT软件创建的)
File will be transferred in binary mode
Downloading file from remote TFTP server, please wait...\
下一篇: 快速上手H3C模拟器的简易操作指南
推荐阅读
-
像首席技术官一样思考:如何高效管理 30 人的研发团队?-管理越多越轻松。好的研发团队,应该是上拨下用,即下级对上级的向上管理;而不是反过来,总是向下管理,甚至是 CTO 做经理的事,经理做工程师的事,工程师最终会被当成实习生。如果是这样,就会越管越累,不仅团队无法成长,而且团队整天很忙还效率低下,问题一大堆。 有这样一个小故事:一位高级经理下班后帮忙倒垃圾,结果被老板训斥了一顿。这就好比首席技术官做了实习生自己该做的事。事情本身没有对错之分,只是从不同的角度有不同的理解。 古人云:"用人不疑,疑人不用"。在面对自己的研发团队时,应该相信他们能做好,授权一线开发人员充分发挥专业特长,不要限制他们的工作。但在相信他们的同时,也要进行二次确认,始终秉持 "我相信,但我要确认 "的原则和严谨的精神。因为每个人都会犯错和疏忽,通过发挥团队的智慧,团队犯错的机会就会大大减少。比如回归测试、代码审查、开发演示、变更审批等等。 如前所述,每个人都难免会犯错。但作为管理者,你所设计和商定的流程不能出错。管理者的每一个决定和沟通都应该经过深思熟虑。就像红绿灯的交通设计,某辆车不小心闯红灯可能会扣分,但红绿灯的设计一定要正确、人性化、统一。再比如,开发人员可能会因为疏忽大意写出 bug,但研发流程的设计和上线流程的发布不能有任何差错。因此,流程体系的设计,一方面要结合当前团队规模、业务特点和需要重点解决的问题来设计,另一方面也要在人员防错、效率提升、发挥团队集体智慧等维度进行综合考量。应该站在更高更抽象的角度去思考,不断思考一个倍受欢迎的园区应该如何设计,思考一个灵动、经典、永恒的建筑应该遵循怎样的模式,思考一个成功、优秀、卓越的研发团队应该需要怎样的流程和制度。 最后,反馈很重要。向上汇报很重要,向下反馈也很重要。能够保持顺畅的双向反馈和闭环管理,对研发团队的协作和沟通有着非常明显的积极作用。在向上汇报方面,要培养团队在正式汇报、会议汇报、私下沟通、书面总结、非正式场合等方面的沟通能力,提醒下属报喜也要报忧。凡事先记录,再跟进,最后反馈。反馈很重要,主动汇报更难得。 另一方面,同时也不要忽视向下反馈。好的爱,是双向的。团队也是如此,没有严格的上下级之分,只是分工和角色不同而已。作为管理者,不必总保持一种 "神秘感",让人 "捉摸不透 "才是牛。当团队做得好或有人做得好时,要记得在公开或私下场合给予肯定和赞许。业务有增长、业绩有提升时,别忘了给团队一些鼓励,或者安排一次下午茶或聚餐。在例会或正式会议上,也可以同步向大家传达一些重要信息和高层指示。"欲速则不达,欲远则同行"。 当向上汇报、向下反馈的沟通闭环形成后,同时结合前面研发过程的管理闭环,双管齐下,就能形成良性循环。如此反复,持之以恒,优秀卓越的研发团队,必将呈现。 能力、产出和效率 接下来,继续重复关于能力、产出和效率的话题。 站在不同的角色,以及一个企业经营、生存和发展所需要的基础上,我把研发生产力分为三个层次,分别是:一线员工关心的研发能力、管理层关心的软件产出和操作人员关心的企业生产效率。简单概括就是:既要把工作做好,又要能出成果,还要能帮企业赚钱。
-
在SpringBoot项目中,我们如何轻松利用logback来进行日志操控与管理?
-
如何在Linux中轻松使用tar命令进行文件压缩与解压缩操作
-
如何在Linux中轻松操作tar命令进行文件压缩与解压
-
如何轻松操作H3C路由器进行登录与管理
-
轻松掌握K8S:如何在K8S中管理与操作容器?
-
如何轻松进行Disql的数据备份与恢复操作
-
如何轻松安装与操作 Tampermonkey 用户脚本管理器:详解教程
-
如何轻松安装与操作用户脚本管理器Tampermonkey的图文指南
-
如何轻松运用Hutool工具进行加密与解密操作