h3c看端口协议命令.docx

上传人:b****6 文档编号:4336224 上传时间:2022-11-29 格式:DOCX 页数:12 大小:20.42KB
下载 相关 举报
h3c看端口协议命令.docx_第1页
第1页 / 共12页
h3c看端口协议命令.docx_第2页
第2页 / 共12页
h3c看端口协议命令.docx_第3页
第3页 / 共12页
h3c看端口协议命令.docx_第4页
第4页 / 共12页
h3c看端口协议命令.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

h3c看端口协议命令.docx

《h3c看端口协议命令.docx》由会员分享,可在线阅读,更多相关《h3c看端口协议命令.docx(12页珍藏版)》请在冰豆网上搜索。

h3c看端口协议命令.docx

h3c看端口协议命令

竭诚为您提供优质文档/双击可除

h3c看端口协议命令

  篇一:

h3c常用查询命令

  进入系统视图

  system-view

  配置设备名

  sysnameRoutera

  查看Flash目录下内容

  dir

  指定下次启动配置文件

  startupsaved-configurationmain.cfg

  保存配置

  save

  重启

  reboot

  #置console用户登陆的口令认证

  system-view

  [h3c]user-interfaceaux0

  [h3c-ui-aux0]authentication-modepassword

  [h3c-ui-aux0]setauthenticatonpasswordsimple123456

  [h3c-ui-aux0]userprivilegelevel3

  用户的命令控制级别设置

  [h3c-ui-aux0]userprivilegelevel0

  [h3c]superpasswordlevel1simple123456

  [h3c]superpasswordlevel2simple123456

  [h3c]superpasswordlevel3simple123456

  #设置super(明文)密码当低权限向高权限切换时使用!

  [Routera]superpasswordsimplequidway

  #设置super(密文)密码

  [Routera]superpasswordcipherquidway

  #启用telnet管理功能

  [Routera]user-interfacevty04

  [Routera-ui-vty0-4]authentication-modepassword

  [Routera-ui-vty0-4]setauthenticationpasswordsimplequidway

  [Routera-ui-vty0-4]userprivilegelevel3

  [Routera-ui-vty0-4]quit

  [Routera]telnetserverenable

  #配置端口ip地址

  [Routera]inte0

  [Routera-ethernet0]ipadd192.168.1.124

  #启动端口

  [Routera-ethernet0]undoshutdown

  [Routera-ethernet0]quit

  #保存,在任何视图下

  save

  #查看当前设备配置信息

  [Routera]displaycurrent-configuration

  #查看Flash中的配置(相当于ciscostart-config)

  [Routera]displaysaved-configuration

  #删除Flash中的配置信息(重置设备配置)

  [Routera]resetsaved-configuration

  #重新启动设备

  reboot

  #显示系统软件版本

  [Routera]displayversion

  #访问tFtp服务器

  tftp服务器ip{put|get}源文件名目的文件名

  tftp192.168.1.2putstartup.cfgstartup.cfg//上传tftp192.168.1.2gettest.txttest.txt//下载

  #交换机ip地址

  [h3c]intvlan1

  [h3c-Vlan-interface1]ipadd192.168.1.124

  [h3c-Vlan-interface1]undoipadd192.168.1.124

  #创建Vlan

  [h3c]vlan10

  [h3c]undovlan10

  #向Vlan添加一个、多个端口

  [h3c-vlan10]porte1/0/1

  [h3c-vlan10]porte1/0/5toe1/0/7

  [h3c-vlan10]porte1/0/8toe1/0/9e1/0/11toe1/0/12#显示Vlan信息

  [h3c]disvlan

  #设置以太网端口的链路类型为tRunk

  [h3c-ethernet1/0/1]portlink-typetrunk

  [h3c-ethernet1/0/1]porttrunkpermitvlanall

  [h3c-ethernet1/0/1]porttrunkpvidvlan1

  #设置以太网端口的链路类型为access

  [h3c-ethernet1/0/1]portlink-typeaccess

  [h3c-ethernet1/0/1]portaccessvlan10

  [h3c-ethernet1/0/1]undoportaccessvlan

  #配置loopback环回接口

  [h3c]intloopback0

  [h3c-lookback0]ipadd10.1.1.124

  #静态路由

  [h3c]iproute192.168.3.0255.255.255.0s1/0

  [h3c]undoiproute192.168.3.0255.255.255.0s1/0

  #默认路由

  [h3c]iproute0.  

0.0.0

  显示当前配置

  discu

  dis命令集(汉化)

  aclacl状态和配置信息

  arp显示aRp信息

  aspfaspF状态和配置信息

  atmatm状态和配置信息

  bgpbgp协议信息

  boot-loader显示启动文件

  bootp自举协议

  bridge桥的信息

  brief接口状态和配置简要信息

  channel信息通道状态和配置信息

  clipboard剪贴板的状态和配置信息

  clock时钟状态和配置信息

  configure-user具有配置权限的用户

  connection显示连接信息

  connection-limit连接统计模块的状态和配置信息

  controller指定controller接口

  cpu-usagecpu占用率统计信息

  current-configuration系统当前配置

  dardaR状态和配置信息

  debugging显示当前调试开关设置情况

  device显示设备信息

  dhcpdhcp命令

  diagnostic-information显示系统诊断信息

  dialerdcc状态和配置信息

  dnsdns状态和配置信息

  domain显示域配置方案

  dot1x802.1x配置信息

  dsldsl状态和配置信息

  environment显示环境信息

  fan显示风扇状态

  fe1接口Fe1状态和配置信息

  fibFib状态和配置信息

  firewall防火墙的配置信息

  firewall-statistics防火墙的状态和配置信息

  fr帧中继状态和配置信息

  ft1接口Ft1状态和配置信息

  ftpFtp客户端状态和配置信息

  ftp-serverFtp服务器状态和配置信息

  ftp-userFtp用户状态和配置信息

  history-command历史命令配置信息

  hotkey快捷键的状态和配置信息

  hwtacacshwtacacs服务器的相关信息

  icmpicmp信息

  igmp状态和配置信息

  info-center显示信息中心配置及内容

  interface接口状态和配置信息

  ipip协议

  ipv6ipv6状态和配置信息

  isdnisdn状态和配置信息

  l2tpl2tp状态和配置信息

  local-proxy-arp显示本地aRp代理信息

  local-server本地服务器信息

  local-user显示本地用户信息

  logbuffer日志缓冲区状态和配置信息

  logfile显示日志文件信息

  loopback-detection检测端口是否存在自环

  mac-addressmac地址信息

  memory显示内存信息

  mfr显示mFR状态和配置信息

  mirroring-group设置镜像组

  mldmld状态和配置信息

  msdpmsdp状态和配置信息

  multicast多播配置

  nat地址转换状态和配置信息

  nqa显示nqa信息

  ntp-servicentp网络时间服务

  oap开放应用平台的操作

  ospfospF路由协议

  pimpim状态和配置信息

  pkipki信息

  policy-based-route策略路由的状态和配置信息

  port显示端口信息

  port-isolate隔离组信息

  portalportal协议

  power显示电源状态

  pppppp状态和配置信息

  pppoe-clientpppoeclient状态和配置信息

  pppoe-serverpppoe服务器端状态和配置信息

  proxy-arp显示aRp代理信息

  qos服务质量状态和配置信息

  radius显示Radius配置信息

  reboot-type显示启动类型

  ripRip状态和配置信息

  rmonRmon信息

  route-policy显示路由策略配置

  router配置路由器信息

  routing显示路由信息

  rps显示冗余电源状态

  rsa显示Rsa模块的状态和配置信息

  saved-configuration显示保存的系统配置信息

  schedule设定系统任务

  sftp显示设置的源

  snmp-agent显示snmp状态和配置信息

  sshssh状态和配置信息

  standby备份接口状态和配置信息

  startup显示系统启动配置

  stop-accounting-buffer查询备份在本地的无响应的停止计费报文stp生成树协议

  tcptcp状态和配置信息

  telnettelnet状态和配置信息

  tftptFtp客户端状态和配置信息

  this当前视图的运行配置

  time-range时间段状态和配置信息

  traffic数据流的状态和配置信息

  transceiver

  trapbuffer告警缓冲区状态和配置信息

  udpudp状态和配置信息

  udp-helperudphelpeR模块

  user-interface用户接口的状态和配置信息

  userlog用户日志特性

  篇二:

h3c常用命令

  一.用户配置:

  system-view

  [h3c]superpasswordh3c设置用户分级密码

  [h3c]undosuperpassword删除用户分级密码

  [h3c]localuserbigheap1234561web网管用户设置,1(缺省)为管理级用户,缺省admin,admin

  [h3c]undolocaluserbigheap删除web网管用户

  [h3c]user-interfaceaux0只支持0

  [h3c-aux]idle-timeout250设置超时为2分50秒,若为0则表示不超时,默认为5分钟

  [h3c-aux]undoidle-timeout恢复默认值

  [h3c]user-interfacevty0只支持0和1

  [h3c-vty]idle-timeout250设置超时为2分50秒,若为0则表示不超时,默认为5分钟

  [h3c-vty]undoidle-timeout恢复默认值

  [h3c-vty]setauthenticationpassword123456设置telnet密码,必须设置

  [h3c-vty]undosetauthenticationpassword取消密码

  [h3c]displayusers显示用户

  [h3c]displayuser-interface显示用户界面状态

  二.系统ip配置:

  [h3c]vlan20

  [h3c]management-vlan20

  [h3c]interfacevlan-interface20创建并进入管理Vlan

  [h3c]undointerfacevlan-interface20删除管理Vlan接口

  [h3c-Vlan-interface20]ipaddress192.168.1.2255.255.255.0配置管理Vlan接口静态ip地址(缺省为192.168.0.234)

  [h3c-Vlan-interface20]undoipaddress删除ip地址

  [h3c-Vlan-interface20]ipgateway192.168.1.1指定缺省网关(默认无网关地址)

  [h3c-Vlan-interface20]undoipgateway

  [h3c-Vlan-interface20]shutdown关闭接口

  [h3c-Vlan-interface20]undoshutdown开启

  [h3c]displayip显示管理Vlan接口ip的相关信息

  [h3c]displayinterfacevlan-interface20查看管理Vlan的接口信息debuggingip开启ip调试功能

  undodebuggingip

  三.dhcp客户端配置:

  [h3c-Vlan-interface20]ipaddressdhcp-alloc管理Vlan接口通过dhcp方式获取ip地址

  [h3c-Vlan-interface20]undoipaddressdhcp-alloc取消

  [h3c]displaydhcp显示dhcp客户信息

  debuggingdhcp-alloc开启dhcp调试功能

  undodebuggingdhcp-alloc

  四.端口配置:

  [h3c]interfaceethernet0/3

  [h3c-ethernet0/3]shutdown

  [h3c-ethernet0/3]speed100速率,可为10,100,1000和auto(缺省)

  [h3c-ethernet0/3]duplexfull双工,可为half,full和auto(缺省)光口和汇聚后不能配置

  [h3c-ethernet0/3]flow-control开启流控,默认为关闭

  [h3c-ethernet0/3]broadcast-suppression20设置抑制广播百分比为20%,可取5,10,20,100,缺省为100,同时组播和未知单播也受此影响

  [h3c-ethernet0/3]loopbackinternal内环测试

  [h3c-ethernet0/3]loopbackexternal外环测试,需插接自环头,必须为全双工或者自协商模式

  [h3c-ethernet0/3]portlink-typetrunk设置链路的类型为trunk,可为access(缺省),trunk

  [h3c-ethernet0/3]porttrunkpvidvlan20设置20为该trunk的缺省Vlan,默认为1

  (trunk线路两端的pVid必须一致)

  [h3c-ethernet0/3]portaccessvlan20将当前access端口加入指定的Vlan

  [h3c-ethernet0/3]porttrunkpermitvlanall允许所有的Vlan通过当前的trunk端口,可多次使用该命令

  [h3c-ethernet0/3]mdiauto设置以太端口为自动监测,normal(缺省)为直通线,across为交叉线

  [h3c]link-aggregationethernet0/1toethernet0/4将1-4口加入汇聚组,1为主端口,两端需要同时配置,设置了端口镜像以及端口隔离的端口无法汇聚

  [h3c]undolink-aggregationethernet0/1删除该汇聚组

  [h3c]link-aggregationmodeegress配置端口汇聚模式为根据目的mac地址进行负荷分担,可选

  为ingress,egress和both,缺省为both

  [h3c]monitor-portethernet0/2将该端口设置为镜像端口,必须先设置镜像端口,删除时必须先删除被镜像端口,而且它们不能同在一个端口,该端口不能在汇聚组中,设置新镜像端口时,新取代旧,被镜像不变

  [h3c]mirroring-portethernet0/3toethernet0/4both将端口3和4设置为被镜像端口,both为同时监控接收和发送的报文,inbound表示仅监控接收的报文,outbound表示仅监控发送的报文

  [h3c]displaymirror

  [h3c]displayinterfaceethernet0/3

  resetcounters清除所有端口的统计信息

  [h3c]displaylink-aggregationethernet0/3显示端口汇聚信息

  [h3c-ethernet0/3]virtual-cable-test诊断该端口的电路状况

  五.Vlan配置:

  [h3c]vlan2

  [h3c]undovlanall删除除缺省Vlan外的所有Vlan,缺省Vlan不能被删除

  [h3c-vlan2]portethernet0/4toethernet0/7将4到7号端口加入到Vlan2中,此命令只能用来加access端口,不能用来增加trunk或者hybrid端口

  [h3c-vlan2]port-isolateenable打开Vlan内端口隔离特性,不能二层转发,默认不启用该功能

  [h3c-ethernet0/4]port-isolateuplink-portvlan2设置4为Vlan2的隔离上行端口,用于转发二层数据,只能配置一个上行端口,若为trunk,则建议允许所有Vlan通过,隔离不能与汇聚同时配置

  [h3c]displayvlanall显示所有Vlan的详细信息

  s1550e支持基于端口的Vlan,通过创建不同的user-group来实现,一个端口可以属于多个user-group,不属于同一个user-group的端口不能互相通信,最多支持50个user-group

  [h3c]user-group20创建user-group20,默认只存在user-group1

  [h3c-usergroup20]portethernet0/4toethernet0/7将4到7号端口加入到Vlan20中,初始时都属于user-group1中

  [h3c]displayuser-group20显示user-group20的相关信息

  六.集群配置:

  s2100只能作为成员交换机加入集群中,加入后系统名改为"集群名_成员编号.原系统名"的格式.

  即插即用功能通过两个功能实现:

集群管理协议mac组播地址协商和管理Vlan协商

  [h3c]clusterenable启用群集功能,缺省为启用

  [h3c]cluster进入群集视图

  [h3c-cluster]administrator-addressh-h-hnameswitchh-h-h为命令交换机的mac,加入switch集群

  [switch_1.h3c-cluster]undoadministrator-address退出集群

  [h3c]displaycluster显示集群信息

  [h3c]management-vlan2集群报文只能在管理Vlan中转发,同一集群需在同一个管理Vlan中,需在建立集群之前指定管理Vlan

  debuggingcluster

  七.qos配置:

  qos配置步骤:

设置端口的优先级,设置交换机信任报文的优先级方式,队列调度,端口限速

  [h3c-ethernet0/3]priority7设置端口优先级为7,默认为0

  [h3c]priority-trustcos设置交换机信任报文的优先级方式为cos(802.1p优先级,缺省值),还可以设为dscp方式(dscp优先级方式)

  [h3c]queue-schedulerhq-wrr2468设置队列调度算法为hq-wRR(默认为wRR),权重为2,4,6,8

  [h3c-ethernet0/3]line-rateinbound29将端口进口速率限制为2mbps,取1-28时,速率为rate*8*1024/125,即64,128,192...1.792m;29-127时,速率为

  (rate-27)*1024,即2m,3m,4m...100m,千兆时可继续往下取,128-240时,速率为

  (rate-115)*8*1024,即104m,112m,120m...1000m

  [h3c]displayqueue-scheduler显示队列调度模式及参数

  [h3c]displaypriority-trust显示优先级信任模式

  八.系统管理:

  [h3c]mac-addressblackholeh-h-hvlan1在Vlan1中添加黑洞mac

  [h3c]mac-addressstatich-h-hinterfaceethernet0/1vlan1在Vlan1中添加端口一的一个mac

  [h3c]mac-addresstimeraging500设置mac地址表的老化时间为500s

  [h3c]displaymac-address

  [h3c]displayarp

  [h3c]mac-addressport-bindingh-h-hinterfaceethernet0/1vlan1配置端口邦定

  [h3c]displaymac-addressport-binding

  [h3c]displaysaved-configuration

  [h3c]displaycurrent-configuration

  save

  [h3c]restoredefault恢复交换机出厂默认配置,恢复后需重启才能生效

  [h3c]displayversion

  reboot

  篇三:

h3c交换机常用配置命令大全

  一.用户配置:

  system-view

  [h3c]superpasswordh3c设置用户分级密码

  [h3c]undosuperpassword删除用户分级密码

  [h3c]localuserbigheap1234561web网管用户设置,1(缺省)为管理级用户,缺省admin,admin

  [h3c]undolocaluserbigheap删除web网管用户

  [h3c]user-interfaceaux0只支持0

  [h3c-aux]idle-timeout250设置超时为2分50秒,若为0则表示不超时,默认为5分钟

  [h3c-aux]und

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高中教育 > 初中教育

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1