路由与交换之思科华为华三配置命令对比_第1页
路由与交换之思科华为华三配置命令对比_第2页
路由与交换之思科华为华三配置命令对比_第3页
路由与交换之思科华为华三配置命令对比_第4页
路由与交换之思科华为华三配置命令对比_第5页
已阅读5页,还剩22页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

思科 华为 H3C 常用命令对比大全 思科 华为 H3C 这些网络设备的命令还是挺多的 不过我们一般用的路由交换机设 备都是最简单的了 先学基本命令 再学其他功能命令 路由命令是最基本的命令了 思 科 华为 H3C 常用命令对比大全 CISCO H3C HUAWEI 描 述 no undo undo 取 消 关 闭 当 前 设 置 show display display 显 示 查 看 exit quit quit 退 回 上 级 hostname sysname sysname 设 置 主 机 名 en config terminal system view system view 进 入 全 局 模 式 delete delete delete 删 除 文 件 reload reboot reboot 重 启 write save save 保 存 当 前 配 置 username local user local user 创 建 用 户 shutdown shutdown shutdown 禁 止 关 闭 端 口 show version display version display version 显 示 当 前 系 统 版 本 show startup config display saved configuration display saved configuration 查 看 已 保 存 过 的 配 置 show running config display current configuration display current configuration 显 示 当 前 配 置 no debug all ctrl d ctrl d 取 消 所 有 deb ug 命 令 erase startup config reset saved configuration reset saved 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 ip host ip host host 名 字 和 ip 地 址 对 应 交换部分 enable password set authentication password simple set authentication password simple 配 置 明 文 密 码 interface type number interface type number interface type number 进 入 接 口 interface vlan 1 interface vlan 1 interface vlan 1 进 入 vlan 配 置 vlan 管 理 地 址 interface rang interface ethID to ID interface ethID to ID 定 议 多 个 端 口 的 组 enabl esecret super password super password 设 置 特 权 口 令 duplex half full auto duplex half full auto duplex half full auto 配 置 接 口 状 态 speed 10 100 1000 speed 10 100 1000 speed 10 100 1000 配 置 端 口 速 率 switchport mode trunk port link type trunk port link type trunk 配 置 trun k vlan ID no vlan ID vlan batch ID undo vlan batch ID vlan batch ID undo vlan batch ID 添 加 删 除 vlan switchport access vlan port default vlan ID port acces vlan ID 将 端 口 接 入 vlan show interface display interface display interface 查 看 接 口 show vlan ID display vlan ID display vlan ID 查 看 vlan encapsulation link protocol link protocol 封 装 协 议 channel group 1 mode on port link aggregation group 1 port link aggregation group 1 链 路 聚 合 ip routing 默认开启 默认开启 开 启 三 层 交 换 的 路 由 功 能 no switchport 不支持 不支持 开 启 接 口 三 层 功 能 vtp domain GVRP GVRP 对 跨 以 太 网 交 换 机 的 VLA N 进 行 动 态 注 册 和 删 除 spanning tree vlan ID root primary stp instance id root primary stp instance id root primary stp 配 置 根 网 桥 spanning tree stp primary vlaue stp primary vlaue vlan ID priority配 置 网 桥 优 先 级 show spanning tree dis stp brief dis stp brief 查 看 ST P 配 置 路由部分 ip route 0 0 0 0 0 0 0 0 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 display ip routing table display ip routing table 查 看 路 由 表 router rip network 网段 rip network 网段 rip network 网段 启 用 rip 并 宣 告 网 段 router ospf ospf ospf 启 用 ospf network ip 反 码 area area area 配 置 OS PF 区 域 no auto summary rip split horizon rip split horizon 配 置 RIP V2 水 平 分 割 show ip protocol display ip protocol display ip protocol 查 看 路 由 协 议 access list 1 99 permit deny IP rule id permit source IP rule id permit source IP 标 准 访 问 控 制 列 表 access list 100 199 permit deny protocol source IP 反码 destination IP 反码 operator operan rule normal special permit deny tcp udp source any destination any operate rule normal special permit deny tcp udp source any destination any operate 扩 展 访 问 控 制 列 表 standby group number ip virtual ip vrrp vrid number virtual ip vrrp vrid number virtual ip 配 置 HS RP 组 standby group number priority vrrp vrid number priority vrrp vrid number priority 配 置 HS RP 优 先 级 standby group number preempt vrrp vrid number preempt mode vrrp vrid number preempt mode 配 置 HS RP 占 先 权 standby group number track 配 置 端 口 跟 踪 ip nat inside source static nat server global port inside port protocol nat server global port inside port protocol 配 置 静 态 地 址 转 换 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 inte

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论