基本配置 华为命令手册(路由交换)

2020年04月05日 · 技术帮助分享 · 网络工程 · 872次阅读

------正---文------

一、基本配置

Telnet配置

1、密码登录:


[Huawei]user-interface console 0  //进入管理控制口
[Huawei-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):输入密码
[Huawei-ui-console0]user privilege level ?   //设置特权等级
[Huawei-ui-console0]idle-timeout 20 0  //设置空闲超时时间为20分钟,默认为10分钟

Js

2、用户和密码登录:


[Huawei]user-interface console 0  //进入管理控制口
[Huawei-ui-console0]authentication-mode aaa
[Huawei-ui-console0]quit
[Huawei]aaa
[Huawei-aaa]local-user huawei password cipher hw(密码)
[Huawei-aaa]local-user huawei service-type terminal  //从终端登录

Js

3、PC通过以太网口远程登录配置


#AAA模式远程登录
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
[R1]aaa  //进入认证、授权、计费模式(简称AAA模式)
[R1-aaa]local-user admin password cipher 123456  //配置本地用户和密码
[R1-aaa]local-user admin service-type telnet  //选择授权用户的服务类型
[R1-aaa]local-user admin privilege level 3  //设置管理员用户级别
#仅密码远程登录
[R2]user-interface vty 0 4  //虚拟用户终端接口
[R2-ui-vty0-4]authentication-mode password  //配置用户终端的认证模式
[R2-ui-vty0-4]set authentication password simple 123456  //设置登录用户密码
[R2-ui-vty0-4]user privilege level 3  //设置用户等级
[R2-ui-vty0-4]user network-admin  //设置登录用户的参数

设置超级密码


[Huawei]super password level 3 cipher 123456(作用?)

FTP配置

将路由器作为FTP服务器


[R1]ftp server enable
[R1]aaa
[R1-aaa]local-user winda password cipher aqx123456(字母与数字的组合)
[R1-aaa]local-user winda privilege level 15
[R1-aaa]local-user winda service-type ftp
[R1-aaa]local-user winda ftp-directory flash:  //指定目录

登录FTP服务器,并传送文件


<R1>ftp 10.0.12.2
User(10.0.12.2:(none)):huawei
331 Password required for huawei.
Enter password:
230 User logged in.
[R1-ftp]put portalpage.zip  //上传文件
[R1-ftp]get portalpage.zip portal.zip  //下载文件并改名字
<R1>delete /unreserved portal.zip  //彻底删除该文件

其他

配置登录标语


[R1]header shell information "Welcome to HuaWei"


指定下次启动装载的配置文件


<R1>startup saved-configuration iascfg.zip

Js

指定下次启动装载的配置文件


<R1>factory-configuration reset

Js

设置下次启动用的文件


<R1>startup saved-configuration 文件名

Js

删除保存的配置文件


<R1>reset saved-configuration
<R1>reboot
Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:n

Js

关闭消息提示功能


[R1]undo info-center enable  //关闭提示信息,提高配置时的视觉
或
<R1>undo terminal monitor  //关闭日志提示消息(很烦人的一个东西)



原文地址:

https://racns.com/7.html


------结---束------

推广:AI工具网 | 专注人工智能工具推荐!
『静谧星河』采用《署名-相同方式共享 4.0 国际》进行许可。如需转载请保留本文地址。
本文地址:
https://www.yuvin.cn/help/263.html
AD
AD

支持我

教程帮助解决方法网工华为

静谧星河最后编辑于4年前


因本站不提供交互式服务,评论均需审核后显示,敬请谅解。

添加新评论

captcha

请输入验证码