华为交换机查看配置的命令

2020年1月13日15:04:54 评论 2,491
首月免费体验

华为交换机常用命令:

1、display current-configuration 显示当前配置

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 显示所有acl设置 6500系列交换机

6、display arp 10.78.4.1  显示该ip地址的mac地址,所接交换机的端口位置

7、display cpu显示cpu信息

8、system-view 进入系统图(配置交换机),等于config t 命令

9、acl number 5000 在system-view命令后使用,进入acl配置状态

10、rule 0 deny 0806 ffff 24 0a4e0401 f 40 在上面的命令后使用,acl 配置例子

11、rule 1 permit 0806 ffff 24 000fe218ded7 f 34   //在上面的命令后使用,acl配置例子

12、interface GigabitEthernet 1/0/9   //在system-view命令后使用,进入接口配置状态

13、[86ZX-S6503-GigabitEthernet1/0/9]qos   //在上面的命令后使用,进入接口qos配置

14、[86ZX-S6503-qosb-GigabitEthernet1/0/9]packet-filter inbound user-group 5000 //在上面的命令后使用,在接口上应用进站的acl

15、[Build4-2_S3928TP-GigabitEthernet1/1/4]packet-filter outbound user-group 5001 //在接口上应用出站的acl

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   //重置接口信息

19、save //保存设置

20、quit //退出

weinxin
博主微信
这是我的微信扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: