您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 公司方案 > 03-命令行基础(1)
HUAWEITECHNOLOGIESCO.,LTD.命令行基础(1)Copyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.Page2前言熟悉VRP命令行并且熟练掌握VRP配置是高效管理华为网络设备的必备基础。Copyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.Page3学习目标学完本课程后,您应该能:掌握VRP命令行的基础知识利用VRP命令行进行基本的配置Copyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.设备初始化启动Page4BIOSCreationDate:Jan52013,18:00:24DDRDRAMinit:OKStartMemoryTest?('t'or'T'istest):skipCopyingData:DoneUncompressing:Done……PressCtrl+Btobreakautostartup...1Nowbootfromsd1:/AR2220-V200R003C00SPC200.cc,……HuaweiWarning:Auto-Configisworking.Beforeconfiguringthedevice,stopAuto-Config.IfyouperformconfigurationswhenAuto-Configisrunning,theDHCP,routing,DNS,andVTYconfigurationswillbelost.DoyouwanttostopAuto-Config?[y/n]:YCopyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.命令行视图Page5接口视图用户视图系统视图协议视图查看运行状态或其他参数配置设备的系统参数等配置接口参数配置路由协议Huaweisystem-viewEntersystemview,returnuserviewwithCtrl+Z.[Huawei]interfaceGigabitEthernet0/0/0[Huawei-GigabitEthernet0/0/0]Copyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.命令行功能Page6命令功能CTRL+A把光标移动到当前命令行的最前端CTRL+C停止当前命令的运行CTRL+Z回到用户视图,等同return命令CTRL+]终止当前连接或切换连接Huaweisystem-viewEntersystemview,returnuserviewwithCtrl+Z.[Huawei]^z//Ctrl+ZHuaweidisplayhotkeyCopyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.命令行功能Page7命令功能Backspace删除光标左边的第一个字符←orCtrl+B光标左移一位→orCtrl+F光标右移一位TAB输入一个不完整的命令并按TAB键,就可以补全该命令[Huawei]inter//TAB[Huawei]interfaceCopyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.命令行在线帮助Page8命令行在线帮助部分帮助Huaweid?Huaweidisplayh?完全帮助Huawei?Huaweidisplay?[Huawei]d?ddnsdhcpdhcpv6diagnosedisplaydnsdomaindot1xCopyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.基本配置步骤Page9命令功能sysname配置设备名称Huaweisystem-viewEntersystemview,returnuserviewwithCtrl+Z.[Huawei]sysnameRTA[RTA]Copyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.配置系统时钟Page10命令功能clocktimezone设置所在时区clockdatetime设置当前时间和日期clockdaylight-saving-time设置采用夏时制HuaweiclocktimezoneBJadd08:00:00Huaweiclockdatetime10:20:292013-04-11Huaweidisplayclock2013-04-1110:20:48ThursdayTimeZone(BJ):UTC+08:00Copyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.命令功能headerlogin配置在用户登陆前显示的标题消息headershell配置在用户登陆后显示的标题消息配置标题消息Page11[Huawei]headerlogininformationwelcometohuaweicertification![Huawei]headershellinformationPleasedon'trebootthedevice!……welcometohuaweicertification!LoginauthenticationPassword:Pleasedon'trebootthedevice!HuaweiCopyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.命令等级Page12用户等级命令等级名称00访问级10and1监控级20,1and2配置级3-150,1,2and3管理级Huaweisystem-view[Huawei]command-privilegelevel3viewusersaveCopyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.用户界面类型编号Console0VTY0-4用户界面Page13Huaweisystem-view[Huawei]user-interfacevty04[Huawei-ui-vty0-4]VTY接口最大可配范围为0-14。Copyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.配置用户界面命令Page14命令功能idle-timeout设置超时时间screen-length设置指定终端屏幕的临时显示行数history-commandmax-size设置历史命令缓冲区的大小#Setthesizeofthehistorycommandbufferto20.Huaweisystem-view[Huawei]user-interfaceconsole0[Huawei-ui-console0]history-commandmax-size20#Setthetimeoutdurationto1minuteand30seconds.[Huawei-ui-console0]idle-timeout130Copyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.配置登陆权限Page15命令功能userprivilege配置指定用户界面下的用户级别setauthenticationpassword配置本地认证密码#SettheuserlevelontheVTY0userinterfaceto2.Huaweisystem-view[Huawei]user-interfacevty0[Huawei-ui-vty0]userprivilegelevel2[Huawei-ui-vty0-4]setauthenticationpasswordcipherhuaweiCopyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.配置接口IP地址Page16RTARTBG0/0/0G0/0/0#ConfigureanIPaddress10.0.12.1/24andanIPaddress1.1.1.1/32forLoopBack0.Huaweisystem-view[Huawei]interfacegigabitethernet0/0/0[Huawei-GigabitEthernet0/0/0]ipaddress10.0.12.1255.255.255.0[Huawei-GigabitEthernet0/0/0]interfaceloopback0[Huawei-LoopBack0]ipaddress1.1.1.13210.0.12.1/241.1.1.1/32Copyright©2013HuaweiTechnologiesCo.,Ltd.Allrightsreserved.Page17总结华为网络设备支持多少个用户同时使用console口登录?在使用命令interfaceloopback0之后,loopback0接口的状态是什么?谢谢
本文标题:03-命令行基础(1)
链接地址:https://www.777doc.com/doc-3090315 .html