华为交换机默认密码_华为防火墙路由器三层交换机的维护时都少不了这几条命令...

17e72c896038e958e9b3b871b469f5d8.gif

有一些朋友对华为配置命令不是很熟悉,今天给大家普及一下华为网络操作系统平台(VRP)。

何为VRP其实没有必要深入了解,他是华为所有通讯产品的核心,核心的东西你想深入了解也是了解不了的,哈哈!

定义:VRP (Versatile Routing Platform)即通用路由平台,是华为在通信领域多年的研究经验结晶,是华为所有基于IP/ATM构架的数据通信产品操作系统平台。运行VRP操作系统的华为产品包括路由器、局域网交换机、ATM交换机、拨号访问服务器、IP电话网关、电信级综合业务接入平台、智能业务选择网关,以及专用硬件防火墙等。

今天要给大家讲的是作为一个已有华为通信设备环境的网络工程师维护设备时最要具备的命令知识:

一、如何通过console口连接路由器

用Console线缆(RJ45转RJ232)将笔记本连接到路由器的CON/AUX口,然后通过第三方SecureCRT软件进行连接(现在Win7系统更新之后就没有系统自带的终端仿真软件),如下图:

0f931d46bd8e16da4116a777f03baf43.png

4fd24df0606c4c36a1fb71cfa222d841.png

ba2ae3fc43c3690c60cea69e16b6fd08.png

连接成功后,是时候展现你真正技术的时候了

实验拓扑图如下(此处开始在eNSP模拟环境下写文):

60b39a38641f18386f42db5aaf67c36c.png

输入"?"回车可以看到全局模式下可用的所用命令;

输入"system-view"回车后再输入"?"将是系统视图下所有可用的命令;

输入"display ?"回车可以看到设备所有以dis开头的命令。如果你对英语熟练,那你学习起来将更快。

如:display version //显示设备版本号、型号、启动时间

d91d9317f9c933e1f0164035a85f0036.png

二、配置设备console密码、主机名、时间、时区、baner

system-view //进入系统视图

Enter system view, return user view with Ctrl+Z.

[Huawei]

[Huawei]quit //退出系统视图

system-view

[Huawei]sysname R1 //配置主机名

[R1]

[R1]header login information "Welcome to UUU" //配置登录banner,如telnet等

[R1]header shell information "Welcome to henanyunqi" //配置登录banner,如console

[R1]user-interface console 0 //进入console口,默认无密码

[R1-ui-console0]authentication-mode password //配置console密码,提高安全性(用户名密码登录改用aaa命令)

Please configure the login password (maximum length 16):14 //选择密码长度

[R1-ui-console0]set authentication password cipher henanyunqi //配置一个密文形式密码河南云栖小写拼音

[R1-ui-console0]idle-timeout 5 //配置空闲超时为5分钟,默认10分钟

三、配置接口地址与VTY验证

[R1]display ip interface brief //查看接口状态

[R1]display interface g0/0/0 //查看接口详细信息

[R1]interface g0/0/0 //进入接口模式

[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 255.255.255.0 //配置接口IP地址(注:端口有修改就自动开启,无需手动开启)

[R1]user-interface vty 0 4 //配置用户账号和密码

[R1-ui-vty0-4]authentication-mode aaa //改为aaa用户名+密码身份验证模式

[R1-ui-vty0-4]quit

[R1]aaa

[R1-aaa]local-user JRTT password henanyunqi //新建一个用户账号为JRTT密码为henanyunqi

四、查看、保存、清空、重启路由器

[R1]display current-configuration //查看路由器当前配置信息

save //保存路由器当前配置信息

The current configuration will be written to the device.

Are you sure to continue? (y/n)[n]:y

It will take several minutes to save configuration file, please wait......

Configuration file had been saved successfully

Note: The configuration file will take effect after being activated

startup saved-configuration kb.zip //配置下次启动加载配置文件kb.zip

This operation will take several minutes, please wait.........

Info: Succeeded in setting the file for booting system

display startup //查看下次启动加载配置文件

MainBoard:

Startup system software: null

Next startup system software: null

Backup system software for next startup: null

Startup saved-configuration file: flash:/vrpcfg.zip

Next startup saved-configuration file: flash:/vrpcfg.zip

Startup license file: null

Next startup license file: null

Startup patch package: null

Next startup patch package: null

Startup voice-files: null

Next startup voice-files: null

reset saved-configuration //清空配置

This will delete the configuration in the flash memory.

The device configurations will be erased to reconfigure.

Are you sure? (y/n)[n]:y

Clear the configuration in the device successfully.

reboot //重启路由器

Info: The system is comparing the configuration, please wait.

Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:n //不保存重启

System will reboot! Continue ? [y/n]:y

Info: system is rebooting ,please wait..

18f8c951f469c732bfad94267c4ca77a.gif

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值