华为常用命令(2020年10月整理).pptx

上传人:摩西的****12 文档编号:148698630 上传时间:2020-10-22 格式:PPTX 页数:7 大小:39.03KB
返回 下载 相关 举报
华为常用命令(2020年10月整理).pptx_第1页
第1页 / 共7页
华为常用命令(2020年10月整理).pptx_第2页
第2页 / 共7页
华为常用命令(2020年10月整理).pptx_第3页
第3页 / 共7页
华为常用命令(2020年10月整理).pptx_第4页
第4页 / 共7页
华为常用命令(2020年10月整理).pptx_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《华为常用命令(2020年10月整理).pptx》由会员分享,可在线阅读,更多相关《华为常用命令(2020年10月整理).pptx(7页珍藏版)》请在金锄头文库上搜索。

1、华为交换机常用命令: 1、display current-configuration,/显示当前配置,1,2、display interface GigabitEthernet 1/1/4/显示接口信息 3、display packet-filter interface GigabitEthernet 1/1/4 /显示接口 acl 应用信息 4、display acl all /显示所有 acl 设置 3900 系列交换机,5、display acl config all 6、display arp 10.78.4.1,/显示所有 acl 设置 6500 系列交换机 /显示该 ip 地址的

2、mac 地址,所接交换机的端口位置,7、display cpu 8、system-view,/显示 cpu 信息 /进入系统图(配置交换机),等于 config t 命令,9、acl number 5000 /在 system-view 命令后使用,进入 acl 配置状态 10、rule 0 deny 0806 ffff 24 0a4e0401 ffffffff 40/在上面的命令后使用,acl 配置例子 11、rule 1 permit 0806 ffff 24 000fe218ded7 fffffffff 34 /在上面的命令后使用,acl 配置例子 12、interface Gigabi

3、tEthernet 1/0/9/在 system-view 命令后使用,进入接口配置状态 13、86ZX-S6503-GigabitEthernet1/0/9qos/在上面的命令后使用,进入接口 qos 配置 14、86ZX-S6503-qosb-GigabitEthernet1/0/9packet-filter inbound user-group 5000 /在上面的 命令后使用,在接口上应用进站的 acl 15、Build4-2_S3928TP-GigabitEthernet1/1/4packet-filter outbound user-group 5001 /在接口上 应用出站的 a

4、cl 16、undo acl number 5000 /取消 acl number 5000 的设置 17、ip route-static 0.0.0.0 0.0.0.0 10.78.1.1 preference 60/设置路由 18、reset counters interface Ethernet 1/0/14/重置接口信息,华为路由器常用命令 Quidwaydis cur Quidwaydisplay current-configuration Quidwaydisplay interfaces Quidwaydisplay vlan all Quidwaydisplay version

5、,;显示当前配置 ;显示当前配置 ;显示接口信息 ;显示路由信息 ;显示版本信息,Quidwaysuper password Quidwaysysname Quidwayinterface ethernet 0/1 Quidwayinterface vlan x Quidway-Vlan-interfacexip address 10.65.1.1 255.255.0.0,;修改特权用户密码 ;交换机命名 ;进入接口视图 ;进入接口视图 ;配置 VLAN 的 IP 地址,;静态路由网关 ;三层交换支持,Quidwayip route-static 0.0.0.0 0.0.0.0 10.65.1

6、.2 Quidwayrip Quidwaylocal-user ftp,Quidwayuser-interface vty 0 4 S3026-ui-vty0-4authentication-mode password,;进入虚拟终端 ;设置口令模式,S3026-ui-vty0-4set authentication-mode password simple 222 ;设置口令 S3026-ui-vty0-4user privilege level 3;用户级别,2,Quidwayinterface ethernet 0/1 Quidwayint e0/1 Quidway-Ethernet0/

7、1duplex half|full|auto Quidway-Ethernet0/1speed 10|100|auto Quidway-Ethernet0/1flow-control Quidway-Ethernet0/1mdi across|auto|normal Quidway-Ethernet0/1port link-type trunk|access|hybrid,;进入端口模式 ;进入端口模式 ;配置端口工作状态 ;配置端口工作速率 ;配置端口流控 ;配置端口平接扭接 ;设置端口工作模式,Quidway-Ethernet0/1port access vlan 3 Quidway-Et

8、hernet0/2port trunk permit vlan ID|All,;当前端口加入到 VLAN ;设trunk 允许的 VLAN,Quidway-Ethernet0/3port trunk pvid vlan 3 Quidway-Ethernet0/1undo shutdown Quidway-Ethernet0/1shutdown Quidway-Ethernet0/1quit,;设置 trunk 端口的 PVID ;激活端口 ;关闭端口 ;返回,Quidwayvlan 3 Quidway-vlan3port ethernet 0/1 Quidway-vlan3port e0/1

9、Quidway-vlan3port ethernet 0/1 to ethernet 0/4 Quidway-vlan3port e0/1 to e0/4,;创建 VLAN ;在 VLAN 中增加端口 ;简写方式 ;在 VLAN 中增加端口 ;简写方式,Quidwaymonitor-port Quidwayport mirror ,;指定镜像端口 ;指定被镜像端口,Quidwayport mirror int_list observing-port int_type int_num ;指定镜像和被镜像,Quidwaydescription string Quidwaydescription Q

10、uidwaydisplay vlan vlan_id,;指定 VLAN 描述字符 ;删除 VLAN 描述字符 ;查看 VLAN 设置,Quidwaystp enable|disable Quidwaystp priority 4096 Quidwaystp root primary|secondary Quidway-Ethernet0/1stp cost 200,;设置生成树,默认关闭 ;设置交换机的优先级 ;设置为根或根的备份 ;设置交换机端口的花费,Quidwaylink-aggregation e0/1 to e0/4 ingress|both Quidwayundo link-agg

11、regation e0/1|all,; 端口的聚合 ; 始端口为通道号,SwitchA-vlanxisolate-user-vlan enable SwitchAisolate-user-vlan secondary Quidway-Ethernet0/2port hybrid pvid vlan Quidway-Ethernet0/2port hybrid pvid,;设置主vlan ;设置主 vlan 包括的子 vlan ;设置 vlan 的 pvid ;删除 vlan 的 pvid,Quidway-Ethernet0/2port hybrid vlan vlan_id_list unta

12、gged ;设置无标识的vlan 如果包的 vlan id 与 PVId 一致,则去掉vlan 信息. 默认 PVID=1。 所以设置PVID 为所属 vlan id, 设置可以互通的vlan 为 untagged.,3,路由器命令 Quidwaydisplay version Quidwaydisplay current-configuration Quidwaydisplay interfaces Quidwaydisplay ip route,;显示版本信息 ;显示当前配置 ;显示接口信息 ;显示路由信息,Quidwaysysname aabbcc Quidwaysuper passwr

13、od 123456 Quidwayinterface serial0,;更改主机名 ;设置口令 ;进入接口,Quidway-serial0ip address ; 配 置 端 口 IP 地 址,;激活端口 ;绑定 hdlc 协议,Quidway-serial0undo shutdown Quidwaylink-protocol hdlc Quidwayuser-interface vty 0 4 Quidway-ui-vty0-4authentication-mode password,Quidway-ui-vty0-4set authentication-mode password simp

14、le 222 Quidway-ui-vty0-4user privilege level 3 Quidway-ui-vty0-4quit,Quidwaydebugging hdlc all serial0 Quidwaydebugging hdlc event serial0 Quidwaydebugging hdlc packet serial0,;显示所有信息 ;调试事件信息 ;显示包的信息,静态路由: Quidwayip route-static interface number|nexthopvaluereject|blackhole 例如: Quidwayip route-stati

15、c 129.1.0.0 16 10.0.0.2 Quidwayip route-static 129.1.0.0 255.255.0.0 10.0.0.2 Quidwayip route-static 129.1.0.0 16 Serial 2 Quidwayip route-static 0.0.0.0 0.0.0.0 10.0.0.2,动 态 路 由 : Quidwayrip Quidwayrip work Quidwayrip input Quidwayrip output Quidway-ripnetwork 1.0.0.0 Quidway-ripnetwork all Quidway

16、-rippeer ip-address Quidway-ripsummary Quidwayrip version 1 Quidwayrip version 2 multicast Quidway-Ethernet0rip split-horizon,;设置动态路由 ;设置工作允许 ;设置入口允许 ;设置出口允许 ;设置交换路由网络 ;设置与所有网络交换 ; ;路由聚合 ;设置工作在版本 1 ;设版本 2,多播方式 ;水平分隔,Quidwayrouter id A.B.C.D,;配置路由器的 ID,4,Quidwayospf enable Quidway-ospfimport-route direct Quidway-Serial0ospf enable area ,;启动 OSPF 协议 ;引入直联路由 ;配置 OSPF 区域,标准访问列表命令格式如下: acl match-order config|auto;默认前者

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 其它办公文档

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