才子佳人博客

我的故事我讲述

华为交换机常用命令(简化版)
 
来源:xjh  编辑:xjh  2016-03-02

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、interface GigabitEthernet 0/0/9 //在system-view命令后使用,进入接口配置状态

10、ip route-static 0.0.0.0 0.0.0.0 10.78.1.1 preference 60 //设置路由

11、reset counters interface Ethernet 1/0/14 //重置接口信息

12、vlan 10 添加或进入Vlan 10

13、[vlan10]port g 0/0/1 to 0/0/20 批量添加端口到Vlan10

14、port-group 1 建组1

15、[port-group1]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/10 把端口加入组

16、[port-group1]port link-type access 批量添加link-type

17、[port-group1]port default vlan 1064 批量加vlan 1064

18、undo port-group 1  最后删除端口组1

19、save //保存设置

20、quit //退出


分类:网络日志| 查看评论
相关文章
文章点击排行
本年度文章点击排行
发表评论:
  • 昵称: *
  • 邮箱: *
  • 网址:
  • 评论:(最多100字)
  • 验证码: