<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eNSP归档 - 帝讯博客</title>
	<atom:link href="https://www.dixunblog.cn/tag/ensp/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dixunblog.cn/tag/ensp</link>
	<description>致力于打造专业的互联网资讯平台</description>
	<lastBuildDate>Fri, 24 Apr 2026 14:05:49 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://cdn.hyclive.cn/dixunblog/2025/12/cropped-ico-32x32.png</url>
	<title>eNSP归档 - 帝讯博客</title>
	<link>https://www.dixunblog.cn/tag/ensp</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>eNSP常用配置命令实战：跟着做就能学会</title>
		<link>https://www.dixunblog.cn/1733.html</link>
					<comments>https://www.dixunblog.cn/1733.html#respond</comments>
		
		<dc:creator><![CDATA[老大]]></dc:creator>
		<pubDate>Fri, 24 Apr 2026 14:05:49 +0000</pubDate>
				<category><![CDATA[技术教程]]></category>
		<category><![CDATA[eNSP]]></category>
		<category><![CDATA[网络路由]]></category>
		<guid isPermaLink="false">https://www.dixunblog.cn/?p=1733</guid>

					<description><![CDATA[<p>学网络最大的痛点是什么？看了一大堆理论，命令背了一堆，但实际操作还是不会。 这篇文章换个方式：不讲理论，直接做实验。每个命令都配合一个具体场景，你跟着拓扑搭建、输入命令、验证效果，做完就学会了。 我们用eNSP模拟器，从最简单的开始，一步步做6个实战案例： 实验一：给路由器改名、配IP地址 这是最基础的配置，任何设备第一步都是改名和配IP。 实验场景 一台路由器，命名为R1，给接口配IP地址192.168.1.1/24。 拓扑搭建 打开eNSP，新建拓扑 拖入一台路由器（AR2220） 启动路由器 双击路由器，进入</p>
<p><a href="https://www.dixunblog.cn/1733.html">eNSP常用配置命令实战：跟着做就能学会</a>最先出现在<a href="https://www.dixunblog.cn">帝讯博客</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>学网络最大的痛点是什么？看了一大堆理论，命令背了一堆，但实际操作还是不会。</p>
<p>这篇文章换个方式：不讲理论，直接做实验。每个命令都配合一个具体场景，你跟着拓扑搭建、输入命令、验证效果，做完就学会了。</p>
<p>我们用eNSP模拟器，从最简单的开始，一步步做6个实战案例：</p>
<p><img fetchpriority="high" decoding="async" class="size-full wp-image-1734 aligncenter" title="c53dbaf39287c7001496dbe13f84ce5b" src="http://cdn.hyclive.cn/dixunblog/2026/04/c53dbaf39287c7001496dbe13f84ce5b.png" alt="c53dbaf39287c7001496dbe13f84ce5b" width="2730" height="1535" /></p>
<hr />
<h2>实验一：给路由器改名、配IP地址</h2>
<p>这是最基础的配置，任何设备第一步都是改名和配IP。</p>
<h3>实验场景</h3>
<p>一台路由器，命名为R1，给接口配IP地址192.168.1.1/24。</p>
<h3>拓扑搭建</h3>
<ol>
<li>打开eNSP，新建拓扑</li>
<li>拖入一台路由器（AR2220）</li>
<li>启动路由器</li>
<li>双击路由器，进入命令行界面</li>
</ol>
<h3>配置步骤</h3>
<p><strong>第一步：进入系统视图</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]</code></pre>
<p>命令解释：</p>
<ul>
<li><code>system-view</code>：从用户视图进入系统视图（配置模式）</li>
<li>提示符从 <code>&lt;Huawei&gt;</code> 变成 <code>[Huawei]</code>，表示进入配置模式</li>
</ul>
<hr />
<p><strong>第二步：给路由器改名</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[Huawei]sysname R1
[R1]</code></pre>
<p>命令解释：</p>
<ul>
<li><code>sysname R1</code>：把设备名字改成R1</li>
<li>提示符变成 <code>[R1]</code>，说明改名成功</li>
</ul>
<hr />
<p><strong>第三步：进入接口视图</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]</code></pre>
<p>命令解释：</p>
<ul>
<li><code>interface GigabitEthernet 0/0/0</code>：进入GE0/0/0接口（路由器的第一个网口）</li>
<li>提示符变成 <code>[R1-GigabitEthernet0/0/0]</code>，表示在接口配置模式</li>
</ul>
<p>华为路由器的接口命名规则：</p>
<ul>
<li>GigabitEthernet = GE（千兆网口）</li>
<li>0/0/0 = 第0号槽位/第0号子卡/第0号接口</li>
</ul>
<hr />
<p><strong>第四步：配IP地址</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0]</code></pre>
<p>命令解释：</p>
<ul>
<li><code>ip address 192.168.1.1 24</code>：设置IP地址和子网掩码</li>
<li>24表示掩码位数（相当于255.255.255.0）</li>
</ul>
<p>也可以写成完整掩码：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 255.255.255.0</code></pre>
<hr />
<p><strong>第五步：查看配置结果</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1-GigabitEthernet0/0/0]display this
#
interface GigabitEthernet0/0/0
 ip address 192.168.1.1 255.255.255.0
#
return</code></pre>
<p>命令解释：</p>
<ul>
<li><code>display this</code>：查看当前视图的配置</li>
<li>显示GE0/0/0接口的配置，IP地址已经配置成功</li>
</ul>
<hr />
<h3>实验验证：查看接口状态</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display ip interface brief
*down: administratively down
!down: FIB overload down
...
Interface                   IP Address      Physical   Protocol  
GigabitEthernet0/0/0        192.168.1.1     up         up      </code></pre>
<p>命令解释：</p>
<ul>
<li><code>display ip interface brief</code>：查看所有接口的IP地址和状态</li>
<li>Physical = up（物理层正常）</li>
<li>Protocol = up（协议层正常）</li>
</ul>
<p>接口状态显示 <code>up up</code>，说明配置成功，接口正常工作。</p>
<hr />
<h2>实验二：两台路由器互通（静态路由）</h2>
<p>现在做个稍微复杂点的：两台路由器，配置静态路由让它们互通。</p>
<h3>实验场景</h3>
<p>两台路由器R1和R2，通过网线连接。R1的GE0/0/0接R2的GE0/0/0。</p>
<ul>
<li>R1：IP地址 192.168.1.1/24</li>
<li>R2：IP地址 192.168.1.2/24</li>
<li>目标：R1能ping通R2</li>
</ul>
<h3>拓扑搭建</h3>
<ol>
<li>拖入两台路由器（AR2220）</li>
<li>用Copper线连接R1的GE0/0/0和R2的GE0/0/0</li>
<li>启动两台路由器</li>
</ol>
<h3>R1配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0]quit</code></pre>
<hr />
<h3>R2配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R2
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.1.2 24
[R2-GigabitEthernet0/0/0]quit</code></pre>
<hr />
<h3>实验验证：互相ping</h3>
<p><strong>在R1上pingR2：</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]ping 192.168.1.2
PING 192.168.1.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 192.168.1.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 20/24/30 ms</code></pre>
<p>命令解释：</p>
<ul>
<li><code>ping 192.168.1.2</code>：测试连通性</li>
<li>显示5个Reply，说明ping成功</li>
<li>packet loss = 0.00%，没有丢包</li>
</ul>
<p><strong>在R2上ping R1：</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R2]ping 192.168.1.1
PING 192.168.1.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=20 ms
    ...
  --- 192.168.1.1 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss</code></pre>
<p>两边都能ping通，实验成功。</p>
<hr />
<h3>添加第三台路由器（需要静态路由）</h3>
<p>现在加一台R3，测试静态路由。</p>
<p>拓扑：</p>
<ul>
<li>R1（GE0/0/0） &#8212; （GE0/0/0）R2（GE0/0/1） &#8212; （GE0/0/0）R3</li>
<li>R1-GE0/0/0：192.168.1.1/24</li>
<li>R2-GE0/0/0：192.168.1.2/24</li>
<li>R2-GE0/0/1：192.168.2.1/24</li>
<li>R3-GE0/0/0：192.168.2.2/24</li>
</ul>
<p>问题：R1和R3不在同一个网段，直接ping不通，需要配置静态路由。</p>
<hr />
<h3>R3配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R3
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ip address 192.168.2.2 24</code></pre>
<hr />
<h3>R1配置静态路由</h3>
<p>R1要访问192.168.2.0网段（R3），需要告诉R1&#8243;去192.168.2.0找R2&#8243;。</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]ip route-static 192.168.2.0 24 192.168.1.2</code></pre>
<p>命令解释：</p>
<ul>
<li><code>ip route-static</code>：配置静态路由</li>
<li><code>192.168.2.0 24</code>：目标网段（R3所在的网段）</li>
<li><code>192.168.1.2</code>：下一跳地址（R2的IP，R1把数据发给R2）</li>
</ul>
<hr />
<h3>R3配置静态路由</h3>
<p>R3要访问192.168.1.0网段（R1），也需要配置路由：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R3]ip route-static 192.168.1.0 24 192.168.2.1</code></pre>
<p>命令解释：</p>
<ul>
<li>目标网段：192.168.1.0（R1所在的网段）</li>
<li>下一跳：192.168.2.1（R2的另一个接口）</li>
</ul>
<hr />
<h3>实验验证：R1pingR3</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]ping 192.168.2.2
PING 192.168.2.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.2.2: bytes=56 Sequence=1 ttl=254 time=50 ms
    Reply from 192.168.2.2: bytes=56 Sequence=2 ttl=254 time=40 ms
    ...

  --- 192.168.2.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss</code></pre>
<p>ttl=254（经过了一次路由转发，ttl减1），说明路由生效。</p>
<hr />
<h3>查看路由表</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 6        Routes : 6        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

192.168.1.0/24      Direct  0    0           D   192.168.1.1     GE0/0/0
192.168.1.1/32      Direct  0    0           D   127.0.0.1       GE0/0/0
192.168.2.0/24      Static  60   0          RD   192.168.1.2     GE0/0/0</code></pre>
<p>命令解释：</p>
<ul>
<li><code>display ip routing-table</code>：查看路由表</li>
<li>192.168.1.0/24 是直连路由（Direct），自己接口配置的</li>
<li>192.168.2.0/24 是静态路由（Static），我们刚才配置的</li>
</ul>
<hr />
<h2>实验三：交换机VLAN配置</h2>
<p>现在做交换机的VLAN实验，把不同接口划分到不同VLAN。</p>
<h3>实验场景</h3>
<p>一台交换机S1，三个接口：</p>
<ul>
<li>GE0/0/1：VLAN 10（部门A）</li>
<li>GE0/0/2：VLAN 20（部门B）</li>
<li>GE0/0/3：Trunk（连接路由器）</li>
</ul>
<h3>拓扑搭建</h3>
<ol>
<li>拖入一台交换机（S5700）</li>
<li>拖入两台PC（用PC代替部门A和部门B）</li>
<li>PC1接S1的GE0/0/1，PC2接S1的GE0/0/2</li>
</ol>
<h3>交换机配置</h3>
<p><strong>第一步：创建VLAN</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname S1
[S1]vlan batch 10 20</code></pre>
<p>命令解释：</p>
<ul>
<li><code>vlan batch 10 20</code>：批量创建VLAN 10和VLAN 20</li>
</ul>
<p>也可以单个创建：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]vlan 10
[S1-vlan10]quit
[S1]vlan 20
[S1-vlan20]quit</code></pre>
<hr />
<p><strong>第二步：接口加入VLAN</strong></p>
<p>把GE0/0/1加入VLAN 10：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]interface GigabitEthernet 0/0/1
[S1-GigabitEthernet0/0/1]port link-type access
[S1-GigabitEthernet0/0/1]port default vlan 10</code></pre>
<p>命令解释：</p>
<ul>
<li><code>port link-type access</code>：设置接口类型为Access（接入端口，连接PC）</li>
<li><code>port default vlan 10</code>：把接口加入VLAN 10</li>
</ul>
<p>把GE0/0/2加入VLAN 20：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]interface GigabitEthernet 0/0/2
[S1-GigabitEthernet0/0/2]port link-type access
[S1-GigabitEthernet0/0/2]port default vlan 20</code></pre>
<hr />
<p><strong>第三步：配置Trunk端口</strong></p>
<p>GE0/0/3连接路由器，需要配置为Trunk（允许多个VLAN通过）：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]interface GigabitEthernet 0/0/3
[S1-GigabitEthernet0/0/3]port link-type trunk
[S1-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20</code></pre>
<p>命令解释：</p>
<ul>
<li><code>port link-type trunk</code>：设置接口类型为Trunk（干道端口）</li>
<li><code>port trunk allow-pass vlan 10 20</code>：允许VLAN 10和20通过</li>
</ul>
<hr />
<h3>实验验证：查看VLAN配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]display vlan
The total number of vlans is : 3
U: Up;         D: Down;         TG: Tagged;         UT: UnTagged;
MP: Vlan-mapping port;         ST: Vlan-stacking port;
...
VID  Type    Ports                           
10   common  UT:GE0/0/1              TG:GE0/0/3     
20   common  UT:GE0/0/2              TG:GE0/0/3     </code></pre>
<p>命令解释：</p>
<ul>
<li><code>display vlan</code>：查看VLAN信息</li>
<li>VID 10：GE0/0/1是Untagged（属于VLAN 10），GE0/0/3是Tagged（Trunk端口）</li>
<li>VID 20：GE0/0/2是Untagged（属于VLAN 20），GE0/0/3是Tagged</li>
</ul>
<hr />
<h2>实验四：OSPF动态路由（三台路由器）</h2>
<p>静态路由手动配置，适合小型网络。大型网络用动态路由，路由器自动学习路由表。</p>
<p>OSPF是最常用的动态路由协议。</p>
<h3>实验场景</h3>
<p>三台路由器R1、R2、R3，组成一个三角形拓扑：</p>
<ul>
<li>R1（GE0/0/0）192.168.1.1 &#8212; R2（GE0/0/0）192.168.1.2</li>
<li>R2（GE0/0/1）192.168.2.1 &#8212; R3（GE0/0/0）192.168.2.2</li>
<li>R1（GE0/0/1）192.168.3.1 &#8212; R3（GE0/0/1）192.168.3.2</li>
</ul>
<p>目标：配置OSPF，三台路由器自动学习路由表，互相ping通。</p>
<h3>配置思路</h3>
<ol>
<li>先配置各接口IP地址</li>
<li>启动OSPF进程</li>
<li>指定Router ID</li>
<li>把接口加入OSPF区域</li>
</ol>
<hr />
<h3>R1配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.3.1 24

[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255</code></pre>
<p>命令解释：</p>
<ul>
<li><code>ospf 1</code>：启动OSPF进程1</li>
<li><code>router-id 1.1.1.1</code>：指定Router ID（唯一标识，建议用IP地址格式）</li>
<li><code>area 0</code>：进入区域0（骨干区域）</li>
<li><code>network 192.168.1.0 0.0.0.255</code>：把192.168.1.0网段加入OSPF</li>
</ul>
<hr />
<h3>R2配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R2
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.1.2 24
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.2.1 24

[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255</code></pre>
<hr />
<h3>R3配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R3
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]ip address 192.168.3.2 24

[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255</code></pre>
<hr />
<h3>实验验证：查看OSPF邻居</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display ospf peer brief

OSPF Process 1 with Router ID 1.1.1.1
         Peer Brief Information
-------------------------------------------------------------------------------
Area Id          Interface                        Neighbor id      State    
0.0.0.0          GE0/0/0                          2.2.2.2          Full     
0.0.0.0          GE0/0/1                          3.3.3.3          Full     </code></pre>
<p>命令解释：</p>
<ul>
<li><code>display ospf peer brief</code>：查看OSPF邻居关系</li>
<li>State = Full（邻居关系建立成功）</li>
<li>R1有两个邻居：R2（2.2.2.2）和R3（3.3.3.3）</li>
</ul>
<hr />
<h3>实验验证：查看路由表</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 2        Routes : 2        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

192.168.2.0/24      OSPF    10   2           D   192.168.1.2     GE0/0/0
                    OSPF    10   2           D   192.168.3.2     GE0/0/1</code></pre>
<p>命令解释：</p>
<ul>
<li><code>display ip routing-table protocol ospf</code>：查看OSPF学习到的路由</li>
<li>192.168.2.0/24：OSPF自动学习的路由（Proto=OSPF）</li>
</ul>
<hr />
<h3>实验验证：ping测试</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]ping 192.168.2.2
PING 192.168.2.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.2.2: bytes=56 Sequence=1 ttl=254 time=50 ms
    ...

  --- 192.168.2.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss</code></pre>
<p>R1能ping通R3，OSPF路由生效。</p>
<hr />
<h2>实验五：DHCP自动分配IP地址</h2>
<p>路由器当DHCP服务器，给PC自动分配IP地址。</p>
<h3>实验场景</h3>
<p>路由器R1连接一台PC，R1当DHCP服务器，PC自动获取IP地址。</p>
<h3>拓扑搭建</h3>
<ol>
<li>拖入一台路由器（AR2220）</li>
<li>拖入一台PC</li>
<li>用Copper线连接</li>
</ol>
<h3>R1配置（DHCP服务器）</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24

[R1]dhcp enable
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]dhcp select interface
[R1-GigabitEthernet0/0/0]dhcp server dns-list 8.8.8.8</code></pre>
<p>命令解释：</p>
<ul>
<li><code>dhcp enable</code>：全局开启DHCP服务</li>
<li><code>dhcp select interface</code>：基于接口配置DHCP（自动分配该接口网段的IP）</li>
<li><code>dhcp server dns-list 8.8.8.8</code>：指定DNS服务器</li>
</ul>
<hr />
<h3>实验验证：PC获取IP地址</h3>
<p>在PC上：</p>
<ol>
<li>打开PC命令行</li>
<li>输入 <code>ipconfig</code>（查看IP地址）</li>
</ol>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">PC&gt;ipconfig

Link local IPv6 Address...........: fe80::20c:29ff:fef6:7e52
IPv6 Address......................: :: / 64
IPv4 Address......................: 192.168.1.254
Subnet Mask.......................: 255.255.255.0
Default Gateway...................: 192.168.1.1
DNS Server......................: 8.8.8.8</code></pre>
<p>PC自动获取了IP地址192.168.1.254，说明DHCP生效。</p>
<hr />
<h2>实验六：ACL访问控制列表</h2>
<p>ACL用来控制网络访问权限，比如禁止某个网段访问某个服务器。</p>
<h3>实验场景</h3>
<p>R1连接两个网段：</p>
<ul>
<li>192.168.1.0网段（部门A）</li>
<li>192.168.2.0网段（部门B）</li>
</ul>
<p>要求：禁止192.168.1.0网段ping192.168.2.0网段。</p>
<h3>拓扑搭建</h3>
<ol>
<li>拖入一台路由器（AR2220）</li>
<li>拖入两台PC（PC1和PC2）</li>
<li>R1的GE0/0/0接PC1，GE0/0/1接PC2</li>
</ol>
<h3>R1配置ACL</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.2.1 24

[R1]acl 2000
[R1-acl-basic-2000]rule deny source 192.168.1.0 0.0.0.255
[R1-acl-basic-2000]rule permit source any

[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]traffic-filter outbound acl 2000</code></pre>
<p>命令解释：</p>
<ul>
<li><code>acl 2000</code>：创建基本ACL（编号2000-2999）</li>
<li><code>rule deny source 192.168.1.0 0.0.0.255</code>：禁止192.168.1.0网段</li>
<li><code>rule permit source any</code>：允许其他所有网段</li>
<li><code>traffic-filter outbound acl 2000</code>：在GE0/0/1出方向应用ACL</li>
</ul>
<hr />
<h3>实验验证：ping测试</h3>
<p><strong>PC1（192.168.1.x）pingPC2（192.168.2.x）：</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">PC&gt;ping 192.168.2.10
Ping 192.168.2.10: 32 data bytes, Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.2.10:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)</code></pre>
<p>ping失败，100%丢包，ACL生效，192.168.1.0网段被禁止访问。</p>
<hr />
<h3>查看ACL配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display acl 2000
Basic ACL 2000, 2 rules
Acl's step is 5
rule 5 deny source 192.168.1.0 0.0.0.255
rule 10 permit source any</code></pre>
<p>ACL规则已配置成功。</p>
<hr />
<h2>常用命令总结</h2>
<p>这篇文章做了6个实验，用到了这些核心命令：</p>
<h3>基础配置命令</h3>
<table>
<thead>
<tr>
<th>命令</th>
<th>功能</th>
<th>使用场景</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>system-view</code></td>
<td>进入系统视图</td>
<td>所有配置的第一步</td>
</tr>
<tr>
<td><code>sysname R1</code></td>
<td>改设备名</td>
<td>给路由器/交换机命名</td>
</tr>
<tr>
<td><code>interface GE0/0/0</code></td>
<td>进入接口视图</td>
<td>配置接口IP</td>
</tr>
<tr>
<td><code>ip address x.x.x.x 24</code></td>
<td>配IP地址</td>
<td>给接口配IP</td>
</tr>
<tr>
<td><code>display ip interface brief</code></td>
<td>查看接口状态</td>
<td>验证配置结果</td>
</tr>
<tr>
<td><code>display this</code></td>
<td>查看当前配置</td>
<td>查看刚配置的内容</td>
</tr>
<tr>
<td><code>quit</code></td>
<td>退出当前视图</td>
<td>返回上一级</td>
</tr>
</tbody>
</table>
<h3>路由配置命令</h3>
<table>
<thead>
<tr>
<th>命令</th>
<th>功能</th>
<th>使用场景</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ip route-static 目标网段掩码下一跳</code></td>
<td>配静态路由</td>
<td>手动指定路由</td>
</tr>
<tr>
<td><code>ospf 1 router-id x.x.x.x</code></td>
<td>启动OSPF</td>
<td>动态路由协议</td>
</tr>
<tr>
<td><code>network 网段反掩码</code></td>
<td>加入OSPF区域</td>
<td>声明参与OSPF的网段</td>
</tr>
<tr>
<td><code>display ip routing-table</code></td>
<td>查看路由表</td>
<td>查看所有路由</td>
</tr>
<tr>
<td><code>display ospf peer brief</code></td>
<td>查看OSPF邻居</td>
<td>验证邻居关系</td>
</tr>
</tbody>
</table>
<h3>交换机命令</h3>
<table>
<thead>
<tr>
<th>命令</th>
<th>功能</th>
<th>使用场景</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>vlan batch 10 20</code></td>
<td>创建VLAN</td>
<td>批量创建多个VLAN</td>
</tr>
<tr>
<td><code>port link-type access</code></td>
<td>设接口类型</td>
<td>连接PC的端口</td>
</tr>
<tr>
<td><code>port default vlan 10</code></td>
<td>加入VLAN</td>
<td>把端口加入指定VLAN</td>
</tr>
<tr>
<td><code>port link-type trunk</code></td>
<td>设Trunk端口</td>
<td>连接路由器/交换机的端口</td>
</tr>
<tr>
<td><code>port trunk allow-pass vlan 10 20</code></td>
<td>允许VLAN通过</td>
<td>Trunk端口允许哪些VLAN</td>
</tr>
<tr>
<td><code>display vlan</code></td>
<td>查看VLAN信息</td>
<td>验证VLAN配置</td>
</tr>
</tbody>
</table>
<h3>其他命令</h3>
<table>
<thead>
<tr>
<th>命令</th>
<th>功能</th>
<th>使用场景</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ping x.x.x.x</code></td>
<td>测试连通性</td>
<td>验证网络是否通</td>
</tr>
<tr>
<td><code>dhcp enable</code></td>
<td>开启DHCP</td>
<td>路由器当DHCP服务器</td>
</tr>
<tr>
<td><code>dhcp select interface</code></td>
<td>基于接口DHCP</td>
<td>自动分配接口网段IP</td>
</tr>
<tr>
<td><code>acl 2000</code></td>
<td>创建ACL</td>
<td>访问控制列表</td>
</tr>
<tr>
<td><code>traffic-filter outbound acl 2000</code></td>
<td>应用ACL</td>
<td>在接口应用ACL规则</td>
</tr>
</tbody>
</table>
<hr />
<h2>学命令的几个建议</h2>
<h3>1. 跟着做实验，别只看文章</h3>
<p>看完这篇文章，打开eNSP，自己搭建拓扑，输入命令，验证效果。动手做一遍，比看十遍都管用。</p>
<h3>2. 命令记不住没关系，用多了自然记住</h3>
<p>刚开始不熟悉命令，可以查文章、查手册。做几个实验后，常用命令自然就记住了。没必要死记硬背。</p>
<h3>3. 先理解场景，再记命令</h3>
<p>每个命令都有使用场景。理解了场景（比如为什么要配静态路由），命令就有意义了。不理解场景，命令就是一堆字符。</p>
<h3>4. 验证效果很重要</h3>
<p>每个实验都做了验证（ping测试、查看配置）。不验证，不知道配置是否生效。养成验证的习惯。</p>
<hr />
<p>这篇文章用6个实验演示了eNSP常用命令。跟着做一遍，基本就学会了。下次遇到类似场景，直接照着配置就行。</p>
<hr />
<h2>实验一：给路由器改名、配IP地址</h2>
<p>这是最基础的配置，任何设备第一步都是改名和配IP。</p>
<h3>实验场景</h3>
<p>一台路由器，命名为R1，给接口配IP地址192.168.1.1/24。</p>
<h3>拓扑搭建</h3>
<ol>
<li>打开eNSP，新建拓扑</li>
<li>拖入一台路由器（AR2220）</li>
<li>启动路由器</li>
<li>双击路由器，进入命令行界面</li>
</ol>
<h3>配置步骤</h3>
<p><strong>第一步：进入系统视图</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]</code></pre>
<p>命令解释：</p>
<ul>
<li><code>system-view</code>：从用户视图进入系统视图（配置模式）</li>
<li>提示符从 <code>&lt;Huawei&gt;</code> 变成 <code>[Huawei]</code>，表示进入配置模式</li>
</ul>
<hr />
<p><strong>第二步：给路由器改名</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[Huawei]sysname R1
[R1]</code></pre>
<p>命令解释：</p>
<ul>
<li><code>sysname R1</code>：把设备名字改成R1</li>
<li>提示符变成 <code>[R1]</code>，说明改名成功</li>
</ul>
<hr />
<p><strong>第三步：进入接口视图</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]</code></pre>
<p>命令解释：</p>
<ul>
<li><code>interface GigabitEthernet 0/0/0</code>：进入GE0/0/0接口（路由器的第一个网口）</li>
<li>提示符变成 <code>[R1-GigabitEthernet0/0/0]</code>，表示在接口配置模式</li>
</ul>
<p>华为路由器的接口命名规则：</p>
<ul>
<li>GigabitEthernet = GE（千兆网口）</li>
<li>0/0/0 = 第0号槽位/第0号子卡/第0号接口</li>
</ul>
<hr />
<p><strong>第四步：配IP地址</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0]</code></pre>
<p>命令解释：</p>
<ul>
<li><code>ip address 192.168.1.1 24</code>：设置IP地址和子网掩码</li>
<li>24表示掩码位数（相当于255.255.255.0）</li>
</ul>
<p>也可以写成完整掩码：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 255.255.255.0</code></pre>
<hr />
<p><strong>第五步：查看配置结果</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1-GigabitEthernet0/0/0]display this
#
interface GigabitEthernet0/0/0
 ip address 192.168.1.1 255.255.255.0
#
return</code></pre>
<p>命令解释：</p>
<ul>
<li><code>display this</code>：查看当前视图的配置</li>
<li>显示GE0/0/0接口的配置，IP地址已经配置成功</li>
</ul>
<hr />
<h3>实验验证：查看接口状态</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display ip interface brief
*down: administratively down
!down: FIB overload down
...
Interface                   IP Address      Physical   Protocol  
GigabitEthernet0/0/0        192.168.1.1     up         up      </code></pre>
<p>命令解释：</p>
<ul>
<li><code>display ip interface brief</code>：查看所有接口的IP地址和状态</li>
<li>Physical = up（物理层正常）</li>
<li>Protocol = up（协议层正常）</li>
</ul>
<p>接口状态显示 <code>up up</code>，说明配置成功，接口正常工作。</p>
<hr />
<h2>实验二：两台路由器互通（静态路由）</h2>
<p>现在做个稍微复杂点的：两台路由器，配置静态路由让它们互通。</p>
<h3>实验场景</h3>
<p>两台路由器R1和R2，通过网线连接。R1的GE0/0/0接R2的GE0/0/0。</p>
<ul>
<li>R1：IP地址 192.168.1.1/24</li>
<li>R2：IP地址 192.168.1.2/24</li>
<li>目标：R1能ping通R2</li>
</ul>
<h3>拓扑搭建</h3>
<ol>
<li>拖入两台路由器（AR2220）</li>
<li>用Copper线连接R1的GE0/0/0和R2的GE0/0/0</li>
<li>启动两台路由器</li>
</ol>
<h3>R1配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0]quit</code></pre>
<hr />
<h3>R2配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R2
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.1.2 24
[R2-GigabitEthernet0/0/0]quit</code></pre>
<hr />
<h3>实验验证：互相ping</h3>
<p><strong>在R1上pingR2：</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]ping 192.168.1.2
PING 192.168.1.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 192.168.1.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 20/24/30 ms</code></pre>
<p>命令解释：</p>
<ul>
<li><code>ping 192.168.1.2</code>：测试连通性</li>
<li>显示5个Reply，说明ping成功</li>
<li>packet loss = 0.00%，没有丢包</li>
</ul>
<p><strong>在R2上ping R1：</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R2]ping 192.168.1.1
PING 192.168.1.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=20 ms
    ...
  --- 192.168.1.1 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss</code></pre>
<p>两边都能ping通，实验成功。</p>
<hr />
<h3>添加第三台路由器（需要静态路由）</h3>
<p>现在加一台R3，测试静态路由。</p>
<p>拓扑：</p>
<ul>
<li>R1（GE0/0/0） &#8212; （GE0/0/0）R2（GE0/0/1） &#8212; （GE0/0/0）R3</li>
<li>R1-GE0/0/0：192.168.1.1/24</li>
<li>R2-GE0/0/0：192.168.1.2/24</li>
<li>R2-GE0/0/1：192.168.2.1/24</li>
<li>R3-GE0/0/0：192.168.2.2/24</li>
</ul>
<p>问题：R1和R3不在同一个网段，直接ping不通，需要配置静态路由。</p>
<hr />
<h3>R3配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R3
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ip address 192.168.2.2 24</code></pre>
<hr />
<h3>R1配置静态路由</h3>
<p>R1要访问192.168.2.0网段（R3），需要告诉R1&#8243;去192.168.2.0找R2&#8243;。</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]ip route-static 192.168.2.0 24 192.168.1.2</code></pre>
<p>命令解释：</p>
<ul>
<li><code>ip route-static</code>：配置静态路由</li>
<li><code>192.168.2.0 24</code>：目标网段（R3所在的网段）</li>
<li><code>192.168.1.2</code>：下一跳地址（R2的IP，R1把数据发给R2）</li>
</ul>
<hr />
<h3>R3配置静态路由</h3>
<p>R3要访问192.168.1.0网段（R1），也需要配置路由：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R3]ip route-static 192.168.1.0 24 192.168.2.1</code></pre>
<p>命令解释：</p>
<ul>
<li>目标网段：192.168.1.0（R1所在的网段）</li>
<li>下一跳：192.168.2.1（R2的另一个接口）</li>
</ul>
<hr />
<h3>实验验证：R1pingR3</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]ping 192.168.2.2
PING 192.168.2.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.2.2: bytes=56 Sequence=1 ttl=254 time=50 ms
    Reply from 192.168.2.2: bytes=56 Sequence=2 ttl=254 time=40 ms
    ...

  --- 192.168.2.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss</code></pre>
<p>ttl=254（经过了一次路由转发，ttl减1），说明路由生效。</p>
<hr />
<h3>查看路由表</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 6        Routes : 6        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

192.168.1.0/24      Direct  0    0           D   192.168.1.1     GE0/0/0
192.168.1.1/32      Direct  0    0           D   127.0.0.1       GE0/0/0
192.168.2.0/24      Static  60   0          RD   192.168.1.2     GE0/0/0</code></pre>
<p>命令解释：</p>
<ul>
<li><code>display ip routing-table</code>：查看路由表</li>
<li>192.168.1.0/24 是直连路由（Direct），自己接口配置的</li>
<li>192.168.2.0/24 是静态路由（Static），我们刚才配置的</li>
</ul>
<hr />
<h2>实验三：交换机VLAN配置</h2>
<p>现在做交换机的VLAN实验，把不同接口划分到不同VLAN。</p>
<h3>实验场景</h3>
<p>一台交换机S1，三个接口：</p>
<ul>
<li>GE0/0/1：VLAN 10（部门A）</li>
<li>GE0/0/2：VLAN 20（部门B）</li>
<li>GE0/0/3：Trunk（连接路由器）</li>
</ul>
<h3>拓扑搭建</h3>
<ol>
<li>拖入一台交换机（S5700）</li>
<li>拖入两台PC（用PC代替部门A和部门B）</li>
<li>PC1接S1的GE0/0/1，PC2接S1的GE0/0/2</li>
</ol>
<h3>交换机配置</h3>
<p><strong>第一步：创建VLAN</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname S1
[S1]vlan batch 10 20</code></pre>
<p>命令解释：</p>
<ul>
<li><code>vlan batch 10 20</code>：批量创建VLAN 10和VLAN 20</li>
</ul>
<p>也可以单个创建：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]vlan 10
[S1-vlan10]quit
[S1]vlan 20
[S1-vlan20]quit</code></pre>
<hr />
<p><strong>第二步：接口加入VLAN</strong></p>
<p>把GE0/0/1加入VLAN 10：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]interface GigabitEthernet 0/0/1
[S1-GigabitEthernet0/0/1]port link-type access
[S1-GigabitEthernet0/0/1]port default vlan 10</code></pre>
<p>命令解释：</p>
<ul>
<li><code>port link-type access</code>：设置接口类型为Access（接入端口，连接PC）</li>
<li><code>port default vlan 10</code>：把接口加入VLAN 10</li>
</ul>
<p>把GE0/0/2加入VLAN 20：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]interface GigabitEthernet 0/0/2
[S1-GigabitEthernet0/0/2]port link-type access
[S1-GigabitEthernet0/0/2]port default vlan 20</code></pre>
<hr />
<p><strong>第三步：配置Trunk端口</strong></p>
<p>GE0/0/3连接路由器，需要配置为Trunk（允许多个VLAN通过）：</p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]interface GigabitEthernet 0/0/3
[S1-GigabitEthernet0/0/3]port link-type trunk
[S1-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20</code></pre>
<p>命令解释：</p>
<ul>
<li><code>port link-type trunk</code>：设置接口类型为Trunk（干道端口）</li>
<li><code>port trunk allow-pass vlan 10 20</code>：允许VLAN 10和20通过</li>
</ul>
<hr />
<h3>实验验证：查看VLAN配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[S1]display vlan
The total number of vlans is : 3
U: Up;         D: Down;         TG: Tagged;         UT: UnTagged;
MP: Vlan-mapping port;         ST: Vlan-stacking port;
...
VID  Type    Ports                           
10   common  UT:GE0/0/1              TG:GE0/0/3     
20   common  UT:GE0/0/2              TG:GE0/0/3     </code></pre>
<p>命令解释：</p>
<ul>
<li><code>display vlan</code>：查看VLAN信息</li>
<li>VID 10：GE0/0/1是Untagged（属于VLAN 10），GE0/0/3是Tagged（Trunk端口）</li>
<li>VID 20：GE0/0/2是Untagged（属于VLAN 20），GE0/0/3是Tagged</li>
</ul>
<hr />
<h2>实验四：OSPF动态路由（三台路由器）</h2>
<p>静态路由手动配置，适合小型网络。大型网络用动态路由，路由器自动学习路由表。</p>
<p>OSPF是最常用的动态路由协议。</p>
<h3>实验场景</h3>
<p>三台路由器R1、R2、R3，组成一个三角形拓扑：</p>
<ul>
<li>R1（GE0/0/0）192.168.1.1 &#8212; R2（GE0/0/0）192.168.1.2</li>
<li>R2（GE0/0/1）192.168.2.1 &#8212; R3（GE0/0/0）192.168.2.2</li>
<li>R1（GE0/0/1）192.168.3.1 &#8212; R3（GE0/0/1）192.168.3.2</li>
</ul>
<p>目标：配置OSPF，三台路由器自动学习路由表，互相ping通。</p>
<h3>配置思路</h3>
<ol>
<li>先配置各接口IP地址</li>
<li>启动OSPF进程</li>
<li>指定Router ID</li>
<li>把接口加入OSPF区域</li>
</ol>
<hr />
<h3>R1配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.3.1 24

[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255</code></pre>
<p>命令解释：</p>
<ul>
<li><code>ospf 1</code>：启动OSPF进程1</li>
<li><code>router-id 1.1.1.1</code>：指定Router ID（唯一标识，建议用IP地址格式）</li>
<li><code>area 0</code>：进入区域0（骨干区域）</li>
<li><code>network 192.168.1.0 0.0.0.255</code>：把192.168.1.0网段加入OSPF</li>
</ul>
<hr />
<h3>R2配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R2
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.1.2 24
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.2.1 24

[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255</code></pre>
<hr />
<h3>R3配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R3
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]ip address 192.168.3.2 24

[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255</code></pre>
<hr />
<h3>实验验证：查看OSPF邻居</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display ospf peer brief

OSPF Process 1 with Router ID 1.1.1.1
         Peer Brief Information
-------------------------------------------------------------------------------
Area Id          Interface                        Neighbor id      State    
0.0.0.0          GE0/0/0                          2.2.2.2          Full     
0.0.0.0          GE0/0/1                          3.3.3.3          Full     </code></pre>
<p>命令解释：</p>
<ul>
<li><code>display ospf peer brief</code>：查看OSPF邻居关系</li>
<li>State = Full（邻居关系建立成功）</li>
<li>R1有两个邻居：R2（2.2.2.2）和R3（3.3.3.3）</li>
</ul>
<hr />
<h3>实验验证：查看路由表</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 2        Routes : 2        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

192.168.2.0/24      OSPF    10   2           D   192.168.1.2     GE0/0/0
                    OSPF    10   2           D   192.168.3.2     GE0/0/1</code></pre>
<p>命令解释：</p>
<ul>
<li><code>display ip routing-table protocol ospf</code>：查看OSPF学习到的路由</li>
<li>192.168.2.0/24：OSPF自动学习的路由（Proto=OSPF）</li>
</ul>
<hr />
<h3>实验验证：ping测试</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]ping 192.168.2.2
PING 192.168.2.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.2.2: bytes=56 Sequence=1 ttl=254 time=50 ms
    ...

  --- 192.168.2.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss</code></pre>
<p>R1能ping通R3，OSPF路由生效。</p>
<hr />
<h2>实验五：DHCP自动分配IP地址</h2>
<p>路由器当DHCP服务器，给PC自动分配IP地址。</p>
<h3>实验场景</h3>
<p>路由器R1连接一台PC，R1当DHCP服务器，PC自动获取IP地址。</p>
<h3>拓扑搭建</h3>
<ol>
<li>拖入一台路由器（AR2220）</li>
<li>拖入一台PC</li>
<li>用Copper线连接</li>
</ol>
<h3>R1配置（DHCP服务器）</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24

[R1]dhcp enable
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]dhcp select interface
[R1-GigabitEthernet0/0/0]dhcp server dns-list 8.8.8.8</code></pre>
<p>命令解释：</p>
<ul>
<li><code>dhcp enable</code>：全局开启DHCP服务</li>
<li><code>dhcp select interface</code>：基于接口配置DHCP（自动分配该接口网段的IP）</li>
<li><code>dhcp server dns-list 8.8.8.8</code>：指定DNS服务器</li>
</ul>
<hr />
<h3>实验验证：PC获取IP地址</h3>
<p>在PC上：</p>
<ol>
<li>打开PC命令行</li>
<li>输入 <code>ipconfig</code>（查看IP地址）</li>
</ol>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">PC&gt;ipconfig

Link local IPv6 Address...........: fe80::20c:29ff:fef6:7e52
IPv6 Address......................: :: / 64
IPv4 Address......................: 192.168.1.254
Subnet Mask.......................: 255.255.255.0
Default Gateway...................: 192.168.1.1
DNS Server......................: 8.8.8.8</code></pre>
<p>PC自动获取了IP地址192.168.1.254，说明DHCP生效。</p>
<hr />
<h2>实验六：ACL访问控制列表</h2>
<p>ACL用来控制网络访问权限，比如禁止某个网段访问某个服务器。</p>
<h3>实验场景</h3>
<p>R1连接两个网段：</p>
<ul>
<li>192.168.1.0网段（部门A）</li>
<li>192.168.2.0网段（部门B）</li>
</ul>
<p>要求：禁止192.168.1.0网段ping192.168.2.0网段。</p>
<h3>拓扑搭建</h3>
<ol>
<li>拖入一台路由器（AR2220）</li>
<li>拖入两台PC（PC1和PC2）</li>
<li>R1的GE0/0/0接PC1，GE0/0/1接PC2</li>
</ol>
<h3>R1配置ACL</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">&lt;Huawei&gt;system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.2.1 24

[R1]acl 2000
[R1-acl-basic-2000]rule deny source 192.168.1.0 0.0.0.255
[R1-acl-basic-2000]rule permit source any

[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]traffic-filter outbound acl 2000</code></pre>
<p>命令解释：</p>
<ul>
<li><code>acl 2000</code>：创建基本ACL（编号2000-2999）</li>
<li><code>rule deny source 192.168.1.0 0.0.0.255</code>：禁止192.168.1.0网段</li>
<li><code>rule permit source any</code>：允许其他所有网段</li>
<li><code>traffic-filter outbound acl 2000</code>：在GE0/0/1出方向应用ACL</li>
</ul>
<hr />
<h3>实验验证：ping测试</h3>
<p><strong>PC1（192.168.1.x）pingPC2（192.168.2.x）：</strong></p>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">PC&gt;ping 192.168.2.10
Ping 192.168.2.10: 32 data bytes, Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.2.10:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)</code></pre>
<p>ping失败，100%丢包，ACL生效，192.168.1.0网段被禁止访问。</p>
<hr />
<h3>查看ACL配置</h3>
<pre class="overflow-auto rounded-lg border border-border bg-muted p-3 text-sm text-foreground"><code class="font-mono ">[R1]display acl 2000
Basic ACL 2000, 2 rules
Acl's step is 5
rule 5 deny source 192.168.1.0 0.0.0.255
rule 10 permit source any</code></pre>
<p>ACL规则已配置成功。</p>
<hr />
<h2>常用命令总结</h2>
<p>这篇文章做了6个实验，用到了这些核心命令：</p>
<h3>基础配置命令</h3>
<table>
<thead>
<tr>
<th>命令</th>
<th>功能</th>
<th>使用场景</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>system-view</code></td>
<td>进入系统视图</td>
<td>所有配置的第一步</td>
</tr>
<tr>
<td><code>sysname R1</code></td>
<td>改设备名</td>
<td>给路由器/交换机命名</td>
</tr>
<tr>
<td><code>interface GE0/0/0</code></td>
<td>进入接口视图</td>
<td>配置接口IP</td>
</tr>
<tr>
<td><code>ip address x.x.x.x 24</code></td>
<td>配IP地址</td>
<td>给接口配IP</td>
</tr>
<tr>
<td><code>display ip interface brief</code></td>
<td>查看接口状态</td>
<td>验证配置结果</td>
</tr>
<tr>
<td><code>display this</code></td>
<td>查看当前配置</td>
<td>查看刚配置的内容</td>
</tr>
<tr>
<td><code>quit</code></td>
<td>退出当前视图</td>
<td>返回上一级</td>
</tr>
</tbody>
</table>
<h3>路由配置命令</h3>
<table>
<thead>
<tr>
<th>命令</th>
<th>功能</th>
<th>使用场景</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ip route-static 目标网段掩码下一跳</code></td>
<td>配静态路由</td>
<td>手动指定路由</td>
</tr>
<tr>
<td><code>ospf 1 router-id x.x.x.x</code></td>
<td>启动OSPF</td>
<td>动态路由协议</td>
</tr>
<tr>
<td><code>network 网段反掩码</code></td>
<td>加入OSPF区域</td>
<td>声明参与OSPF的网段</td>
</tr>
<tr>
<td><code>display ip routing-table</code></td>
<td>查看路由表</td>
<td>查看所有路由</td>
</tr>
<tr>
<td><code>display ospf peer brief</code></td>
<td>查看OSPF邻居</td>
<td>验证邻居关系</td>
</tr>
</tbody>
</table>
<h3>交换机命令</h3>
<table>
<thead>
<tr>
<th>命令</th>
<th>功能</th>
<th>使用场景</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>vlan batch 10 20</code></td>
<td>创建VLAN</td>
<td>批量创建多个VLAN</td>
</tr>
<tr>
<td><code>port link-type access</code></td>
<td>设接口类型</td>
<td>连接PC的端口</td>
</tr>
<tr>
<td><code>port default vlan 10</code></td>
<td>加入VLAN</td>
<td>把端口加入指定VLAN</td>
</tr>
<tr>
<td><code>port link-type trunk</code></td>
<td>设Trunk端口</td>
<td>连接路由器/交换机的端口</td>
</tr>
<tr>
<td><code>port trunk allow-pass vlan 10 20</code></td>
<td>允许VLAN通过</td>
<td>Trunk端口允许哪些VLAN</td>
</tr>
<tr>
<td><code>display vlan</code></td>
<td>查看VLAN信息</td>
<td>验证VLAN配置</td>
</tr>
</tbody>
</table>
<h3>其他命令</h3>
<table>
<thead>
<tr>
<th>命令</th>
<th>功能</th>
<th>使用场景</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ping x.x.x.x</code></td>
<td>测试连通性</td>
<td>验证网络是否通</td>
</tr>
<tr>
<td><code>dhcp enable</code></td>
<td>开启DHCP</td>
<td>路由器当DHCP服务器</td>
</tr>
<tr>
<td><code>dhcp select interface</code></td>
<td>基于接口DHCP</td>
<td>自动分配接口网段IP</td>
</tr>
<tr>
<td><code>acl 2000</code></td>
<td>创建ACL</td>
<td>访问控制列表</td>
</tr>
<tr>
<td><code>traffic-filter outbound acl 2000</code></td>
<td>应用ACL</td>
<td>在接口应用ACL规则</td>
</tr>
</tbody>
</table>
<hr />
<h2>学命令的几个建议</h2>
<h3>1. 跟着做实验，别只看文章</h3>
<p>看完这篇文章，打开eNSP，自己搭建拓扑，输入命令，验证效果。动手做一遍，比看十遍都管用。</p>
<h3>2. 命令记不住没关系，用多了自然记住</h3>
<p>刚开始不熟悉命令，可以查文章、查手册。做几个实验后，常用命令自然就记住了。没必要死记硬背。</p>
<h3>3. 先理解场景，再记命令</h3>
<p>每个命令都有使用场景。理解了场景（比如为什么要配静态路由），命令就有意义了。不理解场景，命令就是一堆字符。</p>
<h3>4. 验证效果很重要</h3>
<p>每个实验都做了验证（ping测试、查看配置）。不验证，不知道配置是否生效。养成验证的习惯。</p>
<hr />
<p>这篇文章用6个实验演示了eNSP常用命令。跟着做一遍，基本就学会了。下次遇到类似场景，直接照着配置就行。</p>
<p><a href="https://www.dixunblog.cn/1733.html">eNSP常用配置命令实战：跟着做就能学会</a>最先出现在<a href="https://www.dixunblog.cn">帝讯博客</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dixunblog.cn/1733.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>eNSP路由器启动失败报40错误？原因和解决办法都在这儿了</title>
		<link>https://www.dixunblog.cn/1727.html</link>
					<comments>https://www.dixunblog.cn/1727.html#respond</comments>
		
		<dc:creator><![CDATA[老大]]></dc:creator>
		<pubDate>Fri, 24 Apr 2026 11:50:44 +0000</pubDate>
				<category><![CDATA[技术教程]]></category>
		<category><![CDATA[eNSP]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">https://www.dixunblog.cn/?p=1727</guid>

					<description><![CDATA[<p>学网络的人基本都用过eNSP，华为的模拟器，用来练路由器、交换机配置挺方便的。但很多人遇到过这么个问题：拓扑搭好了，设备拖进去了，点启动按钮，结果报错&#8221;启动失败，错误代码40&#8243;。 设备一直#号，连不上，没法做实验。折腾半天不知道哪儿出问题了。 这篇文章专门讲40错误的原因和解决办法。我总结了最常见的几种情况，基本覆盖了大部分人遇到的问题。 40错误到底是啥？ 40错误说白了，就是设备注册失败。 eNSP里的路由器、交换机，本质上是个虚拟机，运行在VirtualBox上（Oracle的虚拟化软</p>
<p><a href="https://www.dixunblog.cn/1727.html">eNSP路由器启动失败报40错误？原因和解决办法都在这儿了</a>最先出现在<a href="https://www.dixunblog.cn">帝讯博客</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>学网络的人基本都用过eNSP，华为的模拟器，用来练路由器、交换机配置挺方便的。但很多人遇到过这么个问题：拓扑搭好了，设备拖进去了，点启动按钮，结果报错&#8221;启动失败，错误代码40&#8243;。</p>
<p>设备一直#号，连不上，没法做实验。折腾半天不知道哪儿出问题了。</p>
<p>这篇文章专门讲40错误的原因和解决办法。我总结了最常见的几种情况，基本覆盖了大部分人遇到的问题。</p>
<hr />
<h2>40错误到底是啥？</h2>
<p><img decoding="async" class="size-full wp-image-1728 aligncenter" title="7353901493c6d837dd0659d108e2e7a0" src="http://cdn.hyclive.cn/dixunblog/2026/04/7353901493c6d837dd0659d108e2e7a0.png" alt="7353901493c6d837dd0659d108e2e7a0" width="1684" height="971" />40错误说白了，就是<strong>设备注册失败</strong>。</p>
<p>eNSP里的路由器、交换机，本质上是个虚拟机，运行在VirtualBox上（Oracle的虚拟化软件）。启动设备前，eNSP会先向VirtualBox&#8221;注册&#8221;这个设备，告诉它&#8221;我要启动这台虚拟机了&#8221;。</p>
<p>注册成功了，设备才能启动。注册失败，就会报40错误。</p>
<p>所以，40错误不是设备坏了，是注册环节出了问题。找到注册失败的原因，就能解决。</p>
<hr />
<h2>原因一：VirtualBox版本不对（最常见） ⭐⭐⭐⭐⭐</h2>
<p>这是40错误最常见的原因，占了七八成的情况。</p>
<p>eNSP对VirtualBox版本有要求，<strong>不是所有版本都能用</strong>。</p>
<h3>哪些版本能用？</h3>
<p>eNSP 1.3.00.100（目前最常用的版本）要求的VirtualBox版本：</p>
<ul>
<li><strong>推荐版本</strong>：VirtualBox 5.2.x（比如5.2.44，这是最后稳定版本）</li>
<li><strong>不推荐版本</strong>：VirtualBox 6.x、7.x（兼容性很差，容易40错误）</li>
</ul>
<p>很多人电脑上装了VirtualBox 6.1或者7.0（毕竟新版本看着功能更强），结果跟eNSP不兼容，设备注册就失败。</p>
<h3>怎么检查版本？</h3>
<p>打开VirtualBox，左上角菜单点&#8221;帮助&#8221; → &#8220;关于VirtualBox&#8221;，能看到版本号。</p>
<p>如果版本是6.x或者7.x，大概率这就是40错误的原因。</p>
<h3>怎么解决？</h3>
<p><strong>卸载现有VirtualBox，安装5.2.x版本</strong>。</p>
<p>下载地址：<a href="https://www.virtualbox.org/wiki/Download_Old_Builds_5_2">https://www.virtualbox.org/wiki/Download_Old_Builds_5_2</a></p>
<p>选5.2.44（或者5.2.x系列的最新版），下载安装。</p>
<p>卸载的时候注意：</p>
<ol>
<li>先卸载VirtualBox（控制面板 → 程序和功能）</li>
<li>卸载完后，重启电脑（很重要，不重启可能残留文件）</li>
<li>安装VirtualBox 5.2.x</li>
<li>安装完，再重启一次</li>
<li>打开eNSP，重新注册设备（见原因二的解决方法）</li>
</ol>
<p>重启两次麻烦点，但能避免残留文件导致的二次问题。</p>
<hr />
<h2>原因二：设备没注册（容易忽略） ⭐⭐⭐⭐</h2>
<p>很多人忘了这一步：设备拖进拓扑后，需要先注册才能启动。</p>
<p>注册是告诉eNSP&#8221;这台设备准备好启动了&#8221;。不注册，直接点启动，就会40错误。</p>
<h3>怎么注册设备？</h3>
<p>步骤很简单：</p>
<ol>
<li>打开eNSP</li>
<li>菜单栏点击&#8221;工具&#8221; → &#8220;注册设备&#8221;</li>
<li>弹出的窗口里，勾选要注册的设备类型（路由器、交换机、防火墙等）</li>
<li>点&#8221;注册&#8221;按钮</li>
<li>等待注册完成（几秒钟）</li>
</ol>
<p>注册成功后，设备列表里会显示&#8221;已注册&#8221;状态。</p>
<p><strong>注意</strong>：每次新建拓扑，都需要注册设备。如果之前注册过，但后来重新安装了eNSP或VirtualBox，也需要重新注册。</p>
<p><img decoding="async" class="size-full wp-image-1729 aligncenter" title="be4f7790edd94eec407a15ce9d548c5d" src="http://cdn.hyclive.cn/dixunblog/2026/04/be4f7790edd94eec407a15ce9d548c5d.png" alt="be4f7790edd94eec407a15ce9d548c5d" width="1902" height="1037" /></p>
<hr />
<h2>原因三：Win11系统兼容性问题（新系统坑） ⭐⭐⭐⭐</h2>
<p>Win11出来后，很多人升级系统，发现eNSP用不了了，启动设备就报40错误。</p>
<p>特别是<strong>Win11 24H2版本</strong>（2024年下半年更新的版本），兼容性问题更严重。</p>
<h3>Win11哪儿有问题？</h3>
<p>主要两个原因：</p>
<ol>
<li><strong>Hyper-V虚拟化冲突</strong>：Win11默认开启了Hyper-V（微软自带的虚拟化功能），这会抢占虚拟化资源，导致VirtualBox无法正常工作</li>
<li><strong>内核隔离功能</strong>：Win11有内存完整性、内核隔离等安全功能，会拦截VirtualBox的某些操作</li>
</ol>
<h3>怎么解决Win11兼容性问题？</h3>
<p><strong>方法一：关闭Hyper-V</strong></p>
<ol>
<li>按 <code>Win + R</code>，输入 <code>optionalfeatures</code></li>
<li>弹出的窗口里，找到&#8221;Hyper-V&#8221;</li>
<li>取消勾选&#8221;Hyper-V&#8221;（包括下面的子选项）</li>
<li>点&#8221;确定&#8221;，等待卸载完成</li>
<li>重启电脑</li>
</ol>
<p><strong>方法二：关闭内核隔离</strong></p>
<ol>
<li>打开Windows安全中心（任务栏盾牌图标）</li>
<li>点击&#8221;设备安全性&#8221; → &#8220;内核隔离详细信息&#8221;</li>
<li>关闭&#8221;内存完整性&#8221;</li>
<li>重启电脑</li>
</ol>
<p>两个方法都试试，一般能解决Win11的兼容性问题。</p>
<p><strong>如果还是不行</strong>，考虑退回Win10（或者装双系统，Win10专门跑eNSP）。Win10的兼容性比Win11好太多了。</p>
<hr />
<h2>原因四：防火墙或杀毒软件拦截 ⭐⭐⭐</h2>
<p>防火墙和杀毒软件可能拦截VirtualBox的网络通信，导致设备注册失败。</p>
<h3>怎么判断是防火墙的问题？</h3>
<p>如果关闭防火墙后，设备能启动了，那就是防火墙拦截导致的。</p>
<h3>怎么解决？</h3>
<p><strong>方法一：临时关闭防火墙</strong></p>
<ol>
<li>打开控制面板 → Windows Defender防火墙</li>
<li>点击&#8221;启用或关闭Windows Defender防火墙&#8221;</li>
<li>选择&#8221;关闭Windows Defender防火墙&#8221;（专用网络和公用网络都关）</li>
<li>点&#8221;确定&#8221;</li>
</ol>
<p>测试eNSP能否启动设备。如果能启动，说明防火墙确实是问题。</p>
<p><strong>注意</strong>：关闭防火墙只是测试，确认问题后，建议用方法二添加例外规则，而不是一直关着防火墙。</p>
<p><strong>方法二：添加防火墙例外规则</strong></p>
<ol>
<li>打开Windows Defender防火墙 → &#8220;允许应用通过防火墙&#8221;</li>
<li>点击&#8221;更改设置&#8221; → &#8220;允许其他应用&#8221;</li>
<li>添加VirtualBox的安装路径（比如 <code>C:\Program Files\Oracle\VirtualBox\VirtualBox.exe</code>）</li>
<li>勾选&#8221;专用&#8221;和&#8221;公用&#8221;</li>
<li>同样添加eNSP的安装路径</li>
</ol>
<p>杀毒软件（360、火绒等）也需要添加例外规则，具体操作看各软件设置。</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1730 aligncenter" title="4f79c8797481e1006491c11533dbfb51" src="http://cdn.hyclive.cn/dixunblog/2026/04/4f79c8797481e1006491c11533dbfb51.png" alt="4f79c8797481e1006491c11533dbfb51" width="1123" height="627" /></p>
<hr />
<h2>原因五：安装路径有中文或特殊字符 ⭐⭐</h2>
<p>eNSP和VirtualBox的安装路径，最好不要有中文、空格、特殊字符。</p>
<p>比如：</p>
<ul>
<li>❌ <code>C:\软件\eNSP</code></li>
<li>❌ <code>C:\Program Files (x86)\eNSP</code></li>
<li>✅ <code>C:\eNSP</code></li>
<li>✅ <code>D:\Network\eNSP</code></li>
</ul>
<p>路径有中文或特殊字符，可能导致注册设备时路径解析错误，40错误就来了。</p>
<h3>怎么解决？</h3>
<p>重新安装eNSP和VirtualBox，选择纯英文路径。</p>
<p>卸载步骤：</p>
<ol>
<li>卸载eNSP和VirtualBox</li>
<li>重启电脑</li>
<li>安装时，选择纯英文路径（比如 <code>C:\eNSP</code>、<code>C:\VirtualBox</code>）</li>
<li>安装完，重启一次</li>
<li>打开eNSP，注册设备</li>
</ol>
<hr />
<h2>原因六：启动设备太多，资源不足 ⭐⭐</h2>
<p>拓扑里设备太多（比如十几台路由器+交换机），同时启动，可能导致电脑资源不足（内存、CPU不够），注册失败。</p>
<h3>怎么判断是资源不足？</h3>
<p>启动设备时，电脑卡顿、响应慢，或者VirtualBox进程占用内存很高，可能就是资源不足。</p>
<h3>怎么解决？</h3>
<ol>
<li><strong>分批启动</strong>：不要一次性启动所有设备，先启动2-3台，等完全启动后，再启动下一批</li>
<li><strong>减少设备数量</strong>：拓扑不需要那么多设备，删掉一些冗余的</li>
<li><strong>增加电脑资源</strong>：关闭其他软件（浏览器、IDE等），释放内存和CPU</li>
</ol>
<p>路由器启动后，每台占用大概200-300MB内存。10台路由器就是2-3GB内存。电脑内存少于8GB的话，确实容易资源不足。</p>
<hr />
<h2>原因七：注册表残留问题（重新安装后） ⭐</h2>
<p>卸载eNSP或VirtualBox后，重新安装，有时候注册表里还有残留数据，导致设备注册失败。</p>
<h3>怎么解决？</h3>
<p>清理注册表残留：</p>
<ol>
<li>按 <code>Win + R</code>，输入 <code>regedit</code></li>
<li>找到以下路径：
<ul>
<li><code>HKEY_LOCAL_MACHINE\SOFTWARE\eNSP</code></li>
<li><code>HKEY_CURRENT_USER\SOFTWARE\eNSP</code></li>
</ul>
</li>
<li>右键删除整个eNSP文件夹</li>
<li>同样删除VirtualBox相关的注册表项：
<ul>
<li><code>HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\VirtualBox</code></li>
</ul>
</li>
<li>重启电脑</li>
<li>重新安装eNSP和VirtualBox</li>
</ol>
<p><strong>注意</strong>：操作注册表有一定风险，删除前确认路径正确。不懂注册表的话，可以用CCleaner这类工具自动清理。</p>
<hr />
<h2>一个完整的解决流程</h2>
<p>遇到40错误，按这个顺序排查：</p>
<h3>第一步：检查VirtualBox版本</h3>
<p>打开VirtualBox，看版本号。如果是6.x或7.x，卸载，安装5.2.x版本。</p>
<p>这是最常见的原因，先排除这个。</p>
<h3>第二步：注册设备</h3>
<p>菜单栏 → 工具 → 注册设备，勾选设备类型，点注册。</p>
<p>很多人忘了这一步，注册完就能启动了。</p>
<h3>第三步：检查Win11兼容性</h3>
<p>如果是Win11系统，关闭Hyper-V和内核隔离。</p>
<p>重启电脑，再测试。</p>
<h3>第四步：关闭防火墙测试</h3>
<p>临时关闭防火墙，测试能否启动设备。</p>
<p>如果能启动，说明防火墙拦截，添加例外规则。</p>
<h3>第五步：检查安装路径</h3>
<p>看eNSP和VirtualBox的安装路径，有中文或特殊字符就重新安装。</p>
<h3>第六步：分批启动设备</h3>
<p>拓扑设备多的话，分批启动，不要一次性全启动。</p>
<h3>第七步：清理注册表</h3>
<p>如果之前卸载重装过，清理注册表残留。</p>
<hr />
<h2>几个避坑建议</h2>
<h3>1. 别用太新的系统版本</h3>
<p>Win10比Win11兼容性好。Win11 24H2版本问题更多。如果eNSP是主要学习工具，建议用Win10，或者装双系统。</p>
<h3>2. 别用太新的VirtualBox版本</h3>
<p>VirtualBox 5.2.x是最稳定的版本。6.x、7.x看着新，但跟eNSP不兼容。老版本不一定差，关键是要适配。</p>
<h3>3. 安装路径用英文</h3>
<p>养成习惯，软件装纯英文路径，省得后面一堆编码问题。</p>
<h3>4. 注册设备别忘</h3>
<p>新建拓扑后，先注册设备，再启动。这个顺序搞错了，就会40错误。</p>
<h3>5. 别装一堆杀毒软件</h3>
<p>一个Windows Defender就够了。装了360、火绒、腾讯管家一堆软件，互相冲突，还拦截VirtualBox。</p>
<hr />
<h2>总结一下</h2>
<p>40错误的核心原因是<strong>设备注册失败</strong>。找到注册失败的原因，就能解决。</p>
<p>最常见的原因是VirtualBox版本不对（用了6.x或7.x版本），换回5.2.x版本基本能解决。</p>
<p>其次是忘记注册设备、Win11兼容性问题、防火墙拦截、安装路径有中文、资源不足、注册表残留。</p>
<p>按顺序排查：VirtualBox版本 → 注册设备 → Win11兼容性 → 防火墙 → 安装路径 → 设备数量 → 注册表。</p>
<p>遇到40错误别慌，基本都能解决。这篇文章覆盖了大部分情况，按步骤排查，基本能找到问题。</p>
<p>如果还有其他错误代码（比如41、42），解决方法差不多，都是注册环节出了问题。核心思路是一样的。</p>
<p><a href="https://www.dixunblog.cn/1727.html">eNSP路由器启动失败报40错误？原因和解决办法都在这儿了</a>最先出现在<a href="https://www.dixunblog.cn">帝讯博客</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dixunblog.cn/1727.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>最强华为eNSP安装教程（100%成功）—— 含全版本安装包+避坑指南</title>
		<link>https://www.dixunblog.cn/1180.html</link>
					<comments>https://www.dixunblog.cn/1180.html#respond</comments>
		
		<dc:creator><![CDATA[老大]]></dc:creator>
		<pubDate>Sat, 28 Feb 2026 08:04:17 +0000</pubDate>
				<category><![CDATA[电脑软件]]></category>
		<category><![CDATA[eNSP]]></category>
		<category><![CDATA[华为模拟器]]></category>
		<guid isPermaLink="false">https://www.dixunblog.cn/?p=1180</guid>

					<description><![CDATA[<p>你是否遇到这些问题？ ❌ eNSP安装失败？依赖项报错？ ❌ Win11/Win10不兼容？无法启动AR路由器？ ❌ VirtualBox冲突？Wireshark抓包失败？ 别担心！这份全网最详细的eNSP保姆级教程，从下载、安装到排错一步到位，解决所有常见问题！ 一、 安装前必读（避免踩坑！） 📢 重要提醒： 适用系统：Win10（推荐）、Win11（需额外设置，后面会讲） 关闭杀毒软件！华为模拟器可能被误报（安装后恢复） 安装路径不要有中文！否则会报错！ ⚠ 依赖组件（必须安装！否则eNSP无法正常运行）： ✅</p>
<p><a href="https://www.dixunblog.cn/1180.html">最强华为eNSP安装教程（100%成功）—— 含全版本安装包+避坑指南</a>最先出现在<a href="https://www.dixunblog.cn">帝讯博客</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>你是否遇到这些问题？<br />
❌ eNSP安装失败？依赖项报错？<br />
❌ Win11/Win10不兼容？无法启动AR路由器？<br />
❌ VirtualBox冲突？Wireshark抓包失败？</p>
<p><strong>别担心！这份全网最详细的eNSP保姆级教程，从下载、安装到排错一步到位，解决所有常见问题！</strong></p>
<h2 id="一-安装前必读避免踩坑"><strong>一、 安装前必读（避免踩坑！）</strong></h2>
<p>📢 <strong>重要提醒</strong>：</p>
<ul>
<li><strong>适用系统</strong>：Win10（推荐）、Win11（需额外设置，后面会讲）</li>
<li><strong>关闭杀毒软件</strong>！华为模拟器可能被误报（安装后恢复）</li>
<li><strong>安装路径不要有中文</strong>！否则会报错！</li>
</ul>
<p>⚠ <strong>依赖组件</strong>（必须安装！否则eNSP无法正常运行）：</p>
<p>✅ <strong>VirtualBox</strong>（eNSP依赖的虚拟机环境）<br />
✅ <strong>WinPcap</strong>（抓包工具依赖）<br />
✅ <strong>Wireshark</strong>（可选，但推荐安装）</p>
<p>✅<strong>eNSP（必须）</strong></p>
<h2 id="二安装包获取方式">二、安装包获取方式</h2>
<h3 id="1夸克网盘提取">1、夸克网盘提取</h3>
<p>我用夸克网盘给你分享了「ensp安装包」，点击链接或复制整段内容，打开「夸克APP」即可获取。 /~88243LpUsq~:/</p>
<p>链接：<a href="https://pan.quark.cn/s/3777c8e9ff20">https://pan.quark.cn/s/3777c8e9ff20</a></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1208" title="1761292203589-9b1ee78c-1990-4ab6-9faa-abd852b2a887-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292203589-9b1ee78c-1990-4ab6-9faa-abd852b2a887-1.png" alt="1761292203589-9b1ee78c-1990-4ab6-9faa-abd852b2a887-1" width="770" height="197" /></p>
<p><strong>（内含3个依赖组件和eNSP安装包，全部下载）</strong></p>
<h2 id="三详细安装步骤图文版">三、<strong>详细安装步骤（图文版）</strong></h2>
<h3 id="1安装winpcap">1、安装WinPcap</h3>
<p>双击打开安装包文件 “WinPcap_4_1_3.exe” ，无脑下一步即可（Win10/Win11都兼容）</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1210" title="1761292606246-f7580c05-611d-4e57-9025-7d2f7968b549-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292606246-f7580c05-611d-4e57-9025-7d2f7968b549-1.png" alt="1761292606246-f7580c05-611d-4e57-9025-7d2f7968b549-1" width="233" height="40" /></p>
<p>出现弹窗，点击“Next”。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1209" title="1761292533240-40de17e1-b087-4226-853b-414ae74590b9" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292533240-40de17e1-b087-4226-853b-414ae74590b9.png" alt="1761292533240-40de17e1-b087-4226-853b-414ae74590b9" width="631" height="482" /><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1211" title="1761292551345-2ee4f348-febd-4edb-a20c-632395d2ce99" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292551345-2ee4f348-febd-4edb-a20c-632395d2ce99.png" alt="1761292551345-2ee4f348-febd-4edb-a20c-632395d2ce99" width="627" height="480" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1212" title="1761292567024-62256950-02e1-442c-9528-f1bad13a2a3d" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292567024-62256950-02e1-442c-9528-f1bad13a2a3d.png" alt="1761292567024-62256950-02e1-442c-9528-f1bad13a2a3d" width="623" height="489" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1213" title="1761292594060-894bcb01-2b9c-4232-97d9-fac0d0403fff" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292594060-894bcb01-2b9c-4232-97d9-fac0d0403fff.png" alt="1761292594060-894bcb01-2b9c-4232-97d9-fac0d0403fff" width="623" height="470" /></p>
<h3 id="2安装wireshark网络抓包分析工具"><strong>2、安装Wireshark（网络抓包分析工具）</strong></h3>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1215" title="1761292977106-1a801a6d-23b7-43e5-ba61-ef60f17b44ff-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292977106-1a801a6d-23b7-43e5-ba61-ef60f17b44ff-1.png" alt="1761292977106-1a801a6d-23b7-43e5-ba61-ef60f17b44ff-1" width="679" height="45" /></p>
<p>运行 <code>**Wireshark-win64-2.6.6.exe**</code></p>
<p>点击Next。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1214" title="1761293067800-9bd4e03a-78bf-4afc-857e-869854a66caf" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293067800-9bd4e03a-78bf-4afc-857e-869854a66caf.png" alt="1761293067800-9bd4e03a-78bf-4afc-857e-869854a66caf" width="636" height="477" /></p>
<p>点击“I Agrre”。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1216" title="1761293078388-1c2daf31-bdfa-4f34-a174-32d48eb1abf5-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293078388-1c2daf31-bdfa-4f34-a174-32d48eb1abf5-1.png" alt="1761293078388-1c2daf31-bdfa-4f34-a174-32d48eb1abf5-1" width="629" height="490" /></p>
<p>这里默认即可，继续Next。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1217" title="1761293089152-d41d9ec0-e907-4c46-85db-e0c52bd9a950-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293089152-d41d9ec0-e907-4c46-85db-e0c52bd9a950-1.png" alt="1761293089152-d41d9ec0-e907-4c46-85db-e0c52bd9a950-1" width="632" height="495" /><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1218" title="1761293097127-432eaa73-38c5-409f-96ec-9f37e22f52c8-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293097127-432eaa73-38c5-409f-96ec-9f37e22f52c8-1.png" alt="1761293097127-432eaa73-38c5-409f-96ec-9f37e22f52c8-1" width="636" height="483" /></p>
<p>选择自定义路径</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1219" title="1761293106650-1d013013-784a-4c31-b4e4-7671dcccf895-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293106650-1d013013-784a-4c31-b4e4-7671dcccf895-1.png" alt="1761293106650-1d013013-784a-4c31-b4e4-7671dcccf895-1" width="624" height="487" /></p>
<p>点击Next。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1220" title="1761293119043-3ddd9797-36ce-4ff3-a7aa-ef79410ebebe-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293119043-3ddd9797-36ce-4ff3-a7aa-ef79410ebebe-1.png" alt="1761293119043-3ddd9797-36ce-4ff3-a7aa-ef79410ebebe-1" width="629" height="475" /></p>
<p>点击“Install”，开始安装。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1221" title="1761293141750-b16f6ec9-4d71-46f0-8afd-cd316b6fdfe9-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293141750-b16f6ec9-4d71-46f0-8afd-cd316b6fdfe9-1.png" alt="1761293141750-b16f6ec9-4d71-46f0-8afd-cd316b6fdfe9-1" width="655" height="496" /></p>
<p>完成安装</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1222" title="1761293286135-8aa70a92-b53c-4ad6-ac69-b83701c7a8ce-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293286135-8aa70a92-b53c-4ad6-ac69-b83701c7a8ce-1.png" alt="1761293286135-8aa70a92-b53c-4ad6-ac69-b83701c7a8ce-1" width="641" height="490" /></p>
<h3 id="3安装virtualbox关键"><strong>3、安装VirtualBox（关键！）</strong></h3>
<p><strong>以管理员身份运行</strong> <code>VirtualBox-5.2.26-128414-Win.exe</code></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1223" title="1761292667784-2e3135d4-5aae-4858-9e4a-5ce7957ac3d1-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292667784-2e3135d4-5aae-4858-9e4a-5ce7957ac3d1-1.png" alt="1761292667784-2e3135d4-5aae-4858-9e4a-5ce7957ac3d1-1" width="619" height="34" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1224" title="1761292832290-77a6fd57-3f49-4854-966e-966c9b6588bd-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292832290-77a6fd57-3f49-4854-966e-966c9b6588bd-1.png" alt="1761292832290-77a6fd57-3f49-4854-966e-966c9b6588bd-1" width="624" height="478" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1226" title="1761292887746-b6731c8e-7a1a-4ddf-9674-f7897b855aa8-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292887746-b6731c8e-7a1a-4ddf-9674-f7897b855aa8-1.png" alt="1761292887746-b6731c8e-7a1a-4ddf-9674-f7897b855aa8-1" width="750" height="429" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1225" title="1761292877001-3be098f0-d284-4ccb-8239-5222e3187329-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292877001-3be098f0-d284-4ccb-8239-5222e3187329-1.png" alt="1761292877001-3be098f0-d284-4ccb-8239-5222e3187329-1" width="717" height="469" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1228" title="1761292898714-22ae9639-6b3a-4a93-8008-0db95890d488-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292898714-22ae9639-6b3a-4a93-8008-0db95890d488-1.png" alt="1761292898714-22ae9639-6b3a-4a93-8008-0db95890d488-1" width="750" height="439" /><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1227" title="1761292904492-0b64e812-e088-4c10-a55a-11d90b216f3f-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292904492-0b64e812-e088-4c10-a55a-11d90b216f3f-1.png" alt="1761292904492-0b64e812-e088-4c10-a55a-11d90b216f3f-1" width="753" height="433" /></p>
<p>选择安装<img loading="lazy" decoding="async" class="alignnone size-full wp-image-1229" title="1761292909759-cd0accd2-7688-4582-8b91-0e2b27f8f3bf-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761292909759-cd0accd2-7688-4582-8b91-0e2b27f8f3bf-1.png" alt="1761292909759-cd0accd2-7688-4582-8b91-0e2b27f8f3bf-1" width="748" height="247" /></p>
<h3 id="4安装ensp">4、安装eNSP</h3>
<p>双击“eNSP V100R003C00SPC100 Setup.exe”</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1230" title="1761293313520-881f66c4-ce7a-4078-8274-16ac08ae1d8b-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293313520-881f66c4-ce7a-4078-8274-16ac08ae1d8b-1.png" alt="1761293313520-881f66c4-ce7a-4078-8274-16ac08ae1d8b-1" width="504" height="41" /></p>
<p>默认选择中文，点击确定。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1231" title="1761293417430-4cdc46b5-57e4-4865-b616-9e5fa0202496-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293417430-4cdc46b5-57e4-4865-b616-9e5fa0202496-1.png" alt="1761293417430-4cdc46b5-57e4-4865-b616-9e5fa0202496-1" width="405" height="185" /></p>
<p>点击下一步。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1232" title="1761293450737-eda30c2f-5a8e-40e2-9da4-21541b5c4df6-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293450737-eda30c2f-5a8e-40e2-9da4-21541b5c4df6-1.png" alt="1761293450737-eda30c2f-5a8e-40e2-9da4-21541b5c4df6-1" width="672" height="465" /></p>
<p>接受协议 → <code>**下一步**</code></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1233" title="1761293467620-2221f0d1-54da-40fc-9daf-f9ab7689e505-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293467620-2221f0d1-54da-40fc-9daf-f9ab7689e505-1.png" alt="1761293467620-2221f0d1-54da-40fc-9daf-f9ab7689e505-1" width="672" height="478" /></p>
<p><strong>安装路径不要有中文！</strong> （如 <code>D:\eNSP\</code>）</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1234" title="1761293511462-c2e38b64-0a71-4eb0-80b0-419b82745d01-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293511462-c2e38b64-0a71-4eb0-80b0-419b82745d01-1.png" alt="1761293511462-c2e38b64-0a71-4eb0-80b0-419b82745d01-1" width="662" height="472" /><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1235" title="1761293525373-b5649663-baca-4212-a5bf-cd4d32935274-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293525373-b5649663-baca-4212-a5bf-cd4d32935274-1.png" alt="1761293525373-b5649663-baca-4212-a5bf-cd4d32935274-1" width="671" height="468" /></p>
<p>勾选 <code>**创建桌面快捷方式**</code></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1236" title="1761293538999-8ae9e28d-902d-4570-8d1c-6e526be95c8f-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293538999-8ae9e28d-902d-4570-8d1c-6e526be95c8f-1.png" alt="1761293538999-8ae9e28d-902d-4570-8d1c-6e526be95c8f-1" width="662" height="474" /></p>
<p><strong>跳过依赖安装</strong>（因为前面已经装好了）</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1238" title="1761293549901-ab4bcce4-aaec-4890-b4c4-729a6dfbfa9f-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293549901-ab4bcce4-aaec-4890-b4c4-729a6dfbfa9f-1.png" alt="1761293549901-ab4bcce4-aaec-4890-b4c4-729a6dfbfa9f-1" width="670" height="480" /></p>
<p>点 <code>**安装**</code> → 完成后点 <code>**完成**</code></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1237" title="1761293560648-eea8c4f7-4a9e-450d-85f5-0afc0fe14d06-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293560648-eea8c4f7-4a9e-450d-85f5-0afc0fe14d06-1.png" alt="1761293560648-eea8c4f7-4a9e-450d-85f5-0afc0fe14d06-1" width="670" height="482" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1239" title="1761293901692-62f7ab76-d11e-4e96-b74f-a7e8b3cfe8df-1" src="http://cdn.hyclive.cn/dixunblog/2026/02/1761293901692-62f7ab76-d11e-4e96-b74f-a7e8b3cfe8df-1.png" alt="1761293901692-62f7ab76-d11e-4e96-b74f-a7e8b3cfe8df-1" width="672" height="482" /></p>

            <div class="download-box mg-b" id="download-box" ref="downloadBox">
            <div>
                
                <div class="down-ready">
                    <div class="download-list gujia" ref="gujia">
                        <div class="download-item">
                            <div class="download-thumb" style="'background-image: url();'">
                            </div>
                            <div class="download-rights">
                                <div class="download-rights-title"><span class="gujia-bg"></span></div>
                                <ul>
                                    <li><span class="gujia-bg"></span></li>
                                    <li><span class="gujia-bg"></span></li>
                                    <li><span class="gujia-bg"></span></li>
                                    <li><span class="gujia-bg"></span></li>
                                    <li><span class="gujia-bg"></span></li>
                                    <li><span class="gujia-bg"></span></li>
                                </ul>
                            </div>
                            <div class="download-info">
                            <div class="download-rights-title"><span class="gujia-bg"></span></div>
                                <ul>
                                </ul>
                                <div class="download-current">
                                    <div class=""></div>
                                </div>
                                <div class="download-button-box">
                                    <div class=""></div>
                                    <div class=""></div>
                                    <div class=""></div>
                                </div>
                            </div>
                        </div> 
                    </div>
                </div>
                <div class="download-list" v-cloak>
                    <div v-for="(item,index) in list" :class="'download-item b2-radius '+(item.current_user.can.allow ? 'allow-down' : 'not-allow-down')" v-show="picked == index" v-cloak>
                        <div class="download-rights" v-cloak>
                        <div class="download-rights-title"><i class="b2font b2-download-cloud-line1 "></i>下载权限</div><span class="mobile-show" @click="item.show_role = !item.show_role">查看</span>
                            <ul v-if="item.show_role">
                                <li v-for="right in item.rights" :class="right.lv == item.current_user.lv.lv.lv || right.lv == item.current_user.lv.vip.lv ? 'red' : ''">
                                    <div><span v-text="right.lv_name+'：'"></span></div>
                                    <div v-if="right.type == 'money'">￥<span v-text="right.value"></span></div>
                                    <div v-if="right.type == 'credit'"><i class="b2font b2-coin-line "></i><span v-text="right.value"></span></div>
                                    <div v-if="right.type == 'free'">免费下载</div>
                                    <div v-if="right.type == 'comment'">评论并刷新后下载</div>
                                    <div v-if="right.type == 'login'">登录后下载</div>
                                    
                                </li>
                            </ul>
                        </div>
                        
                        <div class="download-info">
                        <div class="download-rights-title"><span v-text="item.name"></span><a :href="item.view" target="_blank" class="download-view button empty text" v-if="item.view">查看演示<i class="b2font b2-arrow-right-s-line "></i></a></div>
                            <ul v-show="item.attrs.length >0">
                                <li v-for="attr in item.attrs">
                                    <span class="download-attr-name">{{attr.name}}：</span>
                                    <span v-html="attr.value"></span>
                                </li>
                            </ul>
                            <div class="download-current">
                                <span>您当前的等级为</span>
                                <span v-if="item.current_user.lv.lv" v-html="item.current_user.lv.lv.icon"></span>
                                <span v-if="item.current_user.lv.vip" v-html="item.current_user.lv.vip.icon"></span>
                                <div class="" v-if="!item.current_user.can.allow">
                                    <span v-if="item.current_user.can.type == 'login'">
                                    登录后免费下载<a href="javascript:void(0)" onclick="login.show = true;login.loginType = 1">登录</a>
                                    </span>
                                    <span v-else-if="item.current_user.lv.lv.lv == 'dark_room'">
                                    小黑屋反思中，不准下载！
                                    </span>
                                    <span v-else-if="item.current_user.can.type == 'comment'">
                                    评论后刷新页面下载<a href="#respond">评论</a>
                                    </span>
                                    <span v-else-if="item.current_user.lv.lv.lv == 'guest' && !item.current_user.guest">
                                        <span v-show="list[index].rights[0].lv == 'all'" v-cloak>支付<b><template v-if="item.current_user.can.type == 'credit'"><i class="b2font b2-coin-line "></i></template><template v-else>￥</template><i v-html="list[index].current_user.can.value"></i></b>以后下载</span>
                                        请先<a href="javascript:void(0)" onclick="login.show = true;login.loginType = 1">登录</a>
                                    </span>
                                    <span v-else-if="item.current_user.can.type == 'full'" class="green">
                                        您今天的下载次数（<b v-text="item.current_user.can.total_count"></b>次）用完了，请明天再来
                                    </span>
                                    <span v-else-if="item.current_user.can.type == 'credit'">
                                        支付积分<b><i class="b2font b2-coin-line "></i><i v-html="list[index].current_user.can.value"></i></b>以后下载<a href="javascript:void(0)" @click="credit(index)">立即支付</a>
                                    </span>
                                    <span v-else-if="item.current_user.can.type == 'money'">
                                        支付<b v-text="'￥'+list[index].current_user.can.value"></b>以后下载<a href="javascript:void(0)" @click="pay(index)">立即支付</a>
                                    </span>
                                    
                                    <span v-else>
                                        您当前的用户组不允许下载<a href="https://www.dixunblog.cn/vips" target="_blank">升级会员</a>
                                    </span>
                                </div>
                                <div class="" v-else>
                                    <span v-if="item.current_user.current_guest == 0 || item.current_user.can.free_down" class="green">
                                        您已获得下载权限
                                    </span>
                                    <span class="green" v-else>
                                        您可以每天下载资源<b v-text="item.current_user.can.total_count"></b>次，今日剩余<b v-text="item.current_user.can.count"></b>次
                                    </span>
                                </div>
                            </div>
                            <div class="download-button-box">
                                <button @click="go(b.link,item.current_user.can.allow,item,index)" class="button" v-text="b.name" v-for="b in item.button"></button>
                            </div>
                        </div>
                    </div>
                </div>
                </div>
            </div>
        <p><a href="https://www.dixunblog.cn/1180.html">最强华为eNSP安装教程（100%成功）—— 含全版本安装包+避坑指南</a>最先出现在<a href="https://www.dixunblog.cn">帝讯博客</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dixunblog.cn/1180.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
