## 一、基本配置(时间、名字、登录方式、账号密码) ```html 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分钟 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 //从终端登录 3、PC通过以太网口远程登录路由器 [Huawei]user-interface vty 0 4 [Huawei-ui-vty0-4]authentication-mode aaa [Huawei-ui-vty0-4]q [Huawei]aaa [Huawei-aaa]local-user huawei password cipher hw(密码) [Huawei-aaa]local-user huawei privilege level 3 [Huawei-aaa]local-user huawei service-type telnet //远程登录 4、设置超级密码 [Huawei]super password level 3 cipher 123456(作用?) 5、登录标语 [R1]header shell information "Welcome to HuaWei" 6、指定下次启动装载的配置文件 startup saved-configuration iascfg.zip 7、设备重启后恢复为出厂配置 factory-configuration reset 8、将路由器作为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: //指定目录 9、登录FTP服务器,并传送文件 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 //下载文件并改名字 delete /unreserved portal.zip //彻底删除该文件 10、设置下次启动用的文件 startup saved-configuration 文件名 11、删除保存的配置文件 reset saved-configuration reboot Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:n ``` 最后修改:2021 年 07 月 16 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏