您好,欢迎访问三七文档
Return退到用户试图。Ctrl+z退到用户试图RTAterminaldebuggingRTAdebuggingospfpacket如何打问号,显示中文语言帮助?ensp支持的设备类型【3700、5700、Router】Huaweilanguage-modeChineseChangelanguagemode,confirm?[Y/N]YJul4201717:33:42-08:00Huawei%%01CMD/4/LAN_MODE(l)[50]:TheuserchoseYwhendecidingwhethertochangethelanguagemode.提示:改变语言模式成功。显示某个协议配置[R1]discurrent-configurationsectionospf[V200R003C00]#ospf1router-id10.0.1.1area0.0.0.0authentication-modesimpleplainhuaweinetwork10.0.1.10.0.0.0network10.0.123.10.0.0.0#return[R1]查看某协议路由表:R3disiprouting-tableprotocolospfR3disiprouting-tableprotocolospfRouteFlags:R-relay,D-downloadtofib------------------------------------------------------------------------------Publicroutingtable:OSPFDestinations:6Routes:6OSPFroutingtablestatus:ActiveDestinations:6Routes:6Destination/MaskProtoPreCostFlagsNextHopInterface10.0.2.0/24OSPF1048D10.0.23.2Serial2/0/010.0.4.0/24OSPF1049D10.0.23.2Serial2/0/010.0.5.0/24OSPF1048D10.0.35.5Serial3/0/010.0.124.0/24OSPF1049D10.0.23.2Serial2/0/010.1.0.0/24OSPF1048D10.0.35.5Serial3/0/010.1.1.0/24OSPF1048D10.0.35.5Serial3/0/0OSPFroutingtablestatus:InactiveDestinations:0Routes:0R3华为交换机常用命令:关闭/开启终端显示UndoterminalmonitorUtmDebuggingstp?Displayportvlanactive显示端口vlan信息。预配置:undoterminaltrappingsystem-viewuser-interfacecon0idle-time0sysnameSWvlanbatch1020intg0/0/1portlink-typeaccessportdefaultvlan10intg0/0/2portlink-typeaccessportdefaultvlan20port-group1group-mg0/0/22tog0/0/24portlink-typetrunkporttrunkallvlanallvlanbatch1020inte0/0/1portlink-typeaccessportdefaultvlan10inte0/0/2portlink-typeaccessportdefaultvlan201、displaycurrent-configuration//显示当前配置2、displayinterfaceGigabitEthernet1/1/4//显示接口信息3、displaypacket-filterinterfaceGigabitEthernet1/1/4//显示接口acl应用信息4、displayaclall//显示所有acl设置3900系列交换机5、displayaclconfigall//显示所有acl设置6500系列交换机6、displayarp10.78.4.1//显示该ip地址的mac地址,所接交换机的端口位置7、displaycpu//显示cpu信息8、system-view//进入系统图(配置交换机),等于configt命令9、aclnumber5000//在system-view命令后使用,进入acl配置状态10、rule0deny0806ffff240a4e0401ffffffff40//在上面的命令后使用,,acl配置例子11、rule1permit0806ffff24000fe218ded7fffffffff34//在上面的命令后使用,acl配置例子12、interfaceGigabitEthernet1/0/9//在system-view命令后使用,进入接口配置状态13、[86ZX-S6503-GigabitEthernet1/0/9]qos//在上面的命令后使用,进入接口qos配置14、[86ZX-S6503-qosb-GigabitEthernet1/0/9]packet-filterinbounduser-group5000//在上面的命令后使用,在接口上应用进站的acl15、[Build4-2_S3928TP-GigabitEthernet1/1/4]packet-filteroutbounduser-group5001//在接口上应用出站的acl16、undoaclnumber5000//取消aclnumber5000的设置17、iproute-static0.0.0.00.0.0.010.78.1.1preference60//设置路由18、resetcountersinterfaceEthernet1/0/14//重置接口信息华为路由器常用命令[Quidway]discur;显示当前配置[Quidway]displaycurrent-configuration;显示当前配置[Quidway]displayinterfaces;显示接口信息[Quidway]displayvlanall;显示路由信息[Quidway]displayversion;显示版本信息[Quidway]superpassword;修改特权用户密码[Quidway]sysname;交换机命名[Quidway]interfaceethernet0/1;进入接口视图[Quidway]interfacevlanx;进入接口视图[Quidway-Vlan-interfacex]ipaddress10.65.1.1255.255.0.0;配置VLAN的IP地址[Quidway]iproute-static0.0.0.00.0.0.010.65.1.2;静态路由=网关[Quidway]rip;三层交换支持[Quidway]local-userftp[Quidway]user-interfacevty04;进入虚拟终端[S3026-ui-vty0-4]authentication-modepassword;设置口令模式[S3026-ui-vty0-4]setauthentication-modepasswordsimple222;设置口令[S3026-ui-vty0-4]userprivilegelevel3;用户级别[Quidway]interfaceethernet0/1;进入端口模式[Quidway]inte0/1;进入端口模式[Quidway-Ethernet0/1]duplex{half|full|auto};配置端口工作状态[Quidway-Ethernet0/1]speed{10|100|auto};配置端口工作速率[Quidway-Ethernet0/1]flow-control;配置端口流控[Quidway-Ethernet0/1]mdi{across|auto|normal};配置端口平接扭接[Quidway-Ethernet0/1]portlink-type{trunk|access|hybrid};设置端口工作模式[Quidway-Ethernet0/1]portaccessvlan3;当前端口加入到VLAN[Quidway-Ethernet0/2]porttrunkpermitvlan{ID|All};设trunk允许的VLAN[Quidway-Ethernet0/3]porttrunkpvidvlan3;设置trunk端口的PVID[Quidway-Ethernet0/1]undoshutdown;激活端口[Quidway-Ethernet0/1]shutdown;关闭端口[Quidway-Ethernet0/1]quit;返回[Quidway]vlan3;创建VLAN[Quidway-vlan3]portethernet0/1;在VLAN中增加端口[Quidway-vlan3]porte0/1;简写方式[Quidway-vlan3]portethernet0/1toethernet0/4;在VLAN中增加端口[Quidway-vlan3]porte0/1toe0/4;简写方式[Quidway]monitor-portinterface_typeinterface_num;指定镜像端口[Quidway]portmirrorinterface_typeinterface_num;指定被镜像端口[Quidway]portmirrorint_listobserving-portint_typeint_num;指定镜像和被镜像[Quidway]descriptionstring;指定VLAN描述字符[Quidway]description;删除VLAN描述字符[Quidway]displayvlan[vlan_id];查看VLAN设置[Quidway]stp{enable|disable};设置生成树,默认关闭[Quidway]stppriority4096;设置交换机的优先级[Quidway]stproot{primary|secondary};设置为根或根的备份[Quidway-Ethernet0/1]stpcost200;设置交换机端口的花费[Quidway]link-aggregatione0/1toe0/4ingress|both;端口的聚合[Quidway]undolink-aggregatione0/1|all;始端口为通道号[SwitchA-vlanx]isolate-user-vlanenable;设置主vlan[SwitchA]isolate-user-vlanxsecondarylist;设置主vlan包括的子vlan[Quidway-Ethernet0/2]porthybridpvidvlanid;设置vlan的pvid[Quidway-Ethernet0/2]porthybridpvid;删除vlan的pvid[Quidway-Ethernet0/2]porthybridvlanvlan_id_listuntagged;设置无标识的vlan如果包的vlanid与PVId一致,则去掉vlan信息.默认PVID=1。所以设置PVID为所属vlanid,设置可以互通的vlan为untagged.路由器命令[Quidway]displayversion;显示版本信息[Quidway]displaycurrent-configuration;显示当前配置[Quidway]displayinterfaces;显示接口信息[Quidway]displayiproute;显示路由信息[Quidway]sysnameaabbcc;更改主机名[Quidway]superpasswrod123456;设置
本文标题:华为常用命令
链接地址:https://www.777doc.com/doc-4201959 .html