<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>路由交换 on 🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟</title>
    <link>https://fps.ink/tags/%E8%B7%AF%E7%94%B1%E4%BA%A4%E6%8D%A2/</link>
    <description>Recent content from 🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>xxx@example.com (Jarvis)</managingEditor>
    <webMaster>xxx@example.com (Jarvis)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Sat, 22 Oct 2022 21:53:00 +0800</lastBuildDate>
    
    
    <atom:link href="https://fps.ink/tags/%E8%B7%AF%E7%94%B1%E4%BA%A4%E6%8D%A2/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>路由器命令大全：华为 / H3C / 思科对照</title>
      <link>https://fps.ink/post/router-cli/</link>
      <pubDate>Sat, 22 Oct 2022 21:53:00 &#43;0800</pubDate>
      <author>xxx@example.com (Jarvis)</author>
      <guid>https://fps.ink/post/router-cli/</guid>
      <description>
        <![CDATA[<h1>路由器命令大全：华为 / H3C / 思科对照</h1><p>作者：Jarvis（xxx@example.com）</p>
        
          <p>华为 VRP、H3C Comware、思科 IOS 三家命令体系高度相似，但关键字不同。本文按「模式 → 基础 → 接口 → 交换 → 路由 → 安全 → 管理 → 排障」分类，每类给出三家写法，最后附一张对照总表。</p>
<h2 id="一三种-cli-体系">
<a class="header-anchor" href="#%e4%b8%80%e4%b8%89%e7%a7%8d-cli-%e4%bd%93%e7%b3%bb"></a>
一、三种 CLI 体系
</h2><table>
	<thead>
			<tr>
					<th></th>
					<th>华为 VRP</th>
					<th>H3C Comware</th>
					<th>思科 IOS</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>提示符</td>
					<td><code>&lt;Huawei&gt;</code> / <code>[Huawei]</code></td>
					<td><code>&lt;H3C&gt;</code> / <code>[H3C]</code></td>
					<td><code>Router&gt;</code> / <code>Router#</code> / <code>Router(config)#</code></td>
			</tr>
			<tr>
					<td>配置模式</td>
					<td><code>system-view</code></td>
					<td><code>system-view</code></td>
					<td><code>configure terminal</code></td>
			</tr>
			<tr>
					<td>端口视图</td>
					<td><code>[Huawei-GigabitEthernet0/0/1]</code></td>
					<td><code>[H3C-GigabitEthernet1/0/1]</code></td>
					<td><code>Router(config-if)#</code></td>
			</tr>
			<tr>
					<td>返回上一层</td>
					<td><code>quit</code></td>
					<td><code>quit</code></td>
					<td><code>exit</code></td>
			</tr>
			<tr>
					<td>直接回用户视图</td>
					<td><code>return</code>（或 <code>Ctrl+Z</code>）</td>
					<td><code>return</code>（或 <code>Ctrl+Z</code>）</td>
					<td><code>end</code>（或 <code>Ctrl+Z</code>）</td>
			</tr>
			<tr>
					<td>保存</td>
					<td><code>save</code></td>
					<td><code>save force</code></td>
					<td><code>write</code> / <code>copy run start</code></td>
			</tr>
			<tr>
					<td>取消命令</td>
					<td><code>undo xxx</code></td>
					<td><code>undo xxx</code></td>
					<td><code>no xxx</code></td>
			</tr>
			<tr>
					<td>查看</td>
					<td><code>display xxx</code></td>
					<td><code>display xxx</code></td>
					<td><code>show xxx</code></td>
			</tr>
	</tbody>
</table>
<p>记住三组对应关系，剩下的就是查具体参数：<strong><code>display</code> ↔ <code>show</code>、<code>undo</code> ↔ <code>no</code>、<code>save</code> ↔ <code>write</code></strong>。</p>
        
        <hr><p>本文2022-10-22首发于<a href='https://fps.ink/'>🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟</a>，最后修改于2022-10-22</p>]]>
      </description>
      
        <category>技术</category>
      
    </item>
    
  </channel>
</rss>
