爱死你了 发表于 2018-7-26 10:38:25

华为交换机常用命令介绍

  查看设备当前配置信息
  <>dis cur
  保存当前配置信息
  <>save
  查看flash中的配置信息
  <>dis saved-configuration
  删除Flash中的配置信息
  <>reset saved-configuration
  重新启动交换机
  <>reboot
  查看软件系统版本
  <>dis version
  <S-switch-A>system-view#进入系统视图
  sysname S-switch-A#命名交换机的名字
  int vlan 1    #进入虚拟端口,配置交换机的IP地址
  ip address 192.168.1.1 255.255.255.0
  int g0/0/1  #进入g0/0/1端口
  port link-type access#配置端口的模式
  vlan 10       #创建vlan 10
  port e0/0/1#把端口加入到vlan 10
  undo negotiation auto #取消端口默认自动的模式
  duplex full      #配置端口的模式为全双工
  mdi across       #设置以太网的连接类型为交叉类型
  flow-control   #启用端口的流控管理
  port link-type access   #配置端口的模式
  port default vlan 10    #把端口加入到vlan 10
页: [1]
查看完整版本: 华为交换机常用命令介绍