cisco与华为设备命令对照表
华为思科华三基本命令对比

super password
super password
设置特权口令
duplex (half|full|auto)
duplex (half|full|auto)
duplex (half|full|auto)
配置接口状态
speed (10/100/1000)
speed (10/100/1000)
ip route-static 0.0.0.0 0.0.0.0
ip route-static 0.0.0.0 0.0.0.0
配置默认路由
ip route 目标网段+掩码 下一跳
ip route-static 目标网段+掩码 下一跳
ip route-static 目标网段+掩码 下一跳
配置静态路由
show ip route
华为/思科/华三基本命令对比
很多朋友反映,对华为/思科/华三交换机配置命令有些分不清楚,那么今天和大家来看下他们的区别在哪里,这里对命令做了个汇总,平时对命令不熟的朋友这次可以看下。
CISCO
H3C
HUAWEI
描述
no
undo
undo
取消、关闭当前设置
show
display
display
显示查看
exit
line
user-interface
user-interface
进入线路配置(用户接口)模式
start-config
saved-configuration
saved-configuration
启动配置
running-config
current-configuration
Cisco和华为命令对比

Cisco和华为命令对比建立用户:Router(config)# username aaa password cisco[quidway]local-user aaa启动VTY验证:Router(config)#line vty 0 4[quidway]user-interface vty 0 4选择验证类型:Router(config-line)#login authentication[quidway-ui-vty0-4]authentication-modeVLAN:Switch(config)#vlan 10 name sale[quidway]vlan 10将端口加入vlan:Switch(config-if)#switchport access vlan 10[quidway-ethernet0/10]port access vlan 10将端口设置为trunk,允许所有vlan通过:Switch(config-if)#switchport mode trunkSwitch(config-if)#switchport trunk allowed vlan all[quidway-ethernet0/20]port link-type trunk[quidway-ethernet0/20]port trunk permit vlan all配置动态vlan发现协议:Switch (config)#vtp mode serverSwitch (config)#vtp domain cisco[quidway]gvrp enable配置端口汇聚:Switch(config-range)#interface range fastethernet 0/2[quidway]link-aggregation group 1 mode manual 先建立聚合组,再把端口加里面广域网协议配置:ppp的pap验证:router1(config-if)#encapsulation ppprouter1(config-if)#ppp authentication paprouter1(config-if)#ppp pap sent-username chen password cisco[quidway-serial0/1]link-protocol ppp[quidway-serial0/1] ppp authentication-mode pap[quidway-serial0/1] ppp pap local-user chen password simple cisco帧中继配置:router1(config)#frame-relay switchingrouter1(config-if)#frame-relay map ip 215.10.1.2 105 broadcastrouter1(config-if)#frame-relay lmi-type ansi[quidway]fr switching[quidway-serial0/1]fr map ip 215.10.1.1 dlci 501路由协议配置:静态路由:router1(config)#ip route 192.168.1.1 255.255.255.0 s0[quidway]ip route-static 192.168.1.1 255.255.255.0 s0RIP:router1(config)#router riprouter1(config-router)#version 2router1(config-router)#no auto-summaryrouter1(config-router)#network 192.168.1.0[quidway]rip[quidway-serial0/1]rip version 2 华为路由器是在接口模式下开启V2版本[quidway-rip]undo summary[quidway-rip] network 192.168.1.0OFPF:router1(config)#router ospf 1-65535router1(config-router)#network 192.168.1.0 0.0.0.255 area 0[quidway]ospf[quidway-ospf-1]area 0[quidway-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255NAT :router1(config)#ip nat inside source static 192.168.1.1 10.1.1.1router1(config-if)#ip nat inside/outside[quidway-serial0/1]nat server protocol tcp global 202.10.1.150 inside 192.168.1.1 将内部ip转成外部ip地址访问控制列表:cisco基本访问列表数字标识:1-99,扩展访问列表是100-199;华为基本访问列表数字标识2000-2999,扩展访问列表是3000-3999基本访问列表:router1(config)#access-list 1 permit 10.1.1.0 0.0.0.255[quidway]acl number 2000[quidway-acl-2000]rule permit source 192.168.1.0 0.0.0.255扩展访问列表:router1(config)#access-list 100 permit tcp 192.168.1.0 0.0.0.255 any eq telnet[quidway]acl number 3000[quidway-acl-adv-3000]rule permit tcp source 192.168.1.0 0.0.0.255 destination any eq telnet应用访问控制列表:router1(config-if)#ip access-group 1 out/in[quidway]firewall enable 开启防火墙[quidway-serial0/1]firewall packet-filter 3000 inbound/outbound。
做弱电的人手一份!思科、华为等四大厂商的交换机配置命令全收录

做弱电的人手一份!思科、华为等四大厂商的交换机配置命令全收录01 进入特权模式enableswitch>enableswitch#02 进入全局配置模式configure terminalswitch>enableswitch#configure terminalswitch(conf)#03 交换机命名hostname aptech2950以aptech2950为例switch>enableswitch#configure terminalswitch(conf)#hostname aptch-2950aptech2950(conf)#04 配置使能口令enable password cisco以cisco为例switch>enableswitch # c onfigure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# enable password cisco05 配置使能密码enable secret ciscolab以cicsolab为例switch>enableswitch # c onfigure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# enble secret ciscolab06 创建多个VLANswitch>enable (进入特权模式)switch#vlan data (进入VLAN配置模式)switch(vlan)#vlan 10 name IT (划分VLAN 10,名称为IT) switch(vlan)#vlan 20 name HR (划分VLAN20,名称为HR)switch(vlan)#vlan 30 name FIN (划分VLAN30,名称为FIN) switch(vlan)#vlan 40 name LOG (划分VLAN40,名称为LOG) switch(vlan)#exit07 设置VLAN 1switch>enableswitch # configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# interface vlan 1aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0配置交换机端口IP和子网掩码aptech2950(conf-if)#no shutaptech2950(conf-if)#exitaptech2950(conf)#ip default-gateway 192.168.254 设置网关地址08 进入交换机某一个端口interface fastehernet 0/17以17为例switch>enableswitch # configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# interface fastehernet 0/17aptech2950(conf-if)#09 查看命令showswitch>enableswitch# show version查看系统中的所有版本信息show interface vlan 1查看交换机有关IP协议的配置信息show running-configure查看交换机当前起作用的配置信息show interface fastethernet 0/1查看交换机1接口具体配置和统计信息show mac-address-table查看MAC地址表show mac-address-table aging-time查看MAC地址表自动老化时间10 交换机恢复出厂默认命令switch>enableswitch # erase startup-configureswitch # reload11 双工模式设置switch> enableswitch # c onfigure terminalswitch2950(conf)#hostname aptch-2950aptech2950(conf)# interface fastehernet 0/17aptech2950(conf-if)#duplex full/half/auto有 full、half、auto三个选项12 cdp相关命令switch> enableswitch# show cdp 查看设备的cdp全局配置信息show cdp interface fastethernet 0/17show cdp traffic 查看有关cdp包的统计信息show cdp nerghbors 列出与设备相连的cisco设备13 交换机telnet远程登录设置switch>enableswitch # configure terminalswitch(conf)#hostname aptech-2950aptech2950(conf)#enable password ciscoaptech2950(conf)#interface fastethernet 0/1aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 aptech2950(conf-it)#no shutaptech2950(conf-if)#exitaptech2950(conf)line vty 0 4 设置0-4个用户可以telnet远程登录aptech2950(conf-line)#password edge 以edge为远程登录的用户密码主机设置:IP 192.168.1.2 主机的IP必须和交换机端口的地址在同一个网络段metmask 255.255.255.0gate-way 192.168.1.1 网关地址是交换机端口地址运行:telent 192.168.1.1进入telnet远程登录界面password:edgeaptech2950>enpassword:ciscoaptech#02华为交换机基础配置命令01 常用命令视图02 创建VLAN<Huawei> //用户视图,一般display命令查看信息比较多。
思科华为命令对照大全

目录第一章VTP协议第二章 STP协议第三章三层交换机的配置第六章PPP协议第八章OSPF 基本概念及单区域配置第九章 OSPF的多区域配置第十章OSPF高级配置第十一章热备份路由协议HSRP第十二章访问控制列表ACL第十三章网络地址转换NAT第十四章IPSec VPN的配置第十五章WLAN和VoIP第十六章IPv6配置一、交换机部分二、路由器部分★华为命令集ATEN命令汇总一第一章VTP协议Switch(config)#vtp domain (name)设置VTP域名Switch(config)#vtp mode server/transparent/client设置VTP模式,服务/透明/客户/ Switch(config)#vtp password 123 设置VTP密码Switch(cofnig)#vtp pruning 设置VTP修剪Switch#show vtp status 查看VTP状态信息Switch#show vlan brief 查看VLAN信息===============================================================================================第二章 STP协议Switch(cofnig)#spanning-tree vlan 1 启用生成树Switch(config)#spanning-tree vlan 2 root primary / secondary 配置交换机为根网桥、主要的/次要的Switch(config)#spanning-tree vlan 2 priority 8192 修改交换机的优先级Switch(config-if)#spanning-tree vlan 2 cost 100/19/4/2 修改端口路径成本Switch(config-if)#spanning-tree vlan 2 port-priority 50 修改端口路径优先级(端口十进制取值0~255,默认值事128)Switch(config)#spanning-tree uplinkfast 配置上行速链路Switch(config)#interface range f0/1 - 20 (为除TRUNK链路外的接口配速端口)Switch(config-if)#spanning-tree portfast 配置速端口Switch#show spanning-tree 查看生成树信息(在小凡模拟器上show spanning-tree br) 以太网通道配置Switch(config)#interface range fasteternet 0/1 - 2 (为1、2端口配置以太网端口Switch(config-if-range)#channel-group 1 mode on (把绑在一起成为组1Switch#show etherchannel 1 summary 查看以太网通道的配置是否正确===============================================================================================第三章三层交换机的配置1、在3层交换机上启动路由,否则3层交换不具有路由功能switch(config)#ip routing2、配置VLAN的IP地址switch(config)#interface vlan 1 因为3层交换机支持各VLAN间的路由,因此每个VLAN都可以配置IP地址switch(config-if)#ip address 192.168.1.1 255.255.255.0switch(config-if)#no shutdown3、查看FIB表switch #show ip cef4、查看邻接关系表switch#show adjacency detail5、在3层交换机上配置路由接口switch(config-if)#no switchport (配置接口为3层模式,意思就是取消switch的接口)6、在3层交换机上配置静态路由或动态路由与在ROUTE上配置路由方法都是相同的7、配置DHCP中继转发switch(cofig)#interface vlan 2switch(config-if)#ip helper-address 192.168.2.100---------------------------------------------------解决实例;下面的配置命令,可以配置路由器为DHCP服务器,用以给DHCP客户端动态分配ip地址。
(完整版)思科华为命令对照表

Cisco_H3C命令对照思科Cisco 华为3COM 功能enable system-view 进入特权模式configure terminal \ 进入配置状态show display 显示show running-config display current 显示目前的运行配置show version disp version 显示版本show start disp saved 显示已保存的配置show tech-support disp base-information 显示全面的信息no undo 取消(删除)hostname sysname 更改机器名\ lang chinese 进入中文状态user local-user 新建修改用户end return 退回到系统视图exit quit 返回上级视图exit logout telnet退出router rip rip rip动态路由router ospf ospf ospf路由router bgp bgp bgp路由write save 保存配置erase delete 删除配置0 simple 明文7 cipher 密文access-list acl 控制访问列表host ip host host和ip名字对应logging info-center 日志信息encap link-protocol 封闭链路层协议no debug all ctrl+d 取消所有debug命令vlan database vlan 进入vlan的配置vtp trunk trunk 设置成为骨干端口mode \ 模式trunk 相同主干线switchport port 接口控制access 相同访问ip dhcp dhcp 设置dhcp服务器功能思科华为命令对照表思科华为show displayshow version disp versionno undoshow run disp current-configuration username local-userend returnshow start disp saved-configuration exit quitexit logoutctrl+z quitrouter rip riprouter ospf ospfrouter bgp bgphostname sysnameaccess-list aclwrite saveerase delete0 simple7 cipherlogging info-center encapsulation link-protocol说明,华为S3026为的是思科的命令。
cisco与华为设备命令对照表

router(config-pmap-c)#police {cir cir } [bc conform-burst ] {pir pir } [be peak-burst ] [conform-action action [exceed-action action [vi router(config-pmap-c)#police bps [burst-normal] [burst-max] conform-action action exceed-action action [violate-action action ] router(config-pmap-c)#police cir percent percent [bc conform-burst-in-msec ] [pir percent percent ][be peak-burst-in-msec ] router(config-pmap-c)#set [ip] dscp dscp-value router(config-pmap-c)#set [ip] precedence ip-precedence router(config-pmap-c)#set cos 8021p-value router(config-pmap-c)#set mpls experimental {imposition| topmost} exp-value set [ip] precedence ip-precedence-value set cos 8021p-value set dscp {dscp-name | dscp-value } police cir-value shape average cir-value priority bandwidth-kbps bandwidth bandwidth bandwidth percent percentage shape average cir-value shape average percent percentage router(config-pmap-c)#police rate {value [units ] | percent percentage } [burst burst-size [burst-units ]][peak-rate value [units ]] [pe class class-name vlan filter access-map-name vlan-list vlan-id router(config-if)#service-policy input policy-name router(config-if)#service-policy output policy-name service-policy { inbound | outbound } policy-name mls qos trust {cos|dscp|ip-precedence} ip access-group acl-name in ip access-group acl-number in router(config-if)#rate-limit {input | output} {bps | access-group acl-index | [rate-limit] rate-limit-acl-index] |dscp dscp-value | qos-gr ip access-group {access-list-number |name } in ip access-group {access-list-number |name } out mac access-group acl-name in match ip address acl-number *
思科与华为命令对比表

display logbuffer
显示时间
show clock
display clock
进入特权模式
enable
super
退出特权模式
disable
quit
进入设置模式
config terminal
system
进入端口设置模式
interface端口
interface端口
设置端口封装模式
思科与华为常用命令对照表
华为公司的路由器产品刚推出市场的时候配置指令和思科公司的几乎一样,后来由于版权与官司的问题,华为公司于2002年到2003年期间对产品的操作系统进行了升级,升级后,华为路由器虽然数据配置的方式及基本原理跟思科路由器相似,但配置命令已经完全不一样。本站整理了一份思科与华为路由器常用命令对照表,希望对大家学习这两个厂家的设备有所帮助。
encapslution
link-protocl
设置E1端口非成帧模式
unframe
using E1
退出设置模式
end
return
返回上级模式
exit
quit
删除某项配置数据
no
undo
删除整个配置文件
erase
delete
保存配置文件
write
save
设置路由器名字
hostname
sysname
创建新用户
设置控制访问列表
access-list
acl
配置日志信息
logging
inne vty 0 4
user-interface vty 0 4
设置VTY登录密码
password
思科、华为、锐捷的交换机端口聚合区别

思科、华为、锐捷的交换机端口聚合区别思科命令行配置:CLI:SW#conf tSW(config)#interface range f1/1 -2SW(config-if)#channel-group 1 mode desirable/onSW(config-if)#swithportSW(config-if)#switchport mode trunkSW(config-if)#switchport trunk encap dot1q可以通过interface port-channel 1 进入端口通道华为端口聚合配置:华为交换机的端口聚合可以通过以下命令来实现:S3250(config)#link-aggregation port_num1 to port_num2 {ingress | ingress-egress}其中port_num1是起始端口号,port_num2是终止端口号。
ingress/ingress-egress这个参数选项一般选为ingress-egress。
在做端口聚合的时候请注意以下几点:1、每台华为交换机只支持1个聚合组2、每个聚合组最多只能聚合4个端口。
3、参加聚合的端口号必须连续。
对于聚合端口的监控可以通过以下命令来实现:S3026(config)#show link-aggregation [master_port_num]其中master_port_num是参加聚合的端口中端口号最小的那个端口。
通过这条命令可以显示聚合组中包括哪些端口等一些与端口聚合相关的参数。
锐捷端口聚合配置:Switch#configure terminalSwitch(config)#interface range fastethernet 1/1-2Switch(config-if-range)#port-group 5Switch(config-if-range)#switchport mode trunk你可以在全局配置模式下使用命令#interface aggregateport n(n为AP号) 来直接创建一个AP(如果AP n不存在)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
clock daylight-saving-time time-zone-name repeating √ start-time √ 1:00 √ √ √ √ clock daylight-saving-time time-zone-name repeating √ start-time √ last weekday √ month √end-time last √ weekday √ month (offset/60):0 startup system-software [drive ]filename √ √ √ √ √ √
S2300 S2700 S3300 S3700 S5300 S5700 V100R006 V100R006 V100R006 V100R006 V100R006 V100R006 authentication-mode password √ √ √ √ √ √ authentication-mode aaa √ √ √ √ √ √ set authenticantion password password √ √ √ √ √ √ command-privilege level level view view-name command-key √ √ √ √ √ √ command-privilege level level view view-name command-key √ √ √ √ √ √ authentication-mode {none|password|aaa} √ √ √ √ √ √ acl acl-number inbound √ √ √ √ √ √ hotkey { CTRL_G|。。。 } command-text(old-keyword) √ √ √ √ √ √ idle-timeout minutes seconds √ √ √ √ √ √ quit √ √ √ √ √ √ flow-control hardware √ √ √ √ √ √ screen-length screen-length √ √ √ √ √ √ user-interface ui-type first-ui-number last-ui-number √ √ √ √ √ √ user-interface ui-type first-ui-number √ √ √ √ √ √ vty 0 4 √ √ √ √ √ √ authentication-mode passwordset authentication password √ {simple √ | cipher} √ password √ √ √ user-interface console first-ui-number authentication-mode √ √ password √ √ √ √ user-interface console first-ui-number authentication-mode √ password √ √ √ √ √ authentication-mode aaa √ √ √ √ √ √ set authentication password simple password √ √ √ √ √ √ set authentication password cipher password √ √ √ √ √ √ user privilege level level √ √ √ √ √ √ zip source-filename destination-filename √ √ √ √ √ √ stopbits { 1.5 | 1 | 2 } √ √ √ √ √ √ protocol inbound {all|ssh|telnet} √ √ √ √ √ √ protocol inbound {telnet|all} √ √ √ √ √ √ sysname hostname √ √ √ √ √ √ ftp client-source -i interface-typ einterface-number × × √ √ √ √ header login information √ √ √ √ √ √ super password [ level user-level ] { simple | cipher √ } password √ √ √ √ √ super password [ level user-level ] { simple | cipher √ } password √ √ √ √ √ undo http server enable √ √ √ √ √ √ http acl acl-number √ √ √ √ √ √ [undo] http secure-server enable √ √ √ √ √ √ description description √ √ √ √ √ √ undo flow-control √ √ √ √ √ √ scp server enable √ √ √ √ √ √ snmp-agent trap enable feature-name configuration √ trap-name √ hwcfgmaneventlog √ √ √ √ ssh server authentication-retries times √ √ √ √ √ √ ssh server timeout seconds √ √ √ √ √ √ ssh server authentication-retries times √ √ √ √ √ √ header login information text √ √ √ √ √ √ command-privilege level level view view-name command-key √ √ √ √ √ √ tftp client-source -i interface-type interface-number √ [undo tftp √ client-source] √ √ √ √ user-interface con 0user-interface ui-type first-ui-number √ √ √ √ √ √ clock timezone time-zone-name { add | minus }offset √ √ √ √ √ √ clock timezone timezone minus h :min:0 √ √ √ √ √ √ clock timezone timezone add h :min:0 √ √ √ √ √ √ clock daylight-saving-time time-zone-name repeating √ start-time √ second weekday √ month √ start-date √ end-time √ first weekday month 华为命令
友商名称 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科 思科
思科 思科 思科
用户视图 用户视图 用户视图
clock summer-time time-zone-name recurring start-time clock summer-time time-zone-name recurring last weekday month start-time last weekd boot system flash [drive ]filename
华为命令所在视图 用户界面视图 用户界面视图 用户界面视图 系统视图 系统视图 用户界面视图 用户界面视图 用户界面视图 用户界面视图 IPv4地址族视图 用户界面视图 用户界面视图 系统视图 系统视图 系统视图 用户界面视图 用户界面视图 用户界面视图 用户界面视图 用户界面视图 用户界面视图 用户界面视图 用户视图 用户界面视图 用户界面视图 用户界面视图 系统视图 系统视图 系统视图 系统视图 系统视图 系统视图 系统视图 系统视图 接口视图 用户界面视图 系统视图 用户视图 系统视图 系统视图 系统视图 系统视图 系统视图 系统视图 系统视图 用户视图 用户界面视图 用户视图 用户视图
思科命令 login login local password privilege exec level 5 show privilege exec level 5 show running-config {no login|login local|login tacacs} access-class acl-number in alias exec new-keyword old-keyword exec-timeout minutes seconds exit-address-family flowcontrol hardware length screen-length line ui-type first-ui-number last-ui-number line aux first-ui-number line vty loginpassword [0 | 7] password login authentication console login authentication console login authentication default password password password 7 password privilege level level service compress-config stopbits { 1.5 | 1 | 2 } transport input {all|ssh|telnet} transport input {telnet|telnet ssh} hostname hostname ip ftp source-interface interface-typ einterface-number banner motd enable password [level level ] {password | [encryption-type ] encrypted-password } enable secret [level level ] {password | 0 | 4 | 5 [encryption-type ] encrypted-password } no ip http server ip http access-class acl-number [no] ip http secure-server description description flowcontrol off ip scp server enable notify syslog contenttype plaintext ip ssh authentication-retries times ip ssh time-out seconds authentication-retries times banner motd ^Ctext^C privilege exec level level command-lineprivilege configure level level command-line [no] ip tftp source-interface interface-type interface-number line ui-type first-ui-number clock timezone time-zone-name {offset| -offset } clock timezone timezone -h -min clock timezone timezone h min clock summer-time time-zone-name recurring