云计算百科
云计算领域专业知识百科平台

思科show命令与华为display命令对照:跨厂商网络设备命令速查指南

一、命令对比概述

1.1 命令结构差异

思科使用“show”作为命令前缀,华为使用“display”作为命令前缀。例如,思科“show running-config”对应华为“display current-configuration”。这种差异源于厂商设计习惯,但核心功能类似。以下通过流程图展示命令执行逻辑。

#publish-mermaid-0-1794232696110{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-0-1794232696110 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-0-1794232696110 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-0-1794232696110 .error-icon{fill:#552222;}#publish-mermaid-0-1794232696110 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-0-1794232696110 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-0-1794232696110 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-0-1794232696110 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-0-1794232696110 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-0-1794232696110 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-0-1794232696110 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-0-1794232696110 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-0-1794232696110 .marker.cross{stroke:#333333;}#publish-mermaid-0-1794232696110 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-0-1794232696110 p{margin:0;}#publish-mermaid-0-1794232696110 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-0-1794232696110 .cluster-label text{fill:#333;}#publish-mermaid-0-1794232696110 .cluster-label span{color:#333;}#publish-mermaid-0-1794232696110 .cluster-label span p{background-color:transparent;}#publish-mermaid-0-1794232696110 .label text,#publish-mermaid-0-1794232696110 span{fill:#333;color:#333;}#publish-mermaid-0-1794232696110 .node rect,#publish-mermaid-0-1794232696110 .node circle,#publish-mermaid-0-1794232696110 .node ellipse,#publish-mermaid-0-1794232696110 .node polygon,#publish-mermaid-0-1794232696110 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-0-1794232696110 .rough-node .label text,#publish-mermaid-0-1794232696110 .node .label text,#publish-mermaid-0-1794232696110 .image-shape .label,#publish-mermaid-0-1794232696110 .icon-shape .label{text-anchor:middle;}#publish-mermaid-0-1794232696110 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-0-1794232696110 .rough-node .label,#publish-mermaid-0-1794232696110 .node .label,#publish-mermaid-0-1794232696110 .image-shape .label,#publish-mermaid-0-1794232696110 .icon-shape .label{text-align:center;}#publish-mermaid-0-1794232696110 .node.clickable{cursor:pointer;}#publish-mermaid-0-1794232696110 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-0-1794232696110 .arrowheadPath{fill:#333333;}#publish-mermaid-0-1794232696110 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-0-1794232696110 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-0-1794232696110 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-0-1794232696110 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-0-1794232696110 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-0-1794232696110 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-0-1794232696110 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-0-1794232696110 .cluster text{fill:#333;}#publish-mermaid-0-1794232696110 .cluster span{color:#333;}#publish-mermaid-0-1794232696110 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-0-1794232696110 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-0-1794232696110 rect.text{fill:none;stroke-width:0;}#publish-mermaid-0-1794232696110 .icon-shape,#publish-mermaid-0-1794232696110 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-0-1794232696110 .icon-shape p,#publish-mermaid-0-1794232696110 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-0-1794232696110 .icon-shape .label rect,#publish-mermaid-0-1794232696110 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-0-1794232696110 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-0-1794232696110 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-0-1794232696110 .node .neo-node{stroke:#9370DB;}#publish-mermaid-0-1794232696110 [data-look=\”neo\”].node rect,#publish-mermaid-0-1794232696110 [data-look=\”neo\”].cluster rect,#publish-mermaid-0-1794232696110 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1794232696110 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-0-1794232696110 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-0-1794232696110 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1794232696110 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-0-1794232696110 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1794232696110 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-0-1794232696110 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1794232696110 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-0-1794232696110 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}showdisplay

用户输入命令

命令前缀判断

思科设备处理

华为设备处理

解析子命令

执行功能模块

返回结果

该流程图展示了思科和华为命令的执行流程,通过前缀判断调用不同处理模块,最终返回结果。

1.2 适用场景

思科命令多用于传统企业网络,华为命令常见于数据中心和运营商网络。两者在命令细节上存在差异,但功能覆盖范围相似。以下饼图展示常用命令类型分布。

#publish-mermaid-1-1794232696173{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-1-1794232696173 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-1-1794232696173 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-1-1794232696173 .error-icon{fill:#552222;}#publish-mermaid-1-1794232696173 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-1-1794232696173 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-1-1794232696173 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-1-1794232696173 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-1-1794232696173 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-1-1794232696173 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-1-1794232696173 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-1-1794232696173 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-1-1794232696173 .marker.cross{stroke:#333333;}#publish-mermaid-1-1794232696173 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-1-1794232696173 p{margin:0;}#publish-mermaid-1-1794232696173 .pieCircle{stroke:black;stroke-width:2px;opacity:0.7;}#publish-mermaid-1-1794232696173 .pieCircle.highlighted{scale:1.05;opacity:1;}#publish-mermaid-1-1794232696173 .pieCircle.highlightedOnHover:hover{transition-duration:250ms;scale:1.05;opacity:1;}#publish-mermaid-1-1794232696173 .pieOuterCircle{stroke:black;stroke-width:2px;fill:none;}#publish-mermaid-1-1794232696173 .pieTitleText{text-anchor:middle;font-size:25px;fill:black;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}#publish-mermaid-1-1794232696173 .slice{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;fill:#333;font-size:17px;}#publish-mermaid-1-1794232696173 .legend text{fill:black;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:17px;}#publish-mermaid-1-1794232696173 .node .neo-node{stroke:#9370DB;}#publish-mermaid-1-1794232696173 [data-look=\”neo\”].node rect,#publish-mermaid-1-1794232696173 [data-look=\”neo\”].cluster rect,#publish-mermaid-1-1794232696173 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1794232696173 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-1-1794232696173 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1-1794232696173 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1794232696173 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-1-1794232696173 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1794232696173 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-1-1794232696173 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1794232696173 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1-1794232696173 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}30%25%20%15%10%常用命令类型分布设备状态接口信息路由表系统日志配置管理

饼图显示设备状态和接口信息是两类最常用的命令,占比55%,反映了网络运维的核心关注点。

二、设备状态查看命令

2.1 设备基本信息

思科使用“show version”查看设备型号、软件版本等,华为使用“display version”。两者均提供硬件和软件版本信息,但输出格式不同。

华为设备思科设备用户华为设备思科设备用户#publish-mermaid-2-1794232696185{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-2-1794232696185 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-2-1794232696185 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-2-1794232696185 .error-icon{fill:#552222;}#publish-mermaid-2-1794232696185 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-2-1794232696185 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-2-1794232696185 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-2-1794232696185 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-2-1794232696185 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-2-1794232696185 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-2-1794232696185 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-2-1794232696185 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-2-1794232696185 .marker.cross{stroke:#333333;}#publish-mermaid-2-1794232696185 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-2-1794232696185 p{margin:0;}#publish-mermaid-2-1794232696185 .actor{stroke:#9370DB;fill:#ECECFF;stroke-width:1;}#publish-mermaid-2-1794232696185 rect.actor.outer-path[data-look=\”neo\”]{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1794232696185 rect.note[data-look=\”neo\”]{stroke:#aaaa33;fill:#fff5ad;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1794232696185 text.actor>tspan{fill:black;stroke:none;}#publish-mermaid-2-1794232696185 .actor-line{stroke:#9370DB;}#publish-mermaid-2-1794232696185 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#publish-mermaid-2-1794232696185 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#publish-mermaid-2-1794232696185 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#publish-mermaid-2-1794232696185 [id$=\”-arrowhead\”] path{fill:#333;stroke:#333;}#publish-mermaid-2-1794232696185 .sequenceNumber{fill:white;}#publish-mermaid-2-1794232696185 [id$=\”-sequencenumber\”]{fill:#333;}#publish-mermaid-2-1794232696185 [id$=\”-crosshead\”] path{fill:#333;stroke:#333;}#publish-mermaid-2-1794232696185 .messageText{fill:#333;stroke:none;}#publish-mermaid-2-1794232696185 .labelBox{stroke:#9370DB;fill:#ECECFF;filter:none;}#publish-mermaid-2-1794232696185 .labelText,#publish-mermaid-2-1794232696185 .labelText>tspan{fill:black;stroke:none;}#publish-mermaid-2-1794232696185 .loopText,#publish-mermaid-2-1794232696185 .loopText>tspan{fill:black;stroke:none;}#publish-mermaid-2-1794232696185 .sectionTitle,#publish-mermaid-2-1794232696185 .sectionTitle>tspan{fill:black;stroke:none;}#publish-mermaid-2-1794232696185 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:#9370DB;fill:#9370DB;}#publish-mermaid-2-1794232696185 .note{stroke:#aaaa33;fill:#fff5ad;}#publish-mermaid-2-1794232696185 .noteText,#publish-mermaid-2-1794232696185 .noteText>tspan{fill:black;stroke:none;font-weight:normal;}#publish-mermaid-2-1794232696185 .activation0{fill:#f4f4f4;stroke:#666;}#publish-mermaid-2-1794232696185 .activation1{fill:#f4f4f4;stroke:#666;}#publish-mermaid-2-1794232696185 .activation2{fill:#f4f4f4;stroke:#666;}#publish-mermaid-2-1794232696185 .actorPopupMenu{position:absolute;}#publish-mermaid-2-1794232696185 .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#publish-mermaid-2-1794232696185 .actor-man circle,#publish-mermaid-2-1794232696185 line{fill:#ECECFF;stroke-width:2px;}#publish-mermaid-2-1794232696185 g rect.rect{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));stroke:#9370DB;}#publish-mermaid-2-1794232696185 .node .neo-node{stroke:#9370DB;}#publish-mermaid-2-1794232696185 [data-look=\”neo\”].node rect,#publish-mermaid-2-1794232696185 [data-look=\”neo\”].cluster rect,#publish-mermaid-2-1794232696185 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1794232696185 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-2-1794232696185 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-2-1794232696185 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1794232696185 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-2-1794232696185 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1794232696185 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-2-1794232696185 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1794232696185 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-2-1794232696185 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}输入 show version返回型号、IOS版本、内存信息输入 display version返回型号、VRP版本、内存信息

时序图展示了不同厂商设备对相同请求的响应流程,虽然命令不同,但返回的核心信息一致。

2.2 系统资源使用

思科“show processes cpu”对应华为“display cpu-usage”,用于查看CPU占用率。思科“show memory”对应华为“display memory-usage”,查看内存使用情况。

#publish-mermaid-3-1794232696212{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-3-1794232696212 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-3-1794232696212 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-3-1794232696212 .error-icon{fill:#552222;}#publish-mermaid-3-1794232696212 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-3-1794232696212 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-3-1794232696212 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-3-1794232696212 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-3-1794232696212 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-3-1794232696212 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-3-1794232696212 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-3-1794232696212 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-3-1794232696212 .marker.cross{stroke:#333333;}#publish-mermaid-3-1794232696212 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-3-1794232696212 p{margin:0;}#publish-mermaid-3-1794232696212 defs [id$=\”-barbEnd\”]{fill:#333333;stroke:#333333;}#publish-mermaid-3-1794232696212 g.stateGroup text{fill:#9370DB;stroke:none;font-size:10px;}#publish-mermaid-3-1794232696212 g.stateGroup text{fill:#333;stroke:none;font-size:10px;}#publish-mermaid-3-1794232696212 g.stateGroup .state-title{font-weight:bolder;fill:#131300;}#publish-mermaid-3-1794232696212 g.stateGroup rect{fill:#ECECFF;stroke:#9370DB;}#publish-mermaid-3-1794232696212 g.stateGroup line{stroke:#333333;stroke-width:1;}#publish-mermaid-3-1794232696212 .transition{stroke:#333333;stroke-width:1;fill:none;}#publish-mermaid-3-1794232696212 .stateGroup .composit{fill:white;border-bottom:1px;}#publish-mermaid-3-1794232696212 .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px;}#publish-mermaid-3-1794232696212 .state-note{stroke:#aaaa33;fill:#fff5ad;}#publish-mermaid-3-1794232696212 .state-note text{fill:black;stroke:none;font-size:10px;}#publish-mermaid-3-1794232696212 .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5;}#publish-mermaid-3-1794232696212 .edgeLabel .label rect{fill:#ECECFF;opacity:0.5;}#publish-mermaid-3-1794232696212 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-3-1794232696212 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-3-1794232696212 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-3-1794232696212 .edgeLabel .label text{fill:#333;}#publish-mermaid-3-1794232696212 .label div .edgeLabel{color:#333;}#publish-mermaid-3-1794232696212 .stateLabel text{fill:#131300;font-size:10px;font-weight:bold;}#publish-mermaid-3-1794232696212 .node circle.state-start{fill:#333333;stroke:#333333;}#publish-mermaid-3-1794232696212 .node .fork-join{fill:#333333;stroke:#333333;}#publish-mermaid-3-1794232696212 .node circle.state-end{fill:#9370DB;stroke:white;stroke-width:1.5;}#publish-mermaid-3-1794232696212 .end-state-inner{fill:white;stroke-width:1.5;}#publish-mermaid-3-1794232696212 .node rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-3-1794232696212 .node polygon{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-3-1794232696212 [id$=\”-barbEnd\”]{fill:#333333;}#publish-mermaid-3-1794232696212 .statediagram-cluster rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-3-1794232696212 .cluster-label,#publish-mermaid-3-1794232696212 .nodeLabel{color:#131300;}#publish-mermaid-3-1794232696212 .statediagram-cluster rect.outer{rx:5px;ry:5px;}#publish-mermaid-3-1794232696212 .statediagram-state .divider{stroke:#9370DB;}#publish-mermaid-3-1794232696212 .statediagram-state .title-state{rx:5px;ry:5px;}#publish-mermaid-3-1794232696212 .statediagram-cluster.statediagram-cluster .inner{fill:white;}#publish-mermaid-3-1794232696212 .statediagram-cluster.statediagram-cluster-alt .inner{fill:#f0f0f0;}#publish-mermaid-3-1794232696212 .statediagram-cluster .inner{rx:0;ry:0;}#publish-mermaid-3-1794232696212 .statediagram-state rect.basic{rx:5px;ry:5px;}#publish-mermaid-3-1794232696212 .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#f0f0f0;}#publish-mermaid-3-1794232696212 .note-edge{stroke-dasharray:5;}#publish-mermaid-3-1794232696212 .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#publish-mermaid-3-1794232696212 .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#publish-mermaid-3-1794232696212 .statediagram-note text{fill:black;}#publish-mermaid-3-1794232696212 .statediagram-note .nodeLabel{color:black;}#publish-mermaid-3-1794232696212 .statediagram .edgeLabel{color:red;}#publish-mermaid-3-1794232696212 [id$=\”-dependencyStart\”],#publish-mermaid-3-1794232696212 [id$=\”-dependencyEnd\”]{fill:#333333;stroke:#333333;stroke-width:1;}#publish-mermaid-3-1794232696212 .statediagramTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].statediagram-cluster rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1;}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].statediagram-cluster rect.outer{rx:5px;ry:5px;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1794232696212 .node .neo-node{stroke:#9370DB;}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].node rect,#publish-mermaid-3-1794232696212 [data-look=\”neo\”].cluster rect,#publish-mermaid-3-1794232696212 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1794232696212 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-3-1794232696212 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}输入命令获取占用率返回结果输入命令获取使用量返回结果

初始状态

查询CPU

CPU状态

查询内存

内存状态

状态图展示了查询CPU和内存的流程,每个状态对应命令执行的不同阶段。

三、接口状态查看命令

3.1 物理接口状态

思科“show interfaces”对应华为“display interface brief”,查看接口的物理状态(如up/down)和流量统计。

#publish-mermaid-4-1794232696291{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-4-1794232696291 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-4-1794232696291 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-4-1794232696291 .error-icon{fill:#552222;}#publish-mermaid-4-1794232696291 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-4-1794232696291 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-4-1794232696291 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-4-1794232696291 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-4-1794232696291 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-4-1794232696291 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-4-1794232696291 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-4-1794232696291 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-4-1794232696291 .marker.cross{stroke:#333333;}#publish-mermaid-4-1794232696291 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-4-1794232696291 p{margin:0;}#publish-mermaid-4-1794232696291 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-4-1794232696291 .cluster-label text{fill:#333;}#publish-mermaid-4-1794232696291 .cluster-label span{color:#333;}#publish-mermaid-4-1794232696291 .cluster-label span p{background-color:transparent;}#publish-mermaid-4-1794232696291 .label text,#publish-mermaid-4-1794232696291 span{fill:#333;color:#333;}#publish-mermaid-4-1794232696291 .node rect,#publish-mermaid-4-1794232696291 .node circle,#publish-mermaid-4-1794232696291 .node ellipse,#publish-mermaid-4-1794232696291 .node polygon,#publish-mermaid-4-1794232696291 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-4-1794232696291 .rough-node .label text,#publish-mermaid-4-1794232696291 .node .label text,#publish-mermaid-4-1794232696291 .image-shape .label,#publish-mermaid-4-1794232696291 .icon-shape .label{text-anchor:middle;}#publish-mermaid-4-1794232696291 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-4-1794232696291 .rough-node .label,#publish-mermaid-4-1794232696291 .node .label,#publish-mermaid-4-1794232696291 .image-shape .label,#publish-mermaid-4-1794232696291 .icon-shape .label{text-align:center;}#publish-mermaid-4-1794232696291 .node.clickable{cursor:pointer;}#publish-mermaid-4-1794232696291 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-4-1794232696291 .arrowheadPath{fill:#333333;}#publish-mermaid-4-1794232696291 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-4-1794232696291 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-4-1794232696291 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-4-1794232696291 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-4-1794232696291 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-4-1794232696291 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-4-1794232696291 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-4-1794232696291 .cluster text{fill:#333;}#publish-mermaid-4-1794232696291 .cluster span{color:#333;}#publish-mermaid-4-1794232696291 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-4-1794232696291 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-4-1794232696291 rect.text{fill:none;stroke-width:0;}#publish-mermaid-4-1794232696291 .icon-shape,#publish-mermaid-4-1794232696291 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-4-1794232696291 .icon-shape p,#publish-mermaid-4-1794232696291 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-4-1794232696291 .icon-shape .label rect,#publish-mermaid-4-1794232696291 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-4-1794232696291 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-4-1794232696291 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-4-1794232696291 .node .neo-node{stroke:#9370DB;}#publish-mermaid-4-1794232696291 [data-look=\”neo\”].node rect,#publish-mermaid-4-1794232696291 [data-look=\”neo\”].cluster rect,#publish-mermaid-4-1794232696291 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1794232696291 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-4-1794232696291 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-4-1794232696291 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1794232696291 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-4-1794232696291 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1794232696291 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-4-1794232696291 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1794232696291 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-4-1794232696291 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}物理接口物理接口

输入命令

接口类型判断

思科: show interfaces

华为: display interface brief

返回状态、流量

流程图对比了思科和华为查看物理接口的命令,最终返回类似的状态和流量信息。

3.2 逻辑接口状态

思科“show vlan”对应华为“display vlan”,查看VLAN配置和接口归属。思科“show ip interface”对应华为“display ip interface”,查看IP接口状态。

#publish-mermaid-5-1794232696341{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-5-1794232696341 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-5-1794232696341 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-5-1794232696341 .error-icon{fill:#552222;}#publish-mermaid-5-1794232696341 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-5-1794232696341 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-5-1794232696341 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-5-1794232696341 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-5-1794232696341 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-5-1794232696341 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-5-1794232696341 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-5-1794232696341 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-5-1794232696341 .marker.cross{stroke:#333333;}#publish-mermaid-5-1794232696341 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-5-1794232696341 p{margin:0;}#publish-mermaid-5-1794232696341 g.classGroup text{fill:#9370DB;stroke:none;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:10px;}#publish-mermaid-5-1794232696341 g.classGroup text .title{font-weight:bolder;}#publish-mermaid-5-1794232696341 .cluster-label text{fill:#333;}#publish-mermaid-5-1794232696341 .cluster-label span{color:#333;}#publish-mermaid-5-1794232696341 .cluster-label span p{background-color:transparent;}#publish-mermaid-5-1794232696341 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-5-1794232696341 .cluster text{fill:#333;}#publish-mermaid-5-1794232696341 .cluster span{color:#333;}#publish-mermaid-5-1794232696341 .nodeLabel,#publish-mermaid-5-1794232696341 .edgeLabel{color:#131300;}#publish-mermaid-5-1794232696341 .noteLabel .nodeLabel,#publish-mermaid-5-1794232696341 .noteLabel .edgeLabel{color:black;}#publish-mermaid-5-1794232696341 .edgeLabel .label rect{fill:#ECECFF;}#publish-mermaid-5-1794232696341 .label text{fill:#131300;}#publish-mermaid-5-1794232696341 .labelBkg{background:#ECECFF;}#publish-mermaid-5-1794232696341 .edgeLabel .label span{background:#ECECFF;}#publish-mermaid-5-1794232696341 .classTitle{font-weight:bolder;}#publish-mermaid-5-1794232696341 .node rect,#publish-mermaid-5-1794232696341 .node circle,#publish-mermaid-5-1794232696341 .node ellipse,#publish-mermaid-5-1794232696341 .node polygon,#publish-mermaid-5-1794232696341 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1;}#publish-mermaid-5-1794232696341 .divider{stroke:#9370DB;stroke-width:1;}#publish-mermaid-5-1794232696341 g.clickable{cursor:pointer;}#publish-mermaid-5-1794232696341 g.classGroup rect{fill:#ECECFF;stroke:#9370DB;}#publish-mermaid-5-1794232696341 g.classGroup line{stroke:#9370DB;stroke-width:1;}#publish-mermaid-5-1794232696341 .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5;}#publish-mermaid-5-1794232696341 .classLabel .label{fill:#9370DB;font-size:10px;}#publish-mermaid-5-1794232696341 .relation{stroke:#333333;stroke-width:1;fill:none;}#publish-mermaid-5-1794232696341 .dashed-line{stroke-dasharray:3;}#publish-mermaid-5-1794232696341 .dotted-line{stroke-dasharray:1 2;}#publish-mermaid-5-1794232696341 [id$=\”-compositionStart\”],#publish-mermaid-5-1794232696341 .composition{fill:#333333!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 [id$=\”-compositionEnd\”],#publish-mermaid-5-1794232696341 .composition{fill:#333333!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 [id$=\”-dependencyStart\”],#publish-mermaid-5-1794232696341 .dependency{fill:#333333!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 [id$=\”-dependencyEnd\”],#publish-mermaid-5-1794232696341 .dependency{fill:#333333!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 [id$=\”-extensionStart\”],#publish-mermaid-5-1794232696341 .extension{fill:transparent!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 [id$=\”-extensionEnd\”],#publish-mermaid-5-1794232696341 .extension{fill:transparent!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 [id$=\”-aggregationStart\”],#publish-mermaid-5-1794232696341 .aggregation{fill:transparent!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 [id$=\”-aggregationEnd\”],#publish-mermaid-5-1794232696341 .aggregation{fill:transparent!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 [id$=\”-lollipopStart\”],#publish-mermaid-5-1794232696341 .lollipop{fill:#ECECFF!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 [id$=\”-lollipopEnd\”],#publish-mermaid-5-1794232696341 .lollipop{fill:#ECECFF!important;stroke:#333333!important;stroke-width:1;}#publish-mermaid-5-1794232696341 .edgeTerminals{font-size:11px;line-height:initial;}#publish-mermaid-5-1794232696341 .classTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-5-1794232696341 .edgeLabel[data-look=\”neo\”]{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-5-1794232696341 .edgeLabel[data-look=\”neo\”] p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-5-1794232696341 .edgeLabel[data-look=\”neo\”] rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-5-1794232696341 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-5-1794232696341 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-5-1794232696341 .node .neo-node{stroke:#9370DB;}#publish-mermaid-5-1794232696341 [data-look=\”neo\”].node rect,#publish-mermaid-5-1794232696341 [data-look=\”neo\”].cluster rect,#publish-mermaid-5-1794232696341 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1794232696341 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-5-1794232696341 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-5-1794232696341 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1794232696341 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-5-1794232696341 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1794232696341 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-5-1794232696341 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1794232696341 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-5-1794232696341 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}功能对应

思科命令

+show vlan

+show ip interface

华为命令

+display vlan

+display ip interface

类图展示了思科和华为逻辑接口命令的继承关系,说明功能对应但命令前缀不同。

四、路由表与ARP表查看

4.1 路由表查看

思科“show ip route”对应华为“display ip routing-table”,查看IP路由表。思科“show ipv6 route”对应华为“display ipv6 routing-table”,查看IPv6路由表。

华为设备思科设备用户华为设备思科设备用户#publish-mermaid-6-1794232696395{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-6-1794232696395 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-6-1794232696395 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-6-1794232696395 .error-icon{fill:#552222;}#publish-mermaid-6-1794232696395 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-6-1794232696395 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-6-1794232696395 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-6-1794232696395 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-6-1794232696395 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-6-1794232696395 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-6-1794232696395 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-6-1794232696395 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-6-1794232696395 .marker.cross{stroke:#333333;}#publish-mermaid-6-1794232696395 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-6-1794232696395 p{margin:0;}#publish-mermaid-6-1794232696395 .actor{stroke:#9370DB;fill:#ECECFF;stroke-width:1;}#publish-mermaid-6-1794232696395 rect.actor.outer-path[data-look=\”neo\”]{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1794232696395 rect.note[data-look=\”neo\”]{stroke:#aaaa33;fill:#fff5ad;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1794232696395 text.actor>tspan{fill:black;stroke:none;}#publish-mermaid-6-1794232696395 .actor-line{stroke:#9370DB;}#publish-mermaid-6-1794232696395 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#publish-mermaid-6-1794232696395 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#publish-mermaid-6-1794232696395 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#publish-mermaid-6-1794232696395 [id$=\”-arrowhead\”] path{fill:#333;stroke:#333;}#publish-mermaid-6-1794232696395 .sequenceNumber{fill:white;}#publish-mermaid-6-1794232696395 [id$=\”-sequencenumber\”]{fill:#333;}#publish-mermaid-6-1794232696395 [id$=\”-crosshead\”] path{fill:#333;stroke:#333;}#publish-mermaid-6-1794232696395 .messageText{fill:#333;stroke:none;}#publish-mermaid-6-1794232696395 .labelBox{stroke:#9370DB;fill:#ECECFF;filter:none;}#publish-mermaid-6-1794232696395 .labelText,#publish-mermaid-6-1794232696395 .labelText>tspan{fill:black;stroke:none;}#publish-mermaid-6-1794232696395 .loopText,#publish-mermaid-6-1794232696395 .loopText>tspan{fill:black;stroke:none;}#publish-mermaid-6-1794232696395 .sectionTitle,#publish-mermaid-6-1794232696395 .sectionTitle>tspan{fill:black;stroke:none;}#publish-mermaid-6-1794232696395 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:#9370DB;fill:#9370DB;}#publish-mermaid-6-1794232696395 .note{stroke:#aaaa33;fill:#fff5ad;}#publish-mermaid-6-1794232696395 .noteText,#publish-mermaid-6-1794232696395 .noteText>tspan{fill:black;stroke:none;font-weight:normal;}#publish-mermaid-6-1794232696395 .activation0{fill:#f4f4f4;stroke:#666;}#publish-mermaid-6-1794232696395 .activation1{fill:#f4f4f4;stroke:#666;}#publish-mermaid-6-1794232696395 .activation2{fill:#f4f4f4;stroke:#666;}#publish-mermaid-6-1794232696395 .actorPopupMenu{position:absolute;}#publish-mermaid-6-1794232696395 .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#publish-mermaid-6-1794232696395 .actor-man circle,#publish-mermaid-6-1794232696395 line{fill:#ECECFF;stroke-width:2px;}#publish-mermaid-6-1794232696395 g rect.rect{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));stroke:#9370DB;}#publish-mermaid-6-1794232696395 .node .neo-node{stroke:#9370DB;}#publish-mermaid-6-1794232696395 [data-look=\”neo\”].node rect,#publish-mermaid-6-1794232696395 [data-look=\”neo\”].cluster rect,#publish-mermaid-6-1794232696395 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1794232696395 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-6-1794232696395 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-6-1794232696395 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1794232696395 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-6-1794232696395 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1794232696395 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-6-1794232696395 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1794232696395 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-6-1794232696395 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}show ip route返回路由条目、下一跳display ip routing-table返回路由条目、下一跳

时序图展示了路由表查询的响应过程,两者均返回路由条目和下一跳信息。

4.2 ARP表查看

思科“show arp”对应华为“display arp”,查看ARP缓存表。思科“show ip arp”对应华为“display arp all”,查看所有ARP条目。

#publish-mermaid-7-1794232696415{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-7-1794232696415 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-7-1794232696415 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-7-1794232696415 .error-icon{fill:#552222;}#publish-mermaid-7-1794232696415 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-7-1794232696415 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-7-1794232696415 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-7-1794232696415 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-7-1794232696415 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-7-1794232696415 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-7-1794232696415 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-7-1794232696415 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-7-1794232696415 .marker.cross{stroke:#333333;}#publish-mermaid-7-1794232696415 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-7-1794232696415 p{margin:0;}#publish-mermaid-7-1794232696415 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-7-1794232696415 .cluster-label text{fill:#333;}#publish-mermaid-7-1794232696415 .cluster-label span{color:#333;}#publish-mermaid-7-1794232696415 .cluster-label span p{background-color:transparent;}#publish-mermaid-7-1794232696415 .label text,#publish-mermaid-7-1794232696415 span{fill:#333;color:#333;}#publish-mermaid-7-1794232696415 .node rect,#publish-mermaid-7-1794232696415 .node circle,#publish-mermaid-7-1794232696415 .node ellipse,#publish-mermaid-7-1794232696415 .node polygon,#publish-mermaid-7-1794232696415 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-7-1794232696415 .rough-node .label text,#publish-mermaid-7-1794232696415 .node .label text,#publish-mermaid-7-1794232696415 .image-shape .label,#publish-mermaid-7-1794232696415 .icon-shape .label{text-anchor:middle;}#publish-mermaid-7-1794232696415 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-7-1794232696415 .rough-node .label,#publish-mermaid-7-1794232696415 .node .label,#publish-mermaid-7-1794232696415 .image-shape .label,#publish-mermaid-7-1794232696415 .icon-shape .label{text-align:center;}#publish-mermaid-7-1794232696415 .node.clickable{cursor:pointer;}#publish-mermaid-7-1794232696415 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-7-1794232696415 .arrowheadPath{fill:#333333;}#publish-mermaid-7-1794232696415 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-7-1794232696415 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-7-1794232696415 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-7-1794232696415 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-7-1794232696415 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-7-1794232696415 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-7-1794232696415 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-7-1794232696415 .cluster text{fill:#333;}#publish-mermaid-7-1794232696415 .cluster span{color:#333;}#publish-mermaid-7-1794232696415 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-7-1794232696415 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-7-1794232696415 rect.text{fill:none;stroke-width:0;}#publish-mermaid-7-1794232696415 .icon-shape,#publish-mermaid-7-1794232696415 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-7-1794232696415 .icon-shape p,#publish-mermaid-7-1794232696415 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-7-1794232696415 .icon-shape .label rect,#publish-mermaid-7-1794232696415 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-7-1794232696415 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-7-1794232696415 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-7-1794232696415 .node .neo-node{stroke:#9370DB;}#publish-mermaid-7-1794232696415 [data-look=\”neo\”].node rect,#publish-mermaid-7-1794232696415 [data-look=\”neo\”].cluster rect,#publish-mermaid-7-1794232696415 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1794232696415 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-7-1794232696415 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-7-1794232696415 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1794232696415 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-7-1794232696415 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1794232696415 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-7-1794232696415 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1794232696415 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-7-1794232696415 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}思科华为

输入命令

厂商判断

show arp

display arp

返回IP-MAC映射

流程图展示了ARP表查询的命令选择和结果返回,强调功能一致性。

五、系统信息与日志查看

5.1 系统日志查看

思科“show logging”对应华为“display logbuffer”,查看系统日志。思科“show clock”对应华为“display clock”,查看系统时间。

#publish-mermaid-8-1794232696586{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-8-1794232696586 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-8-1794232696586 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-8-1794232696586 .error-icon{fill:#552222;}#publish-mermaid-8-1794232696586 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-8-1794232696586 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-8-1794232696586 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-8-1794232696586 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-8-1794232696586 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-8-1794232696586 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-8-1794232696586 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-8-1794232696586 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-8-1794232696586 .marker.cross{stroke:#333333;}#publish-mermaid-8-1794232696586 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-8-1794232696586 p{margin:0;}#publish-mermaid-8-1794232696586 defs [id$=\”-barbEnd\”]{fill:#333333;stroke:#333333;}#publish-mermaid-8-1794232696586 g.stateGroup text{fill:#9370DB;stroke:none;font-size:10px;}#publish-mermaid-8-1794232696586 g.stateGroup text{fill:#333;stroke:none;font-size:10px;}#publish-mermaid-8-1794232696586 g.stateGroup .state-title{font-weight:bolder;fill:#131300;}#publish-mermaid-8-1794232696586 g.stateGroup rect{fill:#ECECFF;stroke:#9370DB;}#publish-mermaid-8-1794232696586 g.stateGroup line{stroke:#333333;stroke-width:1;}#publish-mermaid-8-1794232696586 .transition{stroke:#333333;stroke-width:1;fill:none;}#publish-mermaid-8-1794232696586 .stateGroup .composit{fill:white;border-bottom:1px;}#publish-mermaid-8-1794232696586 .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px;}#publish-mermaid-8-1794232696586 .state-note{stroke:#aaaa33;fill:#fff5ad;}#publish-mermaid-8-1794232696586 .state-note text{fill:black;stroke:none;font-size:10px;}#publish-mermaid-8-1794232696586 .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5;}#publish-mermaid-8-1794232696586 .edgeLabel .label rect{fill:#ECECFF;opacity:0.5;}#publish-mermaid-8-1794232696586 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-8-1794232696586 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-8-1794232696586 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-8-1794232696586 .edgeLabel .label text{fill:#333;}#publish-mermaid-8-1794232696586 .label div .edgeLabel{color:#333;}#publish-mermaid-8-1794232696586 .stateLabel text{fill:#131300;font-size:10px;font-weight:bold;}#publish-mermaid-8-1794232696586 .node circle.state-start{fill:#333333;stroke:#333333;}#publish-mermaid-8-1794232696586 .node .fork-join{fill:#333333;stroke:#333333;}#publish-mermaid-8-1794232696586 .node circle.state-end{fill:#9370DB;stroke:white;stroke-width:1.5;}#publish-mermaid-8-1794232696586 .end-state-inner{fill:white;stroke-width:1.5;}#publish-mermaid-8-1794232696586 .node rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-8-1794232696586 .node polygon{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-8-1794232696586 [id$=\”-barbEnd\”]{fill:#333333;}#publish-mermaid-8-1794232696586 .statediagram-cluster rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-8-1794232696586 .cluster-label,#publish-mermaid-8-1794232696586 .nodeLabel{color:#131300;}#publish-mermaid-8-1794232696586 .statediagram-cluster rect.outer{rx:5px;ry:5px;}#publish-mermaid-8-1794232696586 .statediagram-state .divider{stroke:#9370DB;}#publish-mermaid-8-1794232696586 .statediagram-state .title-state{rx:5px;ry:5px;}#publish-mermaid-8-1794232696586 .statediagram-cluster.statediagram-cluster .inner{fill:white;}#publish-mermaid-8-1794232696586 .statediagram-cluster.statediagram-cluster-alt .inner{fill:#f0f0f0;}#publish-mermaid-8-1794232696586 .statediagram-cluster .inner{rx:0;ry:0;}#publish-mermaid-8-1794232696586 .statediagram-state rect.basic{rx:5px;ry:5px;}#publish-mermaid-8-1794232696586 .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#f0f0f0;}#publish-mermaid-8-1794232696586 .note-edge{stroke-dasharray:5;}#publish-mermaid-8-1794232696586 .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#publish-mermaid-8-1794232696586 .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#publish-mermaid-8-1794232696586 .statediagram-note text{fill:black;}#publish-mermaid-8-1794232696586 .statediagram-note .nodeLabel{color:black;}#publish-mermaid-8-1794232696586 .statediagram .edgeLabel{color:red;}#publish-mermaid-8-1794232696586 [id$=\”-dependencyStart\”],#publish-mermaid-8-1794232696586 [id$=\”-dependencyEnd\”]{fill:#333333;stroke:#333333;stroke-width:1;}#publish-mermaid-8-1794232696586 .statediagramTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].statediagram-cluster rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1;}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].statediagram-cluster rect.outer{rx:5px;ry:5px;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1794232696586 .node .neo-node{stroke:#9370DB;}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].node rect,#publish-mermaid-8-1794232696586 [data-look=\”neo\”].cluster rect,#publish-mermaid-8-1794232696586 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1794232696586 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-8-1794232696586 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}输入命令返回日志内容输入命令返回当前时间

查询日志

日志状态

查询时间

时间状态

状态图展示了系统日志和时间查询的流程,每个状态对应命令执行后的结果。

5.2 配置备份与恢复

思科“show running-config”对应华为“display current-configuration”,查看当前配置。思科“show startup-config”对应华为“display saved-configuration”,查看启动配置。

#publish-mermaid-9-1794232696653{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-9-1794232696653 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-9-1794232696653 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-9-1794232696653 .error-icon{fill:#552222;}#publish-mermaid-9-1794232696653 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-9-1794232696653 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-9-1794232696653 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-9-1794232696653 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-9-1794232696653 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-9-1794232696653 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-9-1794232696653 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-9-1794232696653 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-9-1794232696653 .marker.cross{stroke:#333333;}#publish-mermaid-9-1794232696653 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-9-1794232696653 p{margin:0;}#publish-mermaid-9-1794232696653 .pieCircle{stroke:black;stroke-width:2px;opacity:0.7;}#publish-mermaid-9-1794232696653 .pieCircle.highlighted{scale:1.05;opacity:1;}#publish-mermaid-9-1794232696653 .pieCircle.highlightedOnHover:hover{transition-duration:250ms;scale:1.05;opacity:1;}#publish-mermaid-9-1794232696653 .pieOuterCircle{stroke:black;stroke-width:2px;fill:none;}#publish-mermaid-9-1794232696653 .pieTitleText{text-anchor:middle;font-size:25px;fill:black;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}#publish-mermaid-9-1794232696653 .slice{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;fill:#333;font-size:17px;}#publish-mermaid-9-1794232696653 .legend text{fill:black;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:17px;}#publish-mermaid-9-1794232696653 .node .neo-node{stroke:#9370DB;}#publish-mermaid-9-1794232696653 [data-look=\”neo\”].node rect,#publish-mermaid-9-1794232696653 [data-look=\”neo\”].cluster rect,#publish-mermaid-9-1794232696653 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-9-1794232696653 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-9-1794232696653 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-9-1794232696653 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-9-1794232696653 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-9-1794232696653 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-9-1794232696653 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-9-1794232696653 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-9-1794232696653 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-9-1794232696653 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}60%40%配置查看命令分布当前配置启动配置

饼图显示当前配置是更常用的查看类型,占比60%,反映了运维中对实时配置的关注。

六、命令速查表

6.1 常用命令对照

以下表格列出常用命令的思科与华为对照,方便快速查阅。

思科命令华为命令功能说明
show version display version 查看设备版本信息
show interfaces display interface brief 查看接口状态
show ip route display ip routing-table 查看IP路由表
show arp display arp 查看ARP表
show logging display logbuffer 查看系统日志

6.2 命令执行技巧

跨厂商设备操作时,建议先确认命令前缀(show/display),再根据功能选择子命令。对于复杂命令,可结合厂商文档或帮助命令(如思科“show ?”,华为“display ?”)获取子命令列表。

#publish-mermaid-10-1794232696661{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-10-1794232696661 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-10-1794232696661 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-10-1794232696661 .error-icon{fill:#552222;}#publish-mermaid-10-1794232696661 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-10-1794232696661 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-10-1794232696661 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-10-1794232696661 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-10-1794232696661 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-10-1794232696661 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-10-1794232696661 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-10-1794232696661 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-10-1794232696661 .marker.cross{stroke:#333333;}#publish-mermaid-10-1794232696661 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-10-1794232696661 p{margin:0;}#publish-mermaid-10-1794232696661 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#publish-mermaid-10-1794232696661 .cluster-label text{fill:#333;}#publish-mermaid-10-1794232696661 .cluster-label span{color:#333;}#publish-mermaid-10-1794232696661 .cluster-label span p{background-color:transparent;}#publish-mermaid-10-1794232696661 .label text,#publish-mermaid-10-1794232696661 span{fill:#333;color:#333;}#publish-mermaid-10-1794232696661 .node rect,#publish-mermaid-10-1794232696661 .node circle,#publish-mermaid-10-1794232696661 .node ellipse,#publish-mermaid-10-1794232696661 .node polygon,#publish-mermaid-10-1794232696661 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-10-1794232696661 .rough-node .label text,#publish-mermaid-10-1794232696661 .node .label text,#publish-mermaid-10-1794232696661 .image-shape .label,#publish-mermaid-10-1794232696661 .icon-shape .label{text-anchor:middle;}#publish-mermaid-10-1794232696661 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-10-1794232696661 .rough-node .label,#publish-mermaid-10-1794232696661 .node .label,#publish-mermaid-10-1794232696661 .image-shape .label,#publish-mermaid-10-1794232696661 .icon-shape .label{text-align:center;}#publish-mermaid-10-1794232696661 .node.clickable{cursor:pointer;}#publish-mermaid-10-1794232696661 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-10-1794232696661 .arrowheadPath{fill:#333333;}#publish-mermaid-10-1794232696661 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-10-1794232696661 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-10-1794232696661 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-10-1794232696661 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-10-1794232696661 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-10-1794232696661 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-10-1794232696661 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-10-1794232696661 .cluster text{fill:#333;}#publish-mermaid-10-1794232696661 .cluster span{color:#333;}#publish-mermaid-10-1794232696661 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-10-1794232696661 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-10-1794232696661 rect.text{fill:none;stroke-width:0;}#publish-mermaid-10-1794232696661 .icon-shape,#publish-mermaid-10-1794232696661 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-10-1794232696661 .icon-shape p,#publish-mermaid-10-1794232696661 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-10-1794232696661 .icon-shape .label rect,#publish-mermaid-10-1794232696661 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-10-1794232696661 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-10-1794232696661 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-10-1794232696661 .node .neo-node{stroke:#9370DB;}#publish-mermaid-10-1794232696661 [data-look=\”neo\”].node rect,#publish-mermaid-10-1794232696661 [data-look=\”neo\”].cluster rect,#publish-mermaid-10-1794232696661 [data-look=\”neo\”].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-10-1794232696661 [data-look=\”neo\”].swimlane.cluster rect{filter:none;}#publish-mermaid-10-1794232696661 [data-look=\”neo\”].node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-10-1794232696661 [data-look=\”neo\”].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-10-1794232696661 [data-look=\”neo\”].node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-10-1794232696661 [data-look=\”neo\”].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-10-1794232696661 [data-look=\”neo\”].node circle .state-start{fill:#000000;}#publish-mermaid-10-1794232696661 [data-look=\”neo\”].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-10-1794232696661 [data-look=\”neo\”].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-10-1794232696661 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}思科华为

开始

确认厂商

使用show前缀

使用display前缀

输入子命令

执行命令

分析结果

流程图展示了命令执行的通用流程,强调前缀确认和子命令选择的重要性。

赞(0)
未经允许不得转载:网硕互联帮助中心 » 思科show命令与华为display命令对照:跨厂商网络设备命令速查指南
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!