思科和华为交换机命令对比
华为网络产品与CISCO产品详细比较

华为网络产品与CISCO产品详细比较华为网络产品与CISCO产品详细比较一、华为网络设备总体特点完全自主知识产权,保证产品持续发展及安全;全系列广域网及局域网产品,满足不同组网需要;17/26/36系列设备模块兼容,降低维护及投资;客户化开发,满足国内用户特别需要;秉承电信设备可靠性,保证网络可靠;采用/兼容流行的命令行方式配置路由器,许多用户可免培训使用路由器;中文支持,方便国内用户使用;统一的网络操作系统VRP,保证互连互通及统一维护使用;统一的网管系统NMS。
二、各产品系列特点及对照关系1、Quidway路由器与CISCO路由器比较替换关系Quidway系列路由器 Cisco系列备注NetEngine 80 12008/12016 GSRNetEngine 16E 7513 骨干路由器,NE高可靠性设计,满足电信要求;华为总线4G,并采用高速处理器,转发性能高NetEngine 08E/08 7507NetEngine 05 7505/7202/7204/7206 中心路由器,NE05分布式处理,可靠性高,转发性能强;72集中式处理,容易成为瓶颈R3680E 3640/3660 多业务模块化中心路由器,Quidway R3680E具有更多的槽位,密度更高;全部模块完全兼容;同档次产品采用高速芯片,处理能力更强。
R3640E 3620/3640R2631E/R2630E 2620/2621/2650R2621/R2620 2610/2611R4001E NA 远程分支路由器,Quidway系列支持同异步串口/RJ45接口支持,符合国内网络情况R2509E/R2511E 2509/2511R2501E 2501R1760 1720/1750/1751/1760 多业务分支路由器,Quidway 1760更高的性能设计。
R1603/R1604 1602/1603 边缘路由器,性价比高R1602 1601各系列特点:1600系列:桌面办公型路由器,塑料机客小巧美观,金属内喷涂工艺满足EMC,强大的VRP操作系统完全兼容所有25/26系列软件,支持ISDN、VPN、IP Qos、快速转发等新功能,是25系列的SOHO 版本,具有极佳的性价比。
思科 华为 华为3COM和锐捷之间的命令比较

CISCO 和锐捷基本上是一样的思科和H3C是完全不一样的Cisco 华为解释show display 显示no undo 删除/取消user local-user 新建用户end return 退回到系统视图exit quit 返回上级视图exit logout telnetr的退出router rip rip 启动rip router ospf ospf 启动ospf router bgp bgp 启动bgp hostname sysneme 设置主机名字access-list acl 控制访问列表write save 保存配置erase delete 删除配置0 simple 明文7 cipher 密文host ip host host名字和ip地址对应logging info-center 日志信息encapslution link-pro 封装链路层协议show version disp version 显示版本show run disp 显示当前配置current-configurationshow disp base-information 显示全面的信息tech-supportshow start disp saved-configuration 显示已保存的配置ctrl+z ctrl+z 退回到系统视图ctrl+p ctrl+p 上一条命令ctrl+n ctrl+n 下一条命令- ctrl+adisplay cur- ctrl+rdisplay ip routig-tableundebug all ctrl+d 取消所有debug命令cisco和华为命令2008-04-09 13:27CISCO交换机配置命令大全2006-2-28 14:33:001.在基于IOS的交换机上设置主机名/系统名:switch(config)# hostname hostname在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string2.在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password在基于CLI的交换机上设置登录口令:switch(enable) set passwordswitch(enable) set enalbepass3.在基于IOS的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlanswitch(enable) set ip route default gateway4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable为了查看Cisco邻接设备的CDP通告信息:switch# show cdp interface [type modle/port]switch# show cdp neighbors [type module/port] [detail]在基于CLI的交换机上启用和浏览CDP信息:switch(enable) set cdp {enable|disable} module/port为了查看Cisco邻接设备的CDP通告信息:switch(enable) show cdp neighbors[module/port][vlan|duplex|capabilities|detail]5.基于IOS的交换机的端口描述:switch(config-if)# description description-string基于CLI的交换机的端口描述:switch(enable)set port name module/number description-string6.在基于IOS的交换机上设置端口速度:switch(config-if)# speed{10|100|auto}在基于CLI的交换机上设置端口速度:switch(enable) set port speed moudle/number {10|100|auto}switch(enable) set port speed moudle/number {4|16|auto}7.在基于IOS的交换机上设置以太网的链路模式:switch(config-if)# duplex {auto|full|half}在基于CLI的交换机上设置以太网的链路模式:switch(enable) set port duplex module/number {full|half}8.在基于IOS的交换机上配置静态VLAN:switch# vlan databaseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# exitswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于CLI的交换机上配置静态VLAN:switch(enable) set vlan vlan-num [name name]switch(enable) set vlan vlan-num mod-num/port-list9. 在基于IOS的交换机上配置VLAN中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk encapsulation {isl|dotlq}switch(config-if)# switchport trunk allowed vlan remove vlan-listswitch(config-if)# switchport trunk allowed vlan add vlan-list在基于CLI的交换机上配置VLAN中继线:switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate]10.在基于IOS的交换机上配置VTP管理域:switch# vlan databaseswitch(vlan)# vtp domain domain-name在基于CLI的交换机上配置VTP管理域:switch(enable) set vtp [domain domain-name]11.在基于IOS的交换机上配置VTP 模式:switch# vlan databaseswitch(vlan)# vtp domain domain-nameswitch(vlan)# vtp {sever|cilent|transparent}switch(vlan)# vtp password password在基于CLI的交换机上配置VTP 模式:switch(enable) set vtp [domain domain-name][mode{ sever|cilent|transparent }][password password]12. 在基于IOS的交换机上配置VTP版本:switch# vlan databaseswitch(vlan)# vtp v2-mode在基于CLI的交换机上配置VTP版本:switch(enable) set vtp v2 enable13. 在基于IOS的交换机上启动VTP剪裁:switch# vlan databaseswitch(vlan)# vtp pruning在基于CL I 的交换机上启动VTP剪裁:switch(enable) set vtp pruning enable14.在基于IOS的交换机上配置以太信道:switch(config-if)# port group group-number [distribution {source|destination}] 在基于CLI的交换机上配置以太信道:switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto} 15.在基于IOS的交换机上调整根路径成本:switch(config-if)# spanning-tree [vlan vlan-list] cost cost在基于CLI的交换机上调整根路径成本:switch(enable) set spantree portcost moudle/port costswitch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list] 16.在基于IOS的交换机上调整端口ID:switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority在基于CLI的交换机上调整端口ID:switch(enable) set spantree portpri {mldule/port}priorityswitch(enable) set spantree portvlanpri {module/port}priority [vlans]17. 在基于IOS的交换机上修改STP时钟:switch(config)# spanning-tree [vlan vlan-list] hello-time secondsswitch(config)# spanning-tree [vlan vlan-list] forward-time seconds` switch(config)# spanning-tree [vlan vlan-list] max-age seconds在基于CLI的交换机上修改STP时钟:switch(enable) set spantree hello interval[vlan]switch(enable) set spantree fwddelay delay [vlan]switch(enable) set spantree maxage agingtiame[vlan]18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:switch(config-if)#spanning-tree portfast在基于CLI的交换机端口上启用或禁用Port Fast 特征:switch(enable) set spantree portfast {module/port}{enable|disable}19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]在基于CLI的交换机端口上启用或禁用UplinkFast 特征:switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate][all-protocols off|on]20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP 地址,然后使用下列命令: switch(config)# cluster enable cluster-name21. 为了从一条中继链路上删除VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range22. 用show vtp domain 显示管理域的VTP参数.23. 用show vtp statistics显示管理域的VTP参数.24. 在Catalyst交换机上定义TrBRF的命令如下:switch(enable) set vlan vlan-name [name name] type trbrf bridgebridge-num[stp {ieee|ibm}]25. 在Catalyst交换机上定义TrCRF的命令如下:switch (enable) set vlan vlan-num [name name] type trcrf{ring hex-ring-num|decring decimal-ring-num} parent vlan-num26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:switch(enable) set vlan vlan-num mod-num/port-num27. 命令show spantree显示一个交换机端口的STP状态.28. 配置一个ELAN的LES和BUS,可以使用下列命令:ATM (config)# interface atm number.subint multiointATM(config-subif)# lane serber-bus ethernet elan-name29. 配置LECS:ATM(config)# lane database database-nameATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-addressATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-addressATM(lane-config-databade)# name …30. 创建完数据库后,必须在主接口上启动LECS.命令如下:ATM(config)# interface atm numberATM(config-if)# lane config database database-nameATM(config-if)# lane config auto-config-atm-address31. 将每个LEC配置到一个不同的ATM子接口上.命令如下:ATM(config)# interface atm number.subint multipointATM(config)# lane client ethernet vlan-num elan-num32. 用show lane server 显示LES的状态.33. 用show lane bus显示bus的状态.34. 用show lane database显示LECS数据库可内容.35. 用show lane client显示LEC的状态.36. 用show module显示已安装的模块列表.37. 用物理接口建立与VLAN的连接:router# configure terminalrouter(config)# interface media module/portrouter(config-if)# description description-stringrouter(config-if)# ip address ip-addr subnet-maskrouter(config-if)# no shutdown38. 用中继链路来建立与VLAN的连接:router(config)# interface module/port.subinterfacerouter(config-ig)# encapsulation[isl|dotlq] vlan-numberrouter(config-if)# ip address ip-address subnet-mask39. 用LANE 来建立与VLAN的连接:router(config)# interface atm module/portrouter(config-if)# no ip addressrouter(config-if)# atm pvc 1 0 5 qsaalrouter(config-if)# atm pvc 2 0 16 ilnirouter(config-if)# interface atm module/port.subinterface multipoint router(config-if)# ip address ip-address subnet-maskrouter(config-if)# lane client ethernet elan-numrouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-namerouter(config-if)# lane client ethernet elan-namerouter(config-if)# …40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行: router(config)# ip routingrouter(config)# router ip-routing-protocolrouter(config-router)# network ip-network-numberrouter(config-router)# network ip-network-number41. 配置默认路由:switch(enable) set ip route default gateway42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令:router(config)# interface interface numberrouter(config-if)# mls rp vlan-id vlan-id-num43. 在路由处理器启用MLSP:router(config)# mls rp ip44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中: router(config)# interface interface numberrouter(config-if)# mls rp vtp-domain domain-name45. 查看指定的VTP域的信息:router# show mls rp vtp-domain vtp domain name46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令: router(config-if)#mls rp management-interface47. 要检验MLS-RP的配置情况:router# show mls rp48. 检验特定接口上的MLS配置:router# show mls rp interface interface number49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:set mls flow [destination|destination-source|full]50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:router(config)# mls rp ip input-acl51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:switch(enable) set mls enable52. 若想改变老化时间的值,可在特权模式下输入以下命令:switch(enable) set mls agingtime agingtime53. 设置快速老化:switch(enable) set mls agingtime fast fastagingtime pkt_threshold54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:switch(enable) show mls include55. 显示MLS高速缓存记录:switch(enable) show mls entry56. 用命令show in arp显示ARP高速缓存区的内容。
做弱电的人手一份!思科、华为等四大厂商的交换机配置命令全收录

做弱电的人手一份!思科、华为等四大厂商的交换机配置命令全收录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命令查看信息比较多。
Cisco与H3C 命令对比

erase
delete
保存配置文件
write
save
设置路由器名字
hostname
sysname
创建新用户
username
local-user
设置特权密码
enable secret
super password
设置明文密码
enable password
set authentication password simple
ctrl+d
交换部分
进入接口
interface type/number
port type/number
配置管理vlan地址
interface vlan 1
interface vlan 1
定义多个端口组
interface rang
interface ethID to ID
配置接口状态
duplex(half|full|auto)
line vty 0 4
user-interface vty 0 4
设备VTY登陆密码
password
set authentication password
清除统计信息/复位进程
clear
reset
重启路由器
reload
reboot
进入中文状态
\
lang chinese
host与ip名字对应
host
进入端口设备模式
interface端口
interface端口
设置端口封装模式
encapslution
link-protocl
设置E1端口非成帧模式
unframed
思科华为交换机常用命令对照表1

默认路由配置 静态路由配置
本地Con 0管理
Switch(config)#ip default-gateway 172.16.1.9 ip route 0.0.0.0 0.0.0.0 172.16.1.9 SW(config)# line console 0 SW(config-line)# login SW(config-line)# password Lisbon 或 SW(config)# username student password cisco SW(config)# line console 0 SW(config-line)# login local ————————————————————————————— —— logging synchronous 当你正在输入命令,CONSOLE台这个时候弹 出了些信息,就把你的命令打断了。输入logging synchronous后就
远程VTY
line vty 0 4 privilege level 15 password xiaowanzi login
#erase start-config
清空交换机配置
#delete #reload
vlan.dat
然后选no
华为交换机
用户;Quidway>sys [Quidway] 以太网端口视图 [Quidway]int GigabitEthernet 0/1 [Quidway-GigabitEthernet0/0/1]
系统视图执行set save-configuration delay 1 set save-configuration backup-to-server server 192.168.28.49 transport-type tftp 设置当配置发生变化1分钟后自动将备份上传至指定的服务器
思科和H3C常用配置详细对比

cisco与华为命令比较功能Cisco命令华为命令进入全局模式#configure terminal <Quidway>system显示当前配置show running-config display current-configuration 显示版本信息show version display version显示vlan信息show vlan display vlan显示接口信息show interface接口display interface接口交换机路由器命名hostname主机名sysname主机名修改特权密码enable password密码(明文)enable secret密码(密文)super password密码进入接口模式interface接口interface接口进入vlan模式interface vlan vlan号interface vlan vlan号给接口配IP ip address <ip> <掩码> ip address <ip> <掩码>配telnet密码line vty 0 4password密码login user-interface vty 0 4authentication-mode passwordset authentication-mode password simple密码user privilege level 3激活端口no shutdown undo shutdown 关闭端口shutdown shutdown退出exit quit创建VLAN vlan vlan号vlan vlan号VLAN中增加端口port e0/1port e0/2 to e0/4当前端口加入到VLAN switchport access vlan vlan号port access vlan vlan号设置端口工switchport mode port link-type作模式trunk|access|dynamic trunk|access|hybrid设trunk允许的VLAN switchport trunk allowed vlanremove|add IDport trunk permit vlan ID|All指定镜像端口monitor session 1 destinationint接口monitor-port接口指定被镜像端口monitor session 1 source int接口 bothport mirror接口设置生成树启动与否spanning-tree vlan vlan号(默认开启)stp enable|disable(默认关闭)端口的聚合 interface range f0/1 – 4channel-group 1 mode on link-aggregation e0/1 to e0/4 ingress|bothundo link-aggregation e0/1|all设置主vlan isolate-user-vlan enable设置主vlan 包括的子vlan isolate-user-vlan<x> secondary <vlan-list>显示路由信息show ip route display ip route 绑定HDLC协议默认就是link-protocol hdlc设静态路由 ip route网络号掩码下一跳IP/接口ip route-static网络号掩码下一跳IP/接口启用RIP路由router rip riprip workrip inputrip output配置路由器的ID int loopback 0ip add IP地址掩码router id A.B.C.D启动OSPF协议router ospf进程号ospf enable配置OSPF区域net网络号反向掩码 area<area_id>int接口ospf enable area <area_id>标准ACL命令格式access-list列表号permit|deny源IP反向掩码acl <acl-number> [match-orderconfig|auto]rule[normal|special]{permit|deny}[source source-addrsource-wildcard|any]扩展ACL配置access-list列表号permit|deny协议源IP反向掩码目的IP反向掩码 eq端口号acl <acl-number> [match-orderconfig|auto]rule{normal|special}{permit|deny}{tcp|udp}source {<ipwild>|any}destination <ipwild>|any} eq服务名PPP设置encapsulation ppp link-protocol pppPap认证主认证方(config)#username用户名password密码(config)#int串口接口(config-if)#pppauthentication pap被认证方(config)#int串口接口(config-if)#ppp papsent-username用户名password密码主认证方local-user用户名password {simple|cipher}密码interface串口接口ppp authentication-mode pap被认证方interface串口接口ppp pap local-user用户名password {simple|cipher}密码Chap认证主认证方(config)#username客户端主机名 password密码主认证方local-user对方主机名password {simple|cipher}密码(config)#int 串口接口 (config-if)#ppp authentication(config-if)#ppp chap hostname服务器主机名 被认证方(config)#username 服务器主机名 password 密码 (config)#int 串口接口(config-if)#ppp chap hostname客户端主机名interface 串口接口ppp authentication-mode chapppp chap user 自己主机名被认证方 interface 串口接口local-user 对方主机名 password {simple|cipher}密码 ppp chap user 自己主机名静态nat (1)为内外部接口配IP 并激活; (2)在接口上启用NAT ; 内部接口:ip nat inside 外部接口:ip nat outside (3)建立静态地址转换(config)#ip nat inside sourcestatic 私有IP 公网IPinterface 接口nat server global <ip> [port] inside <ip> port [protocol]动态NAT (1)为内外部接口配IP 并激活; (2)在接口上启用NAT ; 内部接口:ip nat inside外部接口:ip nat outside(3)定义内网允许访问外网的ACL(config)#access-list 列表号 permit 源IP 反向掩码(1) 建立地址池nat address-group 公网起始IP 公网终止IP pool 1 (2)定义内网允许访问外网的ACLacl 列表号rule permit source 源IP 反向掩码 rule deny sourceany (3)实现地址转换(4)定义合法IP 地址池 (config)#ip nat pool 地址池名 公网起始IP 公网终止IP netmask 掩码(5)实现地址转换(config)#ip nat inside sourcelist 列表号 pool 地址池名int 公网接口nat outbound 列表号address-group pool 1调试命令 思科:Switch#show run 显示所有配置命令Switch#show ip inter brief 显示所有接口状态 Switch#show vlan brief 显示所有VLAN 的信息 Switch#show version 显示版本信息 华为:[Quidway]dis cur 显示所有配置命令[Quidway]display interfaces 显示所有接口状态 [Quidway]display vlan all 显示所有VLAN 的信息[Quidway]display version 显示版本信息 二、接口配置命令思科:Switch(config)#interface f0/8 进入接口视图 Switch(config-if)#no shut 此命令开启接口Switch(config-if)#description to server01 端口描述Switch(config-if)#ip add 192.168.1.100 255.255.255.0 设置接口IP 华为:[Quidway]interface e0/1 进入接口视图 [Quidway]undo shutdown 此命令开启接口[Quidway]description to server02 端口描述[Quidway]ip add 192.168.1.102 255.255.255.0 设置接口IP 三、VLAN 配置命令:思科:建立和删除VLANSwitch# vlan databaseSwitch(vlan)# vlan 20 name test20Switch(vlan)# no vlan 20Switch(vlan)# exit将端口分配给一个VLANSwitch(config)# interface f0/1Switch(config-if)# switchport mode accessSwitch(config-if)# switchport access vlan 20设置VLAN TRUNKSwitch(config)# interface f0/24Switch(config-if)# switchport mode trunkSwitch(config-if)#switchport trunk allow vlan {ID|All}Switch(config-if)# switchport trunk encapsulation dot1q华为:建立和删除VLAN[Quidway]vlan 30[Quidway]undo vlan 30将端口分配给一个VLAN[Quidway]int ethernet0/1[Quidway-Ethernet0/1]port access vlan 30( port default vlan 30)或[Quidway]vlan 30[Quidway-vlan3]port ethernet 0/1 在VLAN中增加端口[Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 在VLAN中增加多个连续端口设置VLAN TRUNK[Quidway]int e0/24[Quidway-Ethernet0/24] port link-type trunk[Quidway-Ethernet0/24]port trunk permit vlan {ID|All}四、端口镜像配置思科:配置镜像源端口Switch(config)#monitor session 1 source interface gigabitEthernet 0/2 –5 rx上面命令最后一个参数:both 监听双向数据,默认为bothrx 接收tx 发送配置镜像目的端口Switch(config)#monitor session 1 destination interface gigabitEthernet 0/6删除镜像端口Switch(config)#no monitor session 1华为:将端口E0/2配置为监控端口[Quidway]monitor-port Ethernet 0/2端口E0/1配置为镜像端口[Quidway]port mirror Ethernet 0/1或者直接配置监控端口和镜像端口[Quidway]port mirror Ethernet 0/1 observing-port Ethernet 0/2删除镜像[Quidway]undo monitor-port五、冗余配置思科HSRP:Switch# interface Vlan20ip address 172.29.197.33 255.255.255.248standby 20 ip 172.29.197.53standby 20 priority 105 优先级standby 20 preempt 抢占standby 20 track GigabitEthernet0/25 decrement 10 跟踪端口如果DOWN 了优先级减10华为VRRP:[Quidway]interface Vlanif30ip address 172.29.197.9 255.255.255.248vrrp vrid 30 virtual-ip 172.29.141.11vrrp vrid 30 priority 150 优先级vrrp vrid 30 preempt-mode 抢占vrrp vrid 30 track interface GigabitEthernet0/0/18 reduced 60 跟踪端口如果DOWN了优先级减60六、设置安全远程访问思科设置vty安全访问:R1(config)# access-list 1 permit 192.168.2.5R1(config)# line vty 0 4R1(config)# access-class 1 in华为设置vty安全访问:[Quidway]acl number 2000rule 1 permit source 172.29.181.150 0rule 2 deny[Quidway]user-interface vty 0 4acl 2000 inbound七、NTP配置思科:Cisco6509#show clock 显示时间Cisco6509#clock set 14:00:00 30 Sep 2011 设置时间Cisco6509(config)#ntp server 202.198.0.102 设置与其他时间服务器同步Cisco6509(config)#clock timezone beijing +8 设置时区华为:[Quidway]dis clock 显示时间[Quidway]clock datetime 23:30:00 2011/11/16 设置时间[Quidway]ntp-service unicast-server 202.198.0.102 设置与其他时间服务器同步[Quidway]clock timezone E8 add 08:00:00 设置时区八、静态路由配置思科:ip route <目的网段> <目的网段掩码><下一跳>Cisco6509# ip route 0.0.0.0 0.0.0.0 10.65.1.2 静态路由Cisco6509#ip route 0.0.0.0 0.0.0.0 192.168.3.1 150 浮动静态路由管理距离为150华为:[Quidway] ip route-static 0.0.0.0 0.0.0.0 10.65.1.2[Quidway]ip route-static 0.0.0.0 0.0.0.0192.168.3.1 preference 150九、可网管配置思科:Switch(config)#snmp-server community sunion ro 配置本交换机的只读字串为sunionSwitch(config)#snmp-server community sunion rw 配置本交换机的读写字串为sunionSwitch(config)#snmp-server enable traps 允许交换机将所有类型SNMP Trap 发送出去Switch(config)#snmp-server host 192.168.190.1 traps sunion 指定交换机SNMP Trap的接收者为192.168.190.1,发送Trap时采用sunion作为字串华为:[Quidway]snmp-agent community read datanms 配置本交换机的只读字串为datanms[Quidway]snmp-agent community write datanms 配置本交换机的读写字串为datanms[Quidway]snmp-agent sys-info location BeiJing China 设置交换机的位置信息[Quidway]snmp-agent sys-info version all 设置交换机支持所有的SNMP协议版本[Quidway]snmp-agent target-host trap address udp-domain192.168.190.121 params securityname datanms 指定交换机SNMP Trap的接收者为192.168.190.121 ,发送Trap时采用datanms作为字串。
关于华为网络产品与cisco网络产品性能及配置对比说明
关于华为网络产品与cisco网络产品性能及配置对比说明关于华为网络产品与cisco网络产品性能、服务及配置对比说明总体感觉,华为提供的产品性能指标参数较高,但缺乏说服力,比如来自第三方权威机构的确认和验证,因此,这些技术指标目前很难真实反映并代表产品实际具备的能力。
华为关于汇聚、接入层交换机的对比针对cisco部分对比不详,仅列举了华为的相关技术参数而漏缺了cisco的很多技术参数。
另外,华为和cisco在其它一些方面存在的异性、共性对比如下: 1.性能及服务对比 ? 异性? 总体技术先进性cisco的交换、路由产品不光是同华为相比,即使同业界其它大量一些优秀厂商(如junipper、凯创。
等)的产品相比,cisco产品在单项技术指标参数上并不每项均表现为最优或最高,但是cisco产品的整体表现力、竞争力却是其竞争对手难以在短时间内赶超的。
cisco在技术上的专利同华为在技术上的专利相比更容易成为行业标准。
华为产品从早期IOS几乎完全模仿cisco到目前通过在产品命名方面采取和cisco及其类似的方式基本可以看出华为和cisco的技术实力对比。
? 稳定性、可靠性cisco产品由于经历了长时间的市场、行业、环境考验,对制造型企业而言,从核心的65系列到3750系列再到2950系列尤其是路由器均具备适合于企业环境需求的稳定性和可靠性,存在大量成功案例。
目前大量的业界使用案例证明cisco产品平均无故障时间相对华为产品而言要更长,因此设备返修或故障率极低,华为的中低端交换、路由产品目前也已经经过了较长时间的市场考验,具有较好的产品稳定性、可靠性,但其核心设备据业界的反馈存在一些不够稳定的实例。
华为的高端产品在企业应用案例很少,虽然华为的中高端产品在政府、电信、金融等行业使用,但其通常都以双机(即设备冗余)的方式出现、已以弥补单机性能(如稳定、可靠性)的不足和可能的风险。
? 扩展能力从技术发展趋势方面(如汇聚对万兆的支持),本次项目中cisco的核心交换机同华为相比具有较好的扩展能力(65千兆接口的扩展数量以及万兆接口的扩展数量比华为的多)。
关于华为网络产品与cisco网络产品性能及配置对比说明
关于华为网络产品与cisco网络产品性能、服务及配置对比说明总体感觉,华为提供的产品性能指标参数较高,但缺乏说服力,比如来自第三方权威机构的确认和验证,因此,这些技术指标目前很难真实反映并代表产品实际具备的能力。
华为关于汇聚、接入层交换机的对比针对cisco部分对比不详,仅列举了华为的相关技术参数而漏缺了cisco的很多技术参数。
另外,华为和cisco在其它一些方面存在的异性、共性对比如下:1.性能及服务对比●异性总体技术先进性cisco的交换、路由产品不光是同华为相比,即使同业界其它大量一些优秀厂商(如junipper、凯创。
等)的产品相比,cisco产品在单项技术指标参数上并不每项均表现为最优或最高,但是cisco产品的整体表现力、竞争力却是其竞争对手难以在短时间内赶超的。
cisco在技术上的专利同华为在技术上的专利相比更容易成为行业标准。
华为产品从早期IOS几乎完全模仿cisco到目前通过在产品命名方面采取和cisco及其类似的方式基本可以看出华为和cisco的技术实力对比。
稳定性、可靠性cisco产品由于经历了长时间的市场、行业、环境考验,对制造型企业而言,从核心的65系列到3750系列再到2950系列尤其是路由器均具备适合于企业环境需求的稳定性和可靠性,存在大量成功案例。
目前大量的业界使用案例证明cisco产品平均无故障时间相对华为产品而言要更长,因此设备返修或故障率极低,华为的中低端交换、路由产品目前也已经经过了较长时间的市场考验,具有较好的产品稳定性、可靠性,但其核心设备据业界的反馈存在一些不够稳定的实例。
华为的高端产品在企业应用案例很少,虽然华为的中高端产品在政府、电信、金融等行业使用,但其通常都以双机(即设备冗余)的方式出现、已以弥补单机性能(如稳定、可靠性)的不足和可能的风险。
扩展能力从技术发展趋势方面(如汇聚对万兆的支持),本次项目中cisco的核心交换机同华为相比具有较好的扩展能力(65千兆接口的扩展数量以及万兆接口的扩展数量比华为的多)。
思科、华为全系列交换机路由器常用命令
思科、华为全系列交换机路由器常用命令交换机/路由器配置综合复习交换机/路由器常用命令汇总/sxjd/network本课内容交换机常用命令路由器常用命令2·>Enable 进入特权模式··#Exit#End返回上一级操作模式返回到特权模式·#write memory 或copy running-config startup-config 保存配置文件·#del flash:config.text 删除配置文件(交换机及1700系列路由器)·#del flash:vlan.dat 删除Vlan配置信息(交换机)·(config)# hostname switchA 配置设备名称为switchA 4·(config)#enable secret level 1 0 star配置远程登陆密码为star·(config)#enable secret level 15 0 star 配置特权密码为star·Level 1为普通用户级别,可选为1~15,15为最高权限级别;0表示密码不加密·(config)#enable services web-server 开启交换机WEB管理功能·Services 可选以下:web-server(WEB管理)、telnet-server(远程登陆)等5查看信息·#show running-config查看当前生效的配置信息·#show interface fastethernet 0/3 查看F0/3端口信息·#show interface serial 1/2 查看S1/2端口信息·#show interface 查看所有端口信息·#show ip interface brief 以简洁方式汇总查看所有端口信息·#show ip interface 查看所有端口信息·#show version 查看版本信息6查看信息·#show mac-address-table 查看交换机当前MAC 地址表信息·#show running-config 查看当前生效的配置信息··#show vlan#show vlan id 10查看所有VLAN信息查看某一VLAN (如VLAN10)的信息·#show interface fastethernet 0/1 switchport 查看某一端口模式(如F 0/1)·#show aggregateport 1 summary 查看聚合端口AG1的信息7查看信息·#show spanning-tree 查看生成树配置信息·#show spanning-tree interface fastethernet 0/1 查看该端口的生成树状态·#show port-security 查看交换机的端口安全配置信息·#show port-security address 查看地址安全绑定配置信息·#show ip access-lists listname 查看名为listname的列表的配置信息·#show access-lists 8端口的基本配置·(config)#Interface fastethernet 0/3 进入F0/3的端口配置模式·(config)#interface range fa 0/1-2,0/5,0/7- 9 进入F0/1、F0/2、F0/5、F0/7、F0/8、F0/9的端口配置模式·(config-if)#speed 10 配置端口速率为10M,可选10,100,auto9端口的基本配置·(config-if)#duplex full 配置端口为全双工模式,可选full(全双工),half(半双式),auto(自适应)··(config-if)#no shutdown 开启该端口(config-if)#switchport access vlan 10 将该端口划入VLAN10中,用于VLAN·(config-if)#switchport mode trunk将该端口设为trunk模式, 可选模式为access , trunk ·(config-if)#port-group 1 将该端口划入聚合端口AG1中,用于聚合端口10聚合端口的创建·(config)# interface aggregateport 1 创建聚合接口AG1·(config-if)# switchport mode trunk 配置并保证AG1为 trunk 模式·(config)#int f0/23-24·(config-if-range)#port-group 1 将端口(端口组)划入聚合端口AG1中11生成树·(config)#spanning-tree 开启生成树协议·(config)#spanning-tree mode stp 指定生成树类型为stp可选模式stp , rstp , mstp·(config)#spanning-tree priority 4096 设置交换机的优先级为4096 , 优先级值小为高。
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 *
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
思科和华为交换机应该是网络项目中大家接触比较多的了,这两种交换机的常用命令各有不同,本文结合网络项目中两种交换机的常用命令从对比的角度帮助大家来学习。 一、调试命令 思科: Switch#show run 显示所有配置命令 Switch#show ip inter brief 显示所有接口状态 Switch#show vlan brief 显示所有VLAN的信息 Switch#show version 显示版本信息 华为: [Quidway]dis cur 显示所有配置命令 [Quidway]display interfaces 显示所有接口状态 [Quidway]display vlan all 显示所有VLAN的信息 [Quidway]display version 显示版本信息 二、接口配置命令 思科: Switch(config)#interface f0/8 进入接口视图 Switch(config-if)#no shut 此命令开启接口 Switch(config-if)#description to server01 端口描述 Switch(config-if)#ip add 192.168.1.100 255.255.255.0 设置接口IP 华为: [Quidway]interface e0/1 进入接口视图 [Quidway]undo shutdown 此命令开启接口 [Quidway]description to server02 端口描述 [Quidway]ip add 192.168.1.102 255.255.255.0 设置接口IP 三、VLAN配置命令: 思科: 建立和删除VLAN Switch# vlan database Switch(vlan)# vlan 20 name test20 Switch(vlan)# no vlan 20 Switch(vlan)# exit 将端口分配给一个VLAN Switch(config)# interface f0/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 20 设置VLAN TRUNK Switch(config)# interface f0/24 Switch(config-if)# switchport mode trunk Switch(config-if)#switchport trunk allow vlan {ID|All} Switch(config-if)# switchport trunk encapsulation dot1q 华为: 建立和删除VLAN [Quidway]vlan 30 [Quidway]undo vlan 30 将端口分配给一个VLAN [Quidway]int ethernet0/1 [Quidway-Ethernet0/1]port access vlan 30( port default vlan 30) 或[Quidway]vlan 30 [Quidway-vlan3]port ethernet 0/1 在VLAN中增加端口 [Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 在VLAN中增加多个连续端口 设置VLAN TRUNK [Quidway]int e0/24 [Quidway-Ethernet0/24] port link-type trunk [Quidway-Ethernet0/24]port trunk permit vlan {ID|All} 四、端口镜像配置 思科: 配置镜像源端口 Switch(config)#monitor session 1 source interface gigabitEthernet 0/2 - 5 rx 上面命令最后一个参数: both 监听双向数据,默认为both rx 接收 tx 发送
配置镜像目的端口 Switch(config)#monitor session 1 destination interface gigabitEthernet 0/6
删除镜像端口 Switch(config)#no monitor session 1 华为: 将端口E0/2配置为监控端口 [Quidway]monitor-port Ethernet 0/2 端口E0/1配置为镜像端口 [Quidway]port mirror Ethernet 0/1 或者直接配置监控端口和镜像端口 [Quidway]port mirror Ethernet 0/1 observing-port Ethernet 0/2
删除镜像[Quidway]undo monitor-port 五、冗余配置 思科HSRP: Switch# interface Vlan20 ip address 172.29.197.33 255.255.255.248 standby 20 ip 172.29.197.53 standby 20 priority 105 优先级 standby 20 preempt 抢占 standby 20 track GigabitEthernet0/25 decrement 10 跟踪端口如果DOWN了优先级减10 华为VRRP: [Quidway]interface Vlanif30 ip address 172.29.197.9 255.255.255.248 vrrp vrid 30 virtual-ip 172.29.141.11 vrrp vrid 30 priority 150 优先级 vrrp vrid 30 preempt-mode 抢占 vrrp vrid 30 track interface GigabitEthernet0/0/18 reduced 60 跟踪端口如果DOWN了优先级减60 六、设置安全远程访问 思科设置vty安全访问: R1(config)# access-list 1 permit 192.168.2.5 R1(config)# line vty 0 4 R1(config)# access-class 1 in 华为设置vty安全访问: [Quidway]acl number 2000 rule 1 permit source 172.29.181.150 0 rule 2 deny [Quidway]user-interface vty 0 4 acl 2000 inbound 七、NTP配置 思科: Cisco6509#show clock 显示时间 Cisco6509#clock set 14:00:00 30 Sep 2011 设置时间 Cisco6509(config)#ntp server 202.198.0.102 设置与其他时间服务器同步 Cisco6509(config)#clock timezone beijing +8 设置时区 华为: [Quidway]dis clock 显示时间 [Quidway]clock datetime 23:30:00 2011/11/16 设置时间 [Quidway]ntp-service unicast-server 202.198.0.102 设置与其他时间服务器同步 [Quidway]clock timezone E8 add 08:00:00 设置时区
八、静态路由配置 思科: ip route Cisco6509# ip route 0.0.0.0 0.0.0.0 10.65.1.2 静态路由 Cisco6509#ip route 0.0.0.0 0.0.0.0 192.168.3.1 150 浮动静态路由管理距离为150
华为: [Quidway] ip route-static 0.0.0.0 0.0.0.0 10.65.1.2 [Quidway]ip route-static 0.0.0.0 0.0.0.0 192.168.3.1 preference 150
九、可网管配置 思科: Switch(config)#snmp-server community sunion ro 配置本交换机的只读字串为sunion Switch(config)#snmp-server community sunion rw 配置本交换机的读写字串为sunion Switch(config)#snmp-server enable traps 允许交换机将所有类型SNMP Trap发送出去 Switch(config)#snmp-server host 192.168.190.1 traps sunion 指定交换机SNMP Trap的接收者为192.168.190.1,发送Trap时采用sunion作为字串 华为: [Quidway]snmp-agent community read datanms 配置本交换机的只读字串为datanms [Quidway]snmp-agent community write datanms 配置本交换机的读写字串为datanms [Quidway]snmp-agent sys-info location BeiJing China 设置交换机的位置信息 [Quidway]snmp-agent sys-info version all 设置交换机支持所有的SNMP协议版本 [Quidway]snmp-agent target-host trap address udp-domain 192.168.190.121 params securityname datanms 指定交换机SNMP Trap的接收者为192.168.190.121 ,发送Trap时采用datanms作为字串 好了,通过以上九点的举例,相信大家对项目中两种交换机的常用命令应该比较清晰了,当然更多的命令使用和技巧需要我们不断的积累。