hbugs001 发表于 2025-12-6 22:51:55

Nexus 9000v交换机

<h1>1 添加思科Nexus 9000v交换机</h1>
<h2>1.1 本指南所基于的版本</h2>
<table>
<thead>
<tr>
<th>EVE镜像文件夹名称</th>
<th>下载文件名</th>
<th>版本</th>
<th>物理CPU核心数</th>
<th>虚拟内存(vRAM)</th>
<th>控制台</th>
</tr>
</thead>
<tbody>
<tr>
<td>nxosv9k-7.0.3.I7.4</td>
<td>nxosv9k-7.0.3.I7.4.qcow2</td>
<td>nxosv9k-7.0.3.I7.4</td>
<td>2</td>
<td>8192</td>
<td>Telnet</td>
</tr>
<tr>
<td>nxosv9k-9300v-9.3.9</td>
<td>nexus9300v.9.3.9.qcow2</td>
<td>nxosv9k-9300v-9.3.9</td>
<td>2</td>
<td>8192</td>
<td>Telnet</td>
</tr>
</tbody>
</table>
<p>注意:Nexus 9000v是资源占用非常高的节点,需要物理CPU核心,而不是线程。</p>
<h2>1.2 操作说明</h2>
<p>其他版本也可以按照以下步骤进行添加。对于其他版本,请使用正确的镜像文件夹名称。例如,Nexus 9300v 9.3.9版本的文件夹名称为nxosv9k-9300v-9.3.9,Nexus 9500v 9.3.9版本的文件夹名称为nxosv9k-9500v-9.3.9。</p>
<p>以下步骤基于nxosv-final.7.0.3.I7.4.qcow2镜像的创建,对于其他镜像部署,请分别使用相应的名称。</p>
<ol>
<li>通过SSH连接到EVE并以root身份登录,在命令行界面中,在EVE的根目录下创建临时工作目录:</li>
</ol>
<pre><code class="language-Bash">mkdir /opt/unetlab/addons/qemu/nxosv9k-7.0.3.I7.4/

</code></pre>
<ol start="2">
<li>使用FileZilla或WinSCP等工具,将下载的nxosv-final.7.0.3.I7.4.qcow2镜像上传到EVE的/opt/unetlab/addons/qemu/nxosv9k-7.0.3.I7.4/目录中。</li>
<li>在命令行进入创建的目录并重命名镜像:</li>
</ol>
<pre><code class="language-Bash">cd /opt/unetlab/addons/qemu/nxosv9k-7.0.3.I7.4/
mv nxosv-final.7.0.3.I7.4.qcow2 sataa.qcow2
</code></pre>
<ol start="4">
<li>修复权限:</li>
</ol>
<pre><code class="language-Bash">/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
</code></pre>
<h2>1.3 NX9K首次启动设置步骤</h2>
<ol>
<li>启动节点,在提示信息处进行如下回答:</li>
</ol>
<pre><code class="language-text">Abort Auto Provisioning and continue with normal setup ?(yes/no): yes
Do you want to enforce secure password standard (yes/no) no
Enter passwords for admin:
admin
admin
Would you like to enter the basic configuration dialog (yes/no): no
</code></pre>
<ol start="2">
<li>首次登录交换机:</li>
</ol>
<pre><code class="language-text">User Access Verification
login: admin
Password: admin
</code></pre>
<ol start="3">
<li>输入 <code>dir flash:</code>命令以获取正确的镜像名称,以便设置从该镜像启动nxos:</li>
</ol>
<pre><code class="language-Bash">switch# dir bootflash:
       4096    Apr 18 00:53:27 2017.rpmstore/
       4096    Apr 18 00:53:47 2017.swtam/
      14160    Apr 18 00:58:45 201720170418_005603_poap_26331_init.log
757307904    Feb 16 17:17:14 2017nxos.7.0.3.I7.4.bin
          0    Apr 18 01:00:14 2017platform-sdk.cmd
       4096    Apr 18 00:55:47 2017scripts/
       4096    Apr 18 00:55:57 2017virt_strg_pool_bf_vdc_1/
       4096    Apr 18 00:54:00 2017virtual-instance/
         59    Apr 18 00:53:52 2017virtual-instance.conf
</code></pre>
<ol start="4">
<li>进入全局配置模式:</li>
</ol>
<pre><code class="language-Bash">switch# conf t
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# boot nxos bootflash:nxos.7.0.3.I7.4.bin
end
copy run start
</code></pre>
<p>现在,NX9K 交换机在重启或停止节点后将正常启动。拓扑中每个新增的 NX9K 节点仅需执行一次上述 1-3 步骤!</p>
<h2>1.4 关键点总结</h2>
<ol>
<li>硬件资源:需分配 2 个物理 CPU 核心和 8192MB 虚拟内存,不可用线程替代物理核心。</li>
<li>镜像处理:上传镜像后需重命名为 sataa.qcow2,并执行权限修复命令。</li>
<li>首次启动:必须中止自动配置、关闭安全密码标准、跳过基础配置向导,且需通过命令指定启动镜像并保存配置。</li>
<li>版本适配:不同版本仅需调整镜像文件夹名称和对应镜像文件名,核心操作流程一致。</li>
</ol>

XIAOHUZHANG 发表于 2025-12-17 02:40:46

<p>正需要,感谢分享</p>
页: [1]
查看完整版本: Nexus 9000v交换机