华为与思科命令区别.docx

上传人:b****2 文档编号:24538277 上传时间:2023-05-28 格式:DOCX 页数:25 大小:244.02KB
下载 相关 举报
华为与思科命令区别.docx_第1页
第1页 / 共25页
华为与思科命令区别.docx_第2页
第2页 / 共25页
华为与思科命令区别.docx_第3页
第3页 / 共25页
华为与思科命令区别.docx_第4页
第4页 / 共25页
华为与思科命令区别.docx_第5页
第5页 / 共25页
点击查看更多>>
下载资源
资源描述

华为与思科命令区别.docx

《华为与思科命令区别.docx》由会员分享,可在线阅读,更多相关《华为与思科命令区别.docx(25页珍藏版)》请在冰豆网上搜索。

华为与思科命令区别.docx

华为与思科命令区别

《2010思科路由协议挑战100问》第二期红盟过客

类型:

网络认证大小:

1.2M语言:

中文评分:

8.0

标签:

立即下载

思科、华为、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

displaysaved-configuration

displaysaved-configuration

查看已保存过的配置

showrunning-config

displaycurrent-configuration

displaycurrent-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

setauthenticationpasswordsimple

setauthenticationpasswordsimple

配置明文密码

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

switchportaccessvlan

portdefaultvlanID

portaccesvlanID

将端口接入vlan

showinterface

displayinterface

displayinterface

查看接口

showvlanID

displayvlanID

displayvlanID

查看vlan

encapsulation

link-protocol

link-protocol

封装协议

channel-group1modeon

portlink-aggregationgroup1

portlink-aggregationgroup1

链路聚合

iprouting

默认开启

默认开启

开启三层交换的路由功能

noswitchport

不支持

不支持

开启接口三层功能

vtpdomain

GVRP

GVRP

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

spanning-treevlanIDrootprimary

stpinstanceidrootprimary

stpinstanceidrootprimary

stp配置根网桥

spanning-treevlanIDpriority

stpprimaryvlaue

stpprimaryvlaue

配置网桥优先级

showspanning-tree

disstpbrief

disstpbrief

查看STP配置

路由部分

iproute0.0.0.00.0.0.0

iproute-static0.0.0.00.0.0.0

iproute-static0.0.0.00.0.0.0

配置默认路由

iproute目标网段+掩码下一跳

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

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

配置静态路由

showiproute

displayiprouting-table

displayiprouting-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-99permit/denyIP

ruleidpermitsourceIP

ruleidpermitsourceIP

标准访问控制列表

access-list100-199permit/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-numberipvirtual-ip

vrrpvridnumbervirtual-ip

vrrpvridnumbervirtual-ip

配置HSRP组

standbygroup-numberpriority

vrrpvridnumberpriority

vrrpvridnumberpriority

配置HSRP优先级

standbygroup-numberpreempt

vrrpvridnumberpreempt-mode

vrrpvridnumberpreempt-mode

配置HSRP占先权

standbygroup-numbertrack

配置端口跟踪

ipnatinsidesourcestatic

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允许进入存在的配置模式,在中心站点上维护并保存配置信息

Configurememory从NVRAM加载配置信息

Configureterminal从终端进行手动配置

Connect打开一个终端连接

Copy复制配置或映像数据

Copyflashtftp备份系统映像文件到TFTP服务器

Copyrunning-configstartup-config将RAM中的当前配置存储到NVRAM

Copyrunning-configtftp将RAM中的当前配置存储到网络TFTP服务器上

Copytftpflash从TFTP服务器上下载新映像到Flash

Copytftprunning-config从TFTP服务器上下载配置文件

Debug使用调试功能

Debugdialer显示接口在拨什么号及诸如此类的信息

Debugiprip显示RIP路由选择更新数据

Debugipxroutingactivity显示关于路由选择协议(RIP)更新数据包的信息

Debugipxsap显示关于SAP(业务通告协议)更新数据包信息

Debugisdnq921显示在路由器D通道ISDN接口上发生的数据链路层(第2层)的访问过程

Debugppp显示在实施PPP中发生的业务和交换信息

Delete删除文件

Deny为一个已命名的IPACL设置条件

Dialeridle-timeout规定线路断开前的空闲时间的长度

Dialermap设置一个串行接口来呼叫一个或多个地点

Dialerwait-for-carrier-time规定花多长时间等待一个载体

Dialer-group通过对属于一个特定拨号组的接口进行配置来访问控制

Dialer-listprotocol定义一个数字数据接受器(DDR)拨号表以通过协议或ACL与协议的组合来控制控制拨号

Dir显示给定设备上的文件

Disable关闭特许模式

Disconnect断开已建立的连接

Enable打开特许模式

Enablepassword确定一个密码以防止对路由器非授权的访问

Enablepassword设置本地口令控制不同特权级别的访问

Enablesecret为enablepassword命令定义额外一层安全性

Encapsulationframe-relay启动帧中继封装

Encapsulationnovell-ether规定在网络段上使用的Novell独一无二的格式

EncapsulationPPP把PPP设置为由串口或ISDN接口使用的封装方法

Encapsulationsap规定在网络段上使用的以太网802.2格式Cisco的密码是sap

End

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

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

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

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