ienki 发表于 2018-7-25 06:21:17

华为命令全

华为路由器交换机配置命令:交换机命令  discur;显示当前配置
  displaycurrent-configuration;显示当前配置
  displayinterfaces;显示接口信息
  displayvlanall;显示路由信息
  displayversion;显示版本信息
  superpassword;修改特权用户密码
  sysname;交换机命名
  interfaceethernet0/1;进入接口视图
  interfacevlanx;进入接口视图
  ipaddress10.65.1.1255.255.0.0;配置VLAN的IP地址
  iproute-static0.0.0.00.0.0.010.65.1.2;静态路由=网关
  rip;三层交换支持
  local-userftp
  user-interfacevty04;进入虚拟终端
  authentication-modepassword;设置口令模式
  setauthentication-modepasswordsimple222;设置口令
  userprivilegelevel3;用户级别
  interfaceethernet0/1;进入端口模式
  inte0/1;进入端口模式
  duplex{half|full|auto};配置端口工作状态
  speed{10|100|auto};配置端口工作速率
  flow-control;配置端口流控
  mdi{across|auto|normal};配置端口平接扭接
  portlink-type{trunk|access|hybrid};设置端口工作模式
  portaccessvlan3;当前端口加入到VLAN
  porttrunkpermitvlan{ID|All};设trunk允许的VLAN
  porttrunkpvidvlan3;设置trunk端口的PVID
  undoshutdown;激活端口
  shutdown;关闭端口
  quit;返回
  vlan3;创建VLAN
  portethernet0/1;在VLAN中增加端口
  porte0/1;简写方式
  portethernet0/1toethernet0/4;在VLAN中增加端口
  porte0/1toe0/4;简写方式
  monitor-port;指定镜像端口
  portmirror;指定被镜像端口
  portmirrorint_listobserving-portint_typeint_num;指定镜像和被镜像
  descriptionstring;指定VLAN描述字符
  description;删除VLAN描述字符
  displayvlan;查看VLAN设置
  stp{enable|disable};设置生成树,默认关闭
  stppriority4096;设置交换机的优先级
  stproot{primary|secondary};设置为根或根的备份
  stpcost200;设置交换机端口的花费
  link-aggregatione0/1toe0/4ingress|both;端口的聚合
  undolink-aggregatione0/1|all;始端口为通道号
  isolate-user-vlanenable;设置主vlan
  isolate-user-vlansecondary;设置主vlan包括的子vlan
  porthybridpvidvlan;设置vlan的pvid
  porthybridpvid;删除vlan的pvid
  porthybridvlanvlan_id_listuntagged;设置无标识的vlan
  如果包的vlanid与PVId一致,则去掉vlan信息.默认PVID=1。
  所以设置PVID为所属vlanid,设置可以互通的vlan为untagged.
页: [1]
查看完整版本: 华为命令全