华为配置命令(hcna入门部分)

上传人:tia****nde 文档编号:115899026 上传时间:2019-11-15 格式:DOC 页数:13 大小:45KB
返回 下载 相关 举报
华为配置命令(hcna入门部分)_第1页
第1页 / 共13页
华为配置命令(hcna入门部分)_第2页
第2页 / 共13页
华为配置命令(hcna入门部分)_第3页
第3页 / 共13页
华为配置命令(hcna入门部分)_第4页
第4页 / 共13页
华为配置命令(hcna入门部分)_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《华为配置命令(hcna入门部分)》由会员分享,可在线阅读,更多相关《华为配置命令(hcna入门部分)(13页珍藏版)》请在金锄头文库上搜索。

1、HCNA入门部分一、命令行基础用户视图; Huawei系统视图逐级退出:quit; 完全退出:Ctrl+Z; 打断:Ctrl+C1、修改设备名称:Huaweisysname R12、配置系统时钟:设置所在时区:clock timezone beijing add 08:00:00设置当前时间:clock datetime 16:35:25 2018-03-29设置采用夏时制:clock daylight-saving-time3、配置标题消息:配置在用户登陆前显示的标题消息:R1header login information welcome to R1配置在用户登陆后显示的标题消息:R1he

2、ader shell information no reboot R14、配置特定等级用户在特定视图具有特定命令:R1command-privilege level 15 view user save5、为VRP系统创建账户(创建账户缺省是level15,服务类型包括terminal):R1aaaR1-aaalocal-user admin privilege level 15 password cipher huaweiR1-aaalocal-user admin service-type terminal(用于指定账户的服务类型,默认是ALL)6、在console口配置使用超级终端登录时的

3、验证方式(缺省时不验证):R1user-interface console 0R1-ui-console0authentication-mode aaa7、用户界面:VTY虚拟类型终端:R1user-interface vty 0 4R1-ui-vty0-4authentication-mode password(或者aaa)8、配置登录的超时时间(缺省是10分钟):R1user-interface console 0R1-ui-console0idle-timeout 5 09、指定终端屏幕临时显示的行数(缺省是24行):R1user-interface console 0R1-ui-con

4、sole0screen-length 1010、历史命令缓冲区大小(缺省是10行):R1user-interface console0R1-ui-console0history-command max-size 2011、配置只使用口令登录之后获取的权限:R1user-interface console 0R1-ui-console0user privilege level 1512、配置IP地址:R1int g0/0/1R1-GigabitEthernet0/0/1ip add 192.168.1.1 24二、文件系统基础1、基本查询命令(1)查看当前目录:pwd(2)查看当前目录下的文件列

5、表:dir(3)查看文办文件:more .txt2、目录操作(1)创建目录:mkdir aaa(2)进入目录:cd aaa(3)删除目录:mkdir aaa3、文件操作(1)文件拷贝:copy flash:/dhcp/dhcp-duid.txt flash:/bbb/ Copy flash:/dhcp/dhcp-duid.txt to flash:/bbb/dhcp-duid.txt? (y/n)n:y(2)文件重命名:rename flash:/bbb/dhcp-duid.txt flash:/bbb/123.txtRename flash:/bbb/dhcp-duid.txt to fla

6、sh:/bbb/123.txt? (y/n)n:y(3)文件移动:move flash:/bbb/123.txt flash:/aaa/ Move flash:/bbb/123.txt to flash:/aaa/123.txt? (y/n)n:y(4)删除文件:delete flash:/aaa/123.txt Delete flash:/aaa/123.txt? (y/n)n:y(5)恢复被删除文件:undelete flash:/aaa/123.txt Undelete flash:/aaa/123.txt? (y/n)n:y(6)永久删除文件:delete /unreserved fl

7、ash:/aaa/123.txt Warning: The contents of file flash:/aaa/123.txt cannot be recycled. Continue? (y/n)n:y4、管理配置文件(1)查看当前配置文件(RAM):R1display current-configuration(2)查看保存的配置文件(flash/SD卡):R1display saved-configuration(3)保存配置:save(4)删除保存的配置文件,恢复出厂设置:delete flash:/vrpcfg.zip或reset saved-configuration(5)系统

8、启动文件的查询:display startup(6)修改系统启动后加载的配置文件:startup saved-configuration flash:/123.zip(7)修改系统启动系统文件:startup system-software 路径(8)比较配置文件:compare configuration5、修复存储设备:fixdisk flash: 6、格式化存储设备:format flash:三、VRP系统管理1、升级路由器的VRP系统:(1)在FTP SERVER下准备更新的VRP系统文件(2)实现路由器与FTP SERVER的网络连接性(3)在路由器的用户视图下连接到FTP SERV

9、ER:ftp 192.168.1.2R1-ftpget 文件名 (get下载,put上传)startup system-software flash:文件名2、备份路由器的VRP系统:(1)在FTP SERVER下准备更新的VRP系统文件(2)实现交换机与FTP SERVER的网络连接性interface vlanif 1IP add 192.168.123.200.24(3)在交换机的用户视图下连接到FTP SERVER: ftp 192.168.1.2ftpput 文件名四、修改丢失的口令(1)必须使用console口连接设备,(2)打开电源之后使用Ctrl+B进入BOOTROM菜单中(默

10、认口令是huawei) ;(3)在进入BOOTROM MENU中,选择5 (5. Enter filesystem submenu) ;(4)然后再选择4 (4.Rename file from Flash);(5)选择vrecfg.zip文件进行重命名(vrpcfg1.zip); (6)最后选择6(6.Return to main menu) 回到BOOTROM菜单,再选择7 (7.Reboot) 重启设备;(7)设备重启之后将不能加载配置文件(即此时不需要验证口令就可登录)此时可以在用户视图下再将之间重命名的配置文件再修改成vrpcfg.zip rename vrpcfg1.zip vrp

11、cfg.zip Rename flash:/vrpcfg1.zip to flash:/vrpcfg.zip ?Y/N:y_(8)在用户视图下使用display saved-configuration命令查看保存的配置文件,然后再将保存的配置文件拷贝到系统视图下执行,以加载到当前配置文件中;(9)修改验证的口令,并保存配置 SW1aaa sW1-aaalocal-user test password cipher 123456sw1user-interface console 0 sW1-ui-consoleauthentication-mod ? aaa AAA authentication

12、 none Login without checking password Authentication through the password of a user terminal五、交换网络基础(1)查看交换机MAC地址表:S1display mac-address(2)配置接口的速率和双工(缺省是自动协商:就低不就高):S1interface Ethernet0/0/1S1-Ethernet0/0/1negotiation auto(3)手工修改速率和双工需要关闭自动协商:S1interface Ethernet0/0/1S1-Ethernet0/0/1undo negotiation

13、 autoS1-Ethernet0/0/1speed 100S1-Ethernet0/0/1duplex (4)查看交换机接口状态:S1-Ethernet0/0/1display interface e0/0/1六、配置STP1)配置交换机的STP模式为STPS1-4stp mode stp2)通过修改优先级,调整跟交换机的位置(缺省是32768,推荐使用汇聚层交换机为跟交换机)S3stp priority ? INTEGER Bridge priority, in steps of 4096S3stp priority 0S4stp priority 40963)通过配置端口开销选择RP(1

14、Gbps端口在STP中默认的开销是20000)S4interface g0/0/4S4-GigabitEthernet0/0/4stp cost 100004)修改端口开销计算方式S4stp pathcost-standard ? dot1d-1998 IEEE 802.1D-1998 dot1t IEEE 802.1T legacy Legacy5)通过配置端口优先级选择RP(缺省是128)S3int g0/0/3S3-GigabitEthernet0/0/3stp port priority 112S4int g0/0/3S4-GigabitEthernet0/0/3stp cost 100006)检查stp运行:S1display stpS1display stp briefdisplay stp interface g0/0/4七、配置RSTP1)配置STP模式为RSTPS1stp

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 事务文书

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号