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服务器
[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 //关闭日志提示消息(很烦人的一个东西)
原文地址: