思科华为H3C常用命令对比大全.docx

上传人:b****6 文档编号:3335281 上传时间:2022-11-21 格式:DOCX 页数:15 大小:23.35KB
下载 相关 举报
思科华为H3C常用命令对比大全.docx_第1页
第1页 / 共15页
思科华为H3C常用命令对比大全.docx_第2页
第2页 / 共15页
思科华为H3C常用命令对比大全.docx_第3页
第3页 / 共15页
思科华为H3C常用命令对比大全.docx_第4页
第4页 / 共15页
思科华为H3C常用命令对比大全.docx_第5页
第5页 / 共15页
点击查看更多>>
下载资源
资源描述

思科华为H3C常用命令对比大全.docx

《思科华为H3C常用命令对比大全.docx》由会员分享,可在线阅读,更多相关《思科华为H3C常用命令对比大全.docx(15页珍藏版)》请在冰豆网上搜索。

思科华为H3C常用命令对比大全.docx

思科华为H3C常用命令对比大全

思科、华为、H3C常用命令对比大全

思科、华为、H3C这些网络设备的命令还是挺多的,不过我们一般用的路由交换机设备都是最简单的了,先学基本命令,再学其他功能命令。

路由命令是最基本的命令了。

思科、华为、H3C常用命令对比大全

  CISCO

  H3C

  HUAWEI

  描述

  no

  undo

  undo

  取消、关闭当前设置

  show

  display

  display

  显示查看

  exit

  quit

  quit

  退回上级

  hostname

  sysname

  sysname

  设置主机名

  en,configterminal

  system-view

  system-view

  进入全局模式

  delete

  delete

  delete

  删除文件

  reload

  reboot

  reboot

  重启

  write

  save

  save

  保存当前配置

  username

  local-user

  local-user

  创建用户

  shutdown

  shutdown

  shutdown

  禁止、关闭端口

  showversion

  displayversion

  displayversion

  显示当前系统版本

  showstartup-config

  display saved-configuration

  display saved-configuration

  查看已保存过的配置

  showrunning-config

  display current-configuration

  display current-configuration

  显示当前配置

  nodebugall

  ctrl+d

  ctrl+d

  取消所有debug命令

  erasestartup-config

  resetsaved-configuration

  resetsaved-configuration

  删除配置

  end

  return

  return

  退到用户视图

  exit

  logout

  logout

  登出

  logging

  info-center

  info-center

  指定信息中心配置信息

  line

  user-interface

  user-interface

  进入线路配置(用户接口)模式

  start-config

  saved-configuration

  saved-configuration

  启动配置

  running-config

  current-configuration

  current-configuration

  当前配置

  host

  iphost

  iphost

  host名字和ip地址对应

  交换部分

  enablepassword

  setauthentication passwordsimple

  setauthentication passwordsimple

  配置明文密码

  interfacetype/number

  interfacetype/number

  interfacetype/number

  进入接口

  interfacevlan1

  interfacevlan1

  interfacevlan1

  进入vlan配置vlan管理地址

  interfacerang

  interfaceethIDtoID

  interfaceethIDtoID

  定议多个端口的组

  enablesecret

  superpassword

  superpassword

  设置特权口令

  duplex(half|full|auto)

  duplex(half|full|auto)

  duplex(half|full|auto)

  配置接口状态

  speed(10/100/1000)

  speed(10/100/1000)

  speed(10/100/1000)

  配置端口速率

  switchportmodetrunk

  portlink-typetrunk

  portlink-typetrunk

  配置trunk

  vlanID/novlanID

  vlanbatchID/undovlanbatchID

  vlanbatchID/undovlanbatchID

  添加、删除vlan

  switchportaccess vlan

  portdefaultvlanID

  portaccesvlanID

  将端口接入vlan

  showinterface

  displayinterface

  displayinterface

  查看接口

  showvlanID

  displayvlanID

  displayvlanID

  查看vlan

  encapsulation

  link-protocol

  link-protocol

  封装协议

  channel-group1modeon

  portlink-aggregation group1

  portlink-aggregation group1

  链路聚合

  iprouting

  默认开启

  默认开启

  开启三层交换的路由功能

  noswitchport

  不支持

  不支持

  开启接口三层功能

  vtpdomain

  GVRP

  GVRP

  对跨以太网交换机的VLAN进行动态注册和删除

  spanning-treevlanID rootprimary

  stpinstanceidrootprimary

  stpinstanceidrootprimary

  stp配置根网桥

  spanning-treevlanID priority

  stpprimaryvlaue

  stpprimaryvlaue

  配置网桥优先级

  showspanning-tree

  disstpbrief

  disstpbrief

  查看STP配置

  路由部分

  iproute0.0.0.0 0.0.0.0

  iproute-static 0.0.0.00.0.0.0

  iproute-static 0.0.0.00.0.0.0

  配置默认路由

  iproute目标网段+掩码下一跳

  iproute-static目标网段+掩码下一跳

  iproute-static目标网段+掩码下一跳

  配置静态路由

  showiproute

  displayip routing-table

  displayip routing-table

  查看路由表

  routerrip/network网段

  rip/network网段

  rip/network网段

  启用rip、并宣告网段

  routerospf

  ospf

  ospf

  启用ospf

  networkip反码area

  area 

  area 

  配置OSPF区域

  noauto-summary

  ripsplit-horizon

  ripsplit-horizon

  配置RIPV2水平分割

  showipprotocol

  displayipprotocol

  displayipprotocol

  查看路由协议

  access-list1-99 permit/denyIP

    ruleidpermitsource IP

  ruleidpermitsource IP

  标准访问控制列表

  access-list100-199 permit/denyprotocolsourceIP+反码 destinationIP+反码operatoroperan

  rule {normal|special}{permit|deny}{tcp|udp}source{|any}destination |any}[operate]

  rule {normal|special}{permit|deny}{tcp|udp}source{|any}destination |any}[operate]

  扩展访问控制列表

  standbygroup-number ipvirtual-ip

  vrrpvridnumber virtual-ip

  vrrpvridnumber virtual-ip

  配置HSRP组

  standbygroup-number priority

  vrrpvridnumber priority

  vrrpvridnumber priority

  配置HSRP优先级

  standbygroup-number preempt

  vrrpvridnumber preempt-mode

  vrrpvridnumber preempt-mode

  配置HSRP占先权

  standbygroup-number track

   

   

  配置端口跟踪

  ipnatinsidesource static

  natserverglobal [port]insideport[protocol]

  natserverglobal [port]insideport[protocol]

  配置静态地址转换

   

   

   

   

cisco常用命令解释

视图模式介绍:

普通视图router>

特权视图router#    /在普通模式下输入enable

全局视图router(config)#   /在特权模式下输入configt

接口视图router(config-if)#    /在全局模式下输入int接口名称例如ints0或inte0

路由协议视图router(config-route)#   /在全局模式下输入router动态路由协议名称

1、基本配置:

router>enable     /进入特权模式

router#conft     /进入全局配置模式

router(config)#hostnamexxx    /设置设备名称就好像给我们的计算机起个名字

router(config)#enablepassword   /设置特权口令

router(config)#noipdomain-lookup    /不允许路由器缺省使用DNS解析命令

router(config)#lineconsole0   /进入控制口的服务模式

router(config-line)#passwordxxx  /要设置console的密码

router(config-line)#login  /使能可以登陆

router(config-line)#loggingsynchronous /日志同步

router(config-line)#exec-timeout00   /设置时间溢出为0

router(config-line)#linevty04  /进入设置telnet服务模式

router(config-line)#passwordxxx  /设置telnet的密码

router(config-line)#login  /使能可以登陆

router(config-line)#exit   /保存退出到特权模式

router(config)#Servicepassword-encrypt /对所有在路由器上输入的口令进行暗文加密

2、接口配置:

 

router(config)#interfaceserial0  /进入接口配置模式serial0端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0代表这个路由器的0槽位上的第一个接口)

router(config-if)#ipaddressxxx.xxx.xxx.xxxxxx.xxx.xxx.xxx /添加ip地址和掩码

router(config-if)#encahdl/ppp   捆绑链路协议hdlc或者ppp思科缺省串口封装的链路层协议是HDLC所以在showrun配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的encappp或者encafr

router(config)#intloopback    /建立环回口(逻辑接口)模拟不同的本机网段

router(config-if)#ipaddxxx.xxx.xxx.xxxxxx.xxx.xxx.xxx /添加ip地址和掩码给环回口

router(config-if)#noshutdown   /在物理接口上配置了ip地址后用noshut启用这个物理接口反之可以用shutdown管理性的关闭接口

3、路由配置:

(1)静态路由

router(config)#iproutexxx.xxx.xxx.xxxxxx.xxx.xxx.xxx下一条或自己的接口

router(config)#iproute0.0.0.00.0.0.0s0   添加缺省路由

(2)动态路由

rip协议

router(config)#routerrip   /启动rip协议

router(config-router)#networkxxx.xxx.xxx.xxx  /宣告自己的网段

router(config-router)#version2   转换为rip2版本

router(config-router)#noauto-summary   /关闭自动汇总功能,ripV2才有作用

router(config-router)#passive-int  接口名/启动本路由器的那个接口为被动接口

router(config-router)#neixxx.xxx.xxx.xxx /广播转单播报文,指定邻居的接ip

igrp协议

router(config)#routerigrpxxx    /启动igrp协议 

router(config-router)#networkxxx.xxx.xxx.xxx  /宣告自己的网段

router(config-router)#variancexxx  /调整倍数因子,使用不等价的负载均衡

eigrp协议

router(config)routereigrpxxx    /启动协议

router(config-router)#networkxxx.xxx.xxx.xxx  /宣告自己的网段

router(config-router)#variancexxx  /调整倍数因子,使用不等价的负载均衡

router(config-router)#noauto-summary    /关闭自动汇总功能

ospf协议

router(config)routerospfxxx    /启动协议启动一个OSPF协议进程

router(config-router)networkxxx.xxx.xxx.xxxareaxxx/宣告自己的接口或网段在ospf的区域中可以把不同接口宣告在不同区域中

router(config-router)router-idxxx.xxx.xxx.xxx  /配置路由的id

router(config-router)aeraxxxstub  /配置xxx区域为末梢区域加入这个区域的路由器全部要配置这个条命令

router(config-router)aeraxxxstubno-summary   /配置xxx区域为完全末梢区域只在ABR上配置

router(config-router)aeraxxxnssa  /配置xxx区域为非纯末梢区域加入这个区域的路由器全部要配置这个条命令

router(config-router)aeraxxxnssano-summary   /配置xxx区域为完全非纯末梢区域只在ABR上配置,并发布缺省路由信息进入这个区域内的路由器

4、保存当前修改/运行的配置:

router#write    /将RAM中的当前配置存储到NVRAM中,下次路由器启动就是 

        执行保存的配置

router#Copyrunning-configstartup-config  /命令与write效果一样

5、一般的常用命令

router(config-if)#exit

router(config)#

router(config-router)#exit

router(config)#

router(config-line)#exit

router(config)#

router(config)#exit 

router#

exit命令       /从接口、协议、line等视图模式下退回到全局配置模式,或从全局配置模式退回到特权模式

router(config-if)#end

router(config-router)#end

router(config-line)#end

router#

end命令      /从任何视图直接回到特权模式

router#Logout       /退出当前路由器登陆模式相对与windows的注销

router#reload       /重新启动路由器(热启动)冷启动就是关闭路由器再打开电源开关 

特权模式下:

router#showiproute       /查看当前的路由表

router#cleariproute*     /清楚当前的路由表

router#showipprotocol     /查看当前路由器运行的动态路由协议情况

router#showipintbrief     /查看当前的路由器的接口ip地址启用情况

router#showrunning-config    /查看当前运行配置

router#showstartup-config    /查看启动配置

router#debugippack       /打开ip报文的调试

router#terminalmonitor     /输出到终端上显示调试信息

router#showipeigrpneighbors     /查看eigrp协议的邻居表

router#showipeigrptop     /查看eigrp协议的拓朴表

router#showipeigrpinterface     /查看当前路由器运行eigrp协议的接口情况

router#showipospfneighbor      /查看当前路由器的ospf协议的邻居表

router#showipospfinterface     /查看当前路由器运行ospf协议的接口情况

router#clearipospfprocess      /清楚当前路由器ospf协议的进程

router#Showinterfaces      /显示设置在路由器和访问服务器上所有接口的统计信息.显示路由器上配置的所有接口的状态

router#Showinterfacesserial     /显示关于一个串口的信息

router#Showipinterface     /列出一个接口的IP信息和状态的小结,列出接口的状态和全局参数

――――――――――――――――――――――――

CISCO命令全集 - 思科命令汇总

Access-enable     允许路由器在动态访问列表中创建临时访问列表入口

Access-group      把访问控制列表(ACL)应用到接口上

Access-list      定义一个标准的IPACL

Access-template       在连接的路由器上手动替换临时访问列表入口

Appn       向APPN子系统发送命令

Atmsig         执行ATM信令命令

B        手动引导操作系统

Bandwidth       设置接口的带宽

Bannermotd      指定日期信息标语

Bfe       设置突发事件手册模式

Bootsystem      指定路由器启动时加载的系统映像

Calendar        设置硬件日历

Cd        更改路径

Cdpenable       允许接口运行CDP协议

Clear      复位功能

Clearcounters        清除接口计数器

Clearinterface       重新启动接口上的硬件逻辑

Clockrate       设置串口硬件连接的时钟速率,如网络接口模块和接口处理器能接受的速率

Cmt       开启/关闭FDDI连接管理功能

Config-register       修改配置寄存器设置

Configure       允许进入存在的配置模式,在中心站点上维护并保存配置信息

Config

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

当前位置:首页 > 小学教育 > 语文

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

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