思科、华为、H3c常用命令对比

思科、华为、H3c常用命令对比
思科、华为、H3c常用命令对比

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

cisco常用命令解释

视图模式介绍:

普通视图router>

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

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

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

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

1、基本配置:

router>enable /进入特权模式

router#conf t /进入全局配置模式

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

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

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

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

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

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

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

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

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

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

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

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

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

2、接口配置:

router(config)#interface serial0 /进入接口配置模式serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口)router(config-if)#ip address xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码

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

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

router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码给环回口router(config-if)#no shutdown /在物理接口上配置了ip地址后用no shut启用这个物理接口反之可以用shutdown管理性的关闭接口

3、路由配置:

(1)静态路由

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

router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由

(2)动态路由

rip协议

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

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

router(config-router)#version 2 转换为rip 2版本

router(config-router)#no auto-summary /关闭自动汇总功能,rip V2才有作用

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

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

igrp协议

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

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

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

eigrp协议

router(config)router eigrp xxx /启动协议

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

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

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

ospf协议

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

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

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

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

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

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

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

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

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

router#Copy running-config startup-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#show ip route /查看当前的路由表

router#clear ip route * /清楚当前的路由表

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

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

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

router#show startup-config /查看启动配置

router#debug ip pack /打开ip报文的调试

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

router#show ip eigrp neighbors /查看eigrp协议的邻居表

router#show ip eigrp top /查看eigrp协议的拓朴表

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

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

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

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

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

router#Show interfaces serial /显示关于一个串口的信息

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

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

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

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

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

Access-list 定义一个标准的IP ACL

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

Appn 向APPN子系统发送命令

Atmsig 执行ATM信令命令

B 手动引导操作系统

Bandwidth 设置接口的带宽

Banner motd 指定日期信息标语

Bfe 设置突发事件手册模式

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

Calendar 设置硬件日历

Cd 更改路径

Cdp enable 允许接口运行CDP协议

Clear 复位功能

Clear counters 清除接口计数器

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

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

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

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

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

Configure memory 从NVRAM加载配置信息

Configure terminal 从终端进行手动配置

Connect 打开一个终端连接

Copy 复制配置或映像数据

Copy flash tftp 备份系统映像文件到TFTP服务器

Copy running-config startup-config 将RAM中的当前配置存储到NVRAM

Copy running-config tftp 将RAM中的当前配置存储到网络TFTP服务器上

Copy tftp flash 从TFTP服务器上下载新映像到Flash

Copy tftp running-config 从TFTP服务器上下载配置文件

Debug 使用调试功能

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

Debug ip rip 显示RIP路由选择更新数据

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

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

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

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

Delete 删除文件

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

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

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

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

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

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

Dir 显示给定设备上的文件

Disable 关闭特许模式

Disconnect 断开已建立的连接

Enable 打开特许模式

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

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

Enable secret 为enable password命令定义额外一层安全性

Encapsulation frame-relay 启动帧中继封装

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

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

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

End 退出配置模式

Erase 删除闪存或配置缓存

Erase startup-config 删除NVRAM中的内容

Exec-timeout 配置EXEC命令解释器在检测到用户输入前所等待的时间

Exit 退出所有配置模式或者关闭一个激活的终端会话和终止一个EXEC

Exit 终止任何配置模式或关闭一个活动的对话和结束EXEC

format 格式化设备

Frame-relay local-dlci 为使用帧中继封装的串行线路启动本地管理接口(LMI)

Help 获得交互式帮助系统

History 查看历史记录

Hostname 使用一个主机名来配置路由器,该主机名以提示符或者缺省文件名的方式使用

Interface 设置接口类型并且输入接口配置模式

Interface 配置接口类型和进入接口配置模式

Interface serial 选择接口并且输入接口配置模式

Ip access-group 控制对一个接口的访问

Ip address 设定接口的网络逻辑地址

Ip address 设置一个接口地址和子网掩码并开始IP处理

Ip default-network 建立一条缺省路由

Ip domain-lookup 允许路由器缺省使用DNS

Ip host 定义静态主机名到IP地址映射

Ip name-server 指定至多6个进行名字-地址解析的服务器地址

Ip route 建立一条静态路由

Ip unnumbered 在为给一个接口分配一个明确的IP地址情况下,在串口上启动互联网协议(IP)的处理过程

Ipx delay 设置点计数

Ipx ipxwan 在串口上启动IPXWAN协议

Ipx maximum-paths 当转发数据包时设置Cisco IOS软件使用的等价路径数量

Ipx network 在一个特定接口上启动互联网数据包交换(IPX)的路由选择并且选择封装的类型(用帧封装)

Ipx router 规定使用的路由选择协议

Ipx routing 启动IPX路由选择

Ipx sap-interval 在较慢的链路上设置较不频繁的SAP(业务广告协议)更新

Ipx type-20-input-checks 限制对IPX20类数据包广播的传播的接受

Isdn spid1 在路由器上规定已经由ISDN业务供应商为B1信道分配的业务简介号(SPID)

Isdn spid2 在路由器上规定已经由ISDN业务供应商为B2信道分配的业务简介号(SPID)

Isdn switch-type 规定了在ISDN接口上的中央办公区的交换机的类型

Keeplive 为使用帧中继封装的串行线路LMI(本地管理接口)机制

Lat 打开LAT连接

Line 确定一个特定的线路和开始线路配置

Line concole 设置控制台端口线路

Line vty 为远程控制台访问规定了一个虚拟终端

Lock 锁住终端控制台

Login 在终端会话登录过程中启动了密码检查

Login 以某用户身份登录,登录时允许口令验证

Mbranch 向下跟踪组播地址路由至终端

Media-type 定义介质类型

Metric holddown 把新的IGRP路由选择信息与正在使用的IGRP路由选择信息隔离一段时间

Mrbranch 向上解析组播地址路由至枝端

Mrinfo 从组播路由器上获取邻居和版本信息

Mstat 对组播地址多次路由跟踪后显示统计数字

Mtrace 由源向目标跟踪解析组播地址路径

Name-connection 命名已存在的网络连接

Ncia 开启/关闭NCIA服务器

Network 把一个基于NIC的地址分配给一个与它直接相连的路由器把网络与一个IGRP的路由选择的过程联系起来在IPX路由器配置模式下,在网络上启动加强的IGRP Network 指定一个和路由器直接相连的网络地址段

Network-number 对一个直接连接的网络进行规定

No shutdown 打开一个关闭的接口

Pad 开启一个X.29 PAD连接

Permit 为一个已命名的IP ACL设置条件

Ping 把ICMP响应请求的数据包发送网络上的另一个节点检查主机的可达性和网络的连通性对网络的基本连通性进行诊断

Ping 发送回声请求,诊断基本的网络连通性

Ppp 开始IETF点到点协议

Ppp authentication 启动Challenge握手鉴权协议(CHAP)或者密码验证协议(PAP)或者将两者都启动,并且对在接口上选择的CHAP和PAP验证的顺序进行规定Ppp chap hostname 当用CHAP进行身份验证时,创建一批好像是同一台主机的拨号路由器

Ppp chap password 设置一个密码,该密码被发送到对路由器进行身份验证的主机命令对进入路由器的用户名/密码的数量进行了限制

Ppp pap sent-username 对一个接口启动远程PAP支持,并且在PAP对同等层请求数据包验证过程中使用sent-username和password

Protocol 对一个IP路由选择协议进行定义,该协议可以是RIP,内部网关路由选择协议(IGRP),开放最短路径优先(OSPF),还可以是加强的IGRP

Pwd 显示当前设备名

Reload 关闭并执行冷启动;重启操作系统

Rlogin 打开一个活动的网络连接

Router 由第一项定义的IP路由协议作为路由进程,例如:router rip 选择RIP作为路由协议

Router igrp 启动一个IGRP的路由选择过程

Router rip 选择RIP作为路由选择协议

Rsh 执行一个远程命令

Sdlc 发送SDLC测试帧

Send 在tty线路上发送消息

Service password-encryption 对口令进行加密

Setup 运行Setup命令

Show 显示运行系统信息

Show access-lists 显示当前所有ACL的内容

Show buffers 显示缓存器统计信息

Show cdp entry 显示CDP表中所列相邻设备的信息

Show cdp interface 显示打开的CDP接口信息

Show cdp neighbors 显示CDP查找进程的结果

Show dialer 显示为DDR(数字数据接受器)设置的串行接口的一般诊断信息

Show flash 显示闪存的布局和内容信息

Show frame-relay lmi 显示关于本地管理接口(LMI)的统计信息

Show frame-relay map 显示关于连接的当前映射入口和信息

Show frame-relay pvc 显示关于帧中继接口的永久虚电路(pvc)的统计信息

Show hosts 显示主机名和地址的缓存列表

Show ip protocols 显示活动路由协议进程的参数和当前状态

Show ip route 显示路由选择表的当前状态

Show ip router 显示IP路由表信息

Show ipx interface 显示Cisco IOS软件设置的IPX接口的状态以及每个接口中的参数Show ipx route 显示IPX路由选择表的内容

Show ipx servers 显示IPX服务器列表

Show ipx traffic 显示数据包的数量和类型

Show isdn active 显示当前呼叫的信息,包括被叫号码、建立连接前所花费的时间、在呼叫期间使用的自动化操作控制(AOC)收费单元以及是否在呼叫期间和呼叫结束时提供AOC信息

Show isdn ststus 显示所有isdn接口的状态、或者一个特定的数字信号链路(DSL)的状态或者一个特定isdn接口的状态

Show memory 显示路由器内存的大小,包括空闲内存的大小

Show processes 显示路由器的进程

Show protocols 显示设置的协议

Show protocols 显示配置的协议。这条命令显示任何配置了的第3层协议的状态

Show running-config 显示RAM中的当前配置信息

Show spantree 显示关于虚拟局域网(VLAN)的生成树信息

Show stacks 监控和中断程序对堆栈的使用,并显示系统上一次重启的原因

Show startup-config 显示NVRAM中的启动配置文件

Show ststus 显示ISDN线路和两个B信道的当前状态

Show version 显示系统硬件的配置,软件的版本,配置文件的名称和来源及引导映像Shutdown 关闭一个接口

Telnet 开启一个telect连接

Term ip 指定当前会话的网络掩码的格式

Term ip netmask-format 规定了在show命令输出中网络掩码显示的格式Timers basic 控制着IGRP以多少时间间隔发送更新信息

Trace 跟踪IP路由

Username password 规定了在CHAP和PAP呼叫者身份验证过程中使用的密码Verify 检验flash文件

Where 显示活动连接

Which-route OSI路由表查找和显示结果

Write 运行的配置信息写入内存,网络或终端

Write erase 现在由copy startup-config命令替换

华为思科命令比较

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 dis diagnostic-information 显示全面的信息no undo 取消(删除) hostname sysname 更改机器名 \ lang chinese 进入中文状态 user local-user 新建修改用户 end return 退回到特权模式 exit quit 返回上级视图 exit quit 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 接口控制

华为交换机配置命令手册及实验

华为交换机配置命令手 册及实验 Huawei 交换机配置命令手册: 1、开始 建立本地配置环境,将主机的串口通过配置电缆与以太网交换机的Console 口连接。在 主机上运行终端仿真程序(如Windows 的超级终端等),设置终端通信参数为:波特 率为9600bit/s、8 位数据位、1 位停止位、无校验和无流控,并选择终端类型为 VT100。 以太网交换机上电,终端上显示以太网交换机自检信息,自检结束后提示用户键入回车,之后将出现命令行提示符(如)。 键入命令,配置以太网交换机或查看以太网交换机运行状态。需要帮助可以随时键入"" 2、命令视图 (1)用户视图(查看交换机简单运行状态和统计信息):与交换机建立连接即进入 (2)系统视图(配置系统参数)[Quidway]:在用户视图下键入system-view (3)以太网端口视图(配置以太网端口参数)[Quidway-Ethernet0/1]:在系统视图下键入 interface ethernet 0/1 (4)VLAN 视图(配置VLAN 参数)[Quidway-Vlan1]:在系统视图下键入vlan 123 Hessen was revised in January 2021

(5)VLAN 接口视图(配置VLAN 和VLAN 汇聚对应的IP 接口参数)[Quidway-Vlan- interface1]:在系统视图下键入interface vlan-interface 123 (6)本地用户视图(配置本地用户参数)[Quidway-luser-user1]:在系统视图下键入 local- user user1 (7)用户界面视图(配置用户界面参数)[Quidway-ui0]:在系统视图下键入user-interface 3、其他命令 设置系统时间和时区clock time Beijing add 8 clock datetime 12:00:00 2005/01/23 设置交换机的名称[Quidway]sysname TRAIN-3026-1[TRAIN-3026-1]

思科 华为 华为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-configuration show disp base-information 显示全面的信息tech-support show start disp saved-configuration 显示已保存的配置ctrl+z ctrl+z 退回到系统视图ctrl+p ctrl+p 上一条命令ctrl+n ctrl+n 下一条命令 - ctrl+a display cur - ctrl+r display ip routig-table undebug all ctrl+d 取消所有debug命令cisco和华为命令2008-04-09 13:27CISCO交换机配置命令大全2006-2-28 14:33:00 1.在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname 在基于CLI的交换机上设置主机名/系统名: switch(enable) set system name name-string

思科华为命令对照大全

目录第一章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 (把绑在一起成为组1 Switch#show etherchannel 1 summary 查看以太网通道的配置是否正确 ================================================== ============================================= 第三章三层交换机的配置 1、在3层交换机上启动路由,否则3层交换不具有路由功能 switch(config)#ip routing 2、配置VLAN的IP地址 switch(config)#interface vlan 1 因为3层交换机支持各VLAN间的路由,因此每个VLAN都可以配置IP地址 switch(config-if)#ip address 192.168.1.1 255.255.255.0 switch(config-if)#no shutdown 3、查看FIB表 switch #show ip cef

华为,中兴_思科命令对比

华为,思科,中兴基本交换机命令 [Quidway]super password 修改特权用户密码switch(config)#enable password *** 思科交换机设置特权模式密码[Quidway]sysname *** 交换机命名 switch(config)#hoatname *** 思科交换机命名[Quidway]interface ethernet 0/1 进入接口视图Switch(config)#interface f0/1 [Quidway]interface vlan x 进入接口视图Switch(config)#interface vlan 1 [Quidway-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0 [Quidway]ip route-static 0.0.0.0 0.0.0.0 10.65.1.2 静态路由=网关Router(config)#ip route 0.0.0.0 0.0.0.0 10.65.1.2 默认路由[Quidway]user-interface vty 0 4 [S3026-ui-vty0-4]authentication-mode password [S3026-ui-vty0-4]set authentication-mode password simple 222 [S3026-ui-vty0-4]user privilege level 3 Switch(config)#line vty 0 4 Switch(config-line)#password [Quidway-Ethernet0/1]duplex {half|full|auto} 配置端口双工工作状态Switch(config-if)#duplex ? auto Enable AUTO duplex configuration full Force full duplex operation half Force half-duplex operation [Quidway-Ethernet0/1]speed {10|100|auto} 配置端口工作速率Switch(config-if)#speed ? 10 Force 10 Mbps operation 100 Force 100 Mbps operation auto Enable AUTO speed configuration [Quidway-Ethernet0/1]flow-control 配置端口流控 [Quidway-Ethernet0/1]mdi {across|auto|normal} 配置端口MDI/MDIX 状态平接或扭接 [Quidway-Ethernet0/1]port link-type {trunk|access|hybrid} 设置接口工作模式 [Quidway-Ethernet0/1]shutdown 关闭/重起接口[Quidway-Ethernet0/2]quit 退出系统视图 [Quidway]vlan 3 创建/删除一个VLAN/进入VLAN模式Switch#vlan database Switch(vlan)#vlan 2 或 Switch#configure terminal

思科和H3C常用配置详细对比

cisco与华为命令比较 功能Cisco命令华为命令 进入全局模 式 #configure terminal 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 address <掩码> 配telnet密 码 line vty 0 4 password密码 login user-interface vty 0 4 authentication-mode password set authentication-mode password simple密码 user privilege level 3 激活端口no shutdown undo shutdown 关闭端口shutdown shutdown 退出exit quit 创建VLAN vlan vlan号vlan vlan号 VLAN中增加 端口port e0/1 port e0/2 to e0/4 当前端口加入 到VLAN switchport access vlan vlan 号 port access vlan vlan号 设置端口工switchport mode port link-type

(完整版)思科与华为命令区别.doc

功能Cisco 命令华为命令 进入全局模式#configure terminal system 显示当前配置show running-config display current-configuration 显示版本信息show version display version 显示 vlan 信息show vlan display vlan 显示接口信息show interface 接口display interface 接口 交换机路由器hostname 主机名sysname 主机名 命名 修改特权密码enable password 密码 ( 明文 ) super password 密码 enable secret 密码 ( 密文 ) 进入接口模式interface 接口interface 接口 进入 vlan 模式interface vlan vlan 号interface vlan vlan 号 给接口配 IP ip address < 掩码 > ip address < 掩码 > 配 telnet 密码line vty 0 4 user-interface vty 0 4 password 密码authentication-mode password login set authentication-mode password simple 密码 user privilege level 3 激活端口 关闭端口 退出 创建 VLAN VLAN 中增加端口 当前端口加入到VLAN no shutdown undo shutdown shutdown shutdown exit quit vlan vlan号vlan vlan号 port e0/1 port e0/2 to e0/4 switchport access vlan vlan号port access vlan vlan 号 设置端口工作switchport mode port link-type trunk|access|hybrid 模式trunk|access|dynamic 设 trunk 允许的switchport trunk allowed vlan port trunk permit vlan ID|All VLAN remove|add ID 指定镜像端口monitor session 1 destination int monitor-port 接口 接口 指定被镜像端monitor session 1 source int 接口port mirror 接口 口both 设置生成树启spanning-tree vlan vlan 号 ( 默认stp enable|disable(默认关闭) 动与否开启 ) 端口的聚合interface range f0/1 –4 link-aggregation e0/1 to e0/4 ingress|both channel-group 1 mode on undo link-aggregation e0/1|all 设置主 vlan isolate-user-vlan enable 设置主 vlan 包括isolate-user-vlan secondary 的子 vlan 显示路由信息show ip route display ip route 绑定 HDLC 协议默认就是link-protocol hdlc 设静态路由ip route 网络号掩码下一跳 IP/ 接ip route-static 网络号掩码下一跳 IP/ 接口

华为与思科命令区别

《2010思科路由协议挑战100问》第二期红盟过客 类型:网络认证大小:1.2M语言:中文评分:8.0 标签: 立即下载 思科、华为、H3C这些网络设备的命令还是挺多的,不过我们一般用的路由交换机设备都是最简单的了,先学基本命令,再学其他功能命令。路由命令是最基本的命令了。思科、华为、

cisco常用命令解释 视图模式介绍: 普通视图router> 特权视图router# /在普通模式下输入enable 全局视图router(config)# /在特权模式下输入config t 接口视图router(config-if)# /在全局模式下输入int接口名称例如int s0或int e0 路由协议视图router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)#hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain-lookup /不允许路由器缺省使用DNS解析命令 router(config)#line console 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 router(config-line)#logging synchronous /日志同步 router(config-line)#exec-timeout 0 0 /设置时间溢出为0 router(config-line)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config-line)#exit /保存退出到特权模式 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 2、接口配置: router(config)#interface serial0 /进入接口配置模式serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口) router(config-if)#ip address xxx.xxx.xxx.xxxxxx.xxx.xxx.xxx /添加ip地址和掩码 router(config-if)#encahdl/ppp捆绑链路协议hdlc或者ppp思科缺省串口封装的链路层协议是HDLC所以在show run配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的encappp或者encafr router(config)#int loopback /建立环回口(逻辑接口)模拟不同的本机网段 router(config-if)#ip add xxx.xxx.xxx.xxxxxx.xxx.xxx.xxx /添加ip地址和掩码给环回口 router(config-if)#no shutdown /在物理接口上配置了ip地址后用no shut启用这个物理接口反之可以用shutdown管理性的关闭接口 3、路由配置: (1)静态路由 router(config)#ip route xxx.xxx.xxx.xxxxxx.xxx.xxx.xxx下一条或自己的接口 router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由 (2)动态路由 rip协议 router(config)#router rip /启动rip协议 router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段 router(config-router)#version 2 转换为rip 2版本

思科与华为3com命令比较

思科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 display show version disp version no undo show run disp current-configuration username local-user end return show start disp saved-configuration

思科华为命令对照表

思科华为 show display show version display version no undo no shutdown undo shutdown configure terminal system-view show run display current-configuration username local-user line user-interface end return show start disp saved-configuration exit quit router rip rip router ospf ospf router bgp bgp hostname sysname access-list acl write save erase delete 0 simple 7 cipher logging info-center encapsulation link-protocol

dis cur display current-configuration ;显示当前配置 display interfaces ;显示接口 display vlan all ;显示路由信息 display version ;显示版本信息 super password ;修改特权用户密码 sysname ;交换机命名 interface ethernet 0/1 ;进入接口视图 interface vlan x ;进入接口视图 ip address 10.65.1.1 255.255.0.0 ;配置VLAN的IP地址 route-static 0.0.0.0 0.0.0.0 10.65.1.2 ;静态路由=网关 rip ;三层交换支持 local-user ftp user-interface vty 0 4 ;进入虚拟终端 authentication-mode password ;设置口令模式 set authentication-mode password simple 222 ;设置口令(simple简单的) ser privilege level 3 ;用户级别(当用户远程登陆时,其默认级别为1,不能作任何设置,3为最高级别,可以作修改) interface ethernet 0/1 ;进入端口模式 int e0/1 ;进入端口模式 duplex {half|full|auto} ;配置端口工作状态(端口聚合时是全双工,而CISCO

思科、华为、锐捷的交换机端口聚合区别

思科、华为、锐捷的交换机端口聚合区别 思科命令行配置: CLI:SW#conf t SW(config)#interface range f1/1 -2 SW(config-if)#channel-group 1 mode desirable/on SW(config-if)#swithport SW(config-if)#switchport mode trunk SW(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 terminal Switch(config)#interface range fastethernet 1/1-2 Switch(config-if-range)#port-group 5 Switch(config-if-range)#switchport mode trunk 你可以在全局配置模式下使用命令#interface aggregateport n(n为AP号) 来直接创建一个AP(如果AP n不存在)。 配置aggregate port的流量平衡

cisco&华为配置命令对应

cisco&华为配置命令对应 思科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 display show version disp version no undo show run disp current-configuration username local-user end return

华为和思科路由器的互联配置

Navigation] 实例:华为和思科路由器的互联配置 https://www.360docs.net/doc/1c15287810.html,发布日期:2004-11-28 浏览次数: 724 作者:龙剑飞出处:Pconline 一、概述 思科路由器一度在企业广域网络的应用上占有统治地位,但根据近年CCID的报告显示,在国内,华为与思科在路由和交换设备方面日渐形成旗鼓相当的市场地位;在海外,华为也在不断蚕食思科的市场分额。随着华为路由器在企业中的应用越来越多,实现华为路由器和思科路由器的互连,保护旧有的投资,对使用者具有重大的实用意义。 华为路由器命令行接口配置界面在经过和思科的官司后做了较大的修改,但基本的配置思想还是大体一致的,Cisco的网际操作系统英文缩写为IOS(Internetwork Operating System),华为公司数据通信产品的通用网络操作系统平台的英文缩写为VRP(Versatile Routing Platform,通用路由平台),在配置实现思科和华为路由器的互连过程中应注意使用标准的协议(如OSPF、RIP),不用思科的私有协议(如EIGRP),本文提供一个思科和华为路由器OSPF串口互连的配置实例进行分析。 二、互连示意图

三、配置文件说明 思科路由器配置文件(部分): Current configuration: ! version 12.1 service timestamps debug uptime service timestamps log uptime service password-encryption ! hostname Cisco //定义路由器主机名 ! enable secret 5 $QB$O1nBb A1olUQ JU1JQRUxNe$oHa0 //enable密码! no ip domain-lookup ! interface Loopback0

思科和华为交换机命令对比

思科和华为交换机应该是网络项目中大家接触比较多的了,这两种交换机的常用命令各有不同,本文结合网络项目中两种交换机的常用命令从对比的角度帮助大家来学习。 一、调试命令 思科: 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

相关文档
最新文档