欢迎来到天天文库
浏览记录
ID:39118291
大小:335.20 KB
页数:11页
时间:2019-06-25
《华为交换机常见命令》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、一、清空配置:resetsaved-configuration(清楚下次启动时使 用的配置文件信息)然后重启设备,重启设备室提示保存信息,选择“NO”。resetsaved-configurationWarning:Theactionwilldeletethe savedconfigurationinthedevice.Theconfigurationwillbeerasedto reconfigure.Continue?[Y/N]:yWarning:Nowclearingtheconfigurat
2、ionin thedevice.Info:Succeededinclearingtheconfigurationinthedevice.rebootInfo:Thesystemisnowcomparingtheconfiguration,please wait.Warning:Theconfigurationhasbeenmodified,anditwillbesavedto thenextstartupsaved-configurationfileflash:/vrpcfg.zip.Continue? [Y/N]
3、:n//此处请选择“N”Info:Ifwanttorebootwithsavingdiagnostic information,input'N'andthenexecute'rebootsavediagnostic- information'.Systemwillreboot!Continue?[Y/N]:y二、通过STelnet/Telnet登录交换机设置新的Console口登录密码#以登录用户界面的认证方式为密码认证,密码为Huawei@123为例,配置如下。system-view[HUAWEI]user-in
4、terfaceconsole0[HUAWEI-ui-console0]authentication-modepassword[HUAWEI-ui-console0]setauthenticationpasswordcipherHuawei@123 [HUAWEI-ui-console0]returnsave#以登录用户界面的认证方式为AAA认证,用户名为admin123,密码为Huawei@123为 例,配置如下。system-view[HUAWEI]user-interfaceconsole0[H
5、UAWEI-ui-console0]authentication-modeaaa[HUAWEI-ui-console0]quit[HUAWEI]aaa[HUAWEI-aaa]local-useradmin123passwordirreversible-cipherHuawei@123[HUAWEI-aaa]local-useradmin123service-typeterminal(本地防务终端用户)[HUAWEI-aaa]return(返回)save(保存)三、查看某个接口学习到的MAC地址dis
6、playmac-addressdynamicgigabitethernet1/0/1MACAddressVLAN/VSILearned-FromType -------------------------------------------------------------------------0000-0000-0003300/-GE1/0/1dynamic 0026-6e5c-feac3000/-GE1/0/1dynamic 四、查看某个VLAN学习到的MAC地址displaymac-addressdyn
7、amicvlan10MACAddressVLAN/VSILearned-FromType --------------------------------------------------------------------------0000-0000-000310/-GE1/0/1dynamic 0026-6e5c-feac10/-GE1/0/2dynamic五、查看系统的MAC地址displayinterfacegigabitethernet1/0/1GigabitEthernet1/0/1current
8、state:UP Lineprotocolcurrentstate:UPDescription: SwitchPort,Link-type:access(configured), IPSendingFrames'FormatisPKTFMT_ETH
此文档下载收益归作者所有