Catalyst 9000v
<h3>1 Catalyst 9000v 添加指南</h3><p>本指南基于以下版本:</p>
<table>
<thead>
<tr>
<th>Catalyst 9000v 引导模式</th>
<th>EVE 镜像文件夹名称</th>
<th>下载文件名</th>
<th>版本</th>
<th>vCPU数</th>
<th>vRAM</th>
<th>端口数</th>
<th>控制台</th>
<th>NIC 类型</th>
<th>QEMU 版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>Regular UDAP</td>
<td>cat9kv-17.12.01-prd9</td>
<td>cat9kv-prd-17.12.01prd9.qcow2</td>
<td>17.10.01</td>
<td>4</td>
<td>18432M</td>
<td>9</td>
<td>telnet</td>
<td>e1000</td>
<td>5.2.0</td>
</tr>
<tr>
<td>Silicon 1 Q200</td>
<td>cat9kvq200-17.12.01-prd9</td>
<td>cat9kv-prd-17.12.01prd9.qcow2</td>
<td>17.12.01</td>
<td>4</td>
<td>12288M</td>
<td>25</td>
<td>telnet</td>
<td>e1000</td>
<td>5.2.0</td>
</tr>
<tr>
<td>Unified Access Data Plane UADP</td>
<td>cat9kvuadp-17.12.01-prd9</td>
<td>cat9kv-prd-17.12.01prd9.qcow2</td>
<td>17.12.01</td>
<td>4</td>
<td>18432M</td>
<td>25</td>
<td>telnet</td>
<td>e1000</td>
<td>5.2.0</td>
</tr>
</tbody>
</table>
<p><strong>说明</strong>:</p>
<ul>
<li>需确保 EVE Pro 版本 ≥ 5.0.1-142 或 EVE Community 版本 ≥ 5.0.1-24。</li>
<li>同一镜像文件(cat9kv-prd-17.12.01prd9.qcow2)可通过不同引导模式适配三种场景,差异如下:
<ul>
<li><strong>Regular UDAP</strong>:9 个端口(8 个网络接口 + 1 个管理接口)。</li>
<li><strong>Silicon 1 Q200</strong>:25 个端口(24 个网络接口 + 1 个管理接口)。</li>
<li><strong>Unified Access Data Plane UADP</strong>:25 个端口(24 个网络接口 + 1 个管理接口)。</li>
</ul>
</li>
<li>镜像来源于 Cisco CML 2.7 rrefplat-20240225-fcs.iso。</li>
</ul>
<h3>2 操作步骤</h3>
<ol>
<li><strong>创建镜像目录</strong>:<br />
通过 SSH 以 root 用户登录 EVE,根据引导模式创建对应目录并进入:</li>
</ol>
<pre><code class="language-text">mkdir /opt/unetlab/addons/qemu/cat9kv-17.12.01-prd9# 示例为 Regular UDAP 模式
cd /opt/unetlab/addons/qemu/cat9kv-17.12.01-prd9
</code></pre>
<ol start="2">
<li><strong>上传并重命名镜像</strong>:<br />
使用 FileZilla 或 WinSCP 将下载的 <code>.qcow2</code> 镜像上传至目标目录,并命名为 <code>virtioa.qcow2</code>:</li>
</ol>
<pre><code class="language-text">mv cat9kv-prd-17.12.01prd9.qcow2 virtioa.qcow2
</code></pre>
<ol start="3">
<li><strong>修复权限</strong>:<br />
执行权限修复命令确保 EVE-NG 识别镜像:</li>
</ol>
<pre><code class="language-text">/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
</code></pre>
<ol start="4">
<li><strong>启用高级功能(可选)</strong>:<br />
若需使用 BGP 路由等高级功能,通过 Catalyst CLI 配置许可证:</li>
</ol>
<pre><code class="language-text">cat9k-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
cat9k-1(config)#license boot level network-advantage addon dna-advantage
% use 'write' command to make license boot config take effect on next boot
cat9k-1(config)#end
cat9k-1#write
Building configuration...
cat9k-1#reload
WARNING:
Boot variable either does not exist or buffer is too small
This may impact autoboot of the router. Proceed with caution
Do you wish to proceed with reload anyway
</code></pre>
<h3>3 关键知识点总结</h3>
<ol>
<li><strong>环境要求</strong>:
<ul>
<li>仅支持 <strong>QEMU 5.2.0 及以上版本</strong>,低版本可能导致兼容性问题。</li>
<li>镜像资源占用较高(默认 4vCPU + 12-18GB 内存),需确保 EVE 主机具备足够资源。</li>
</ul>
</li>
<li><strong>引导模式与配置差异</strong>:
<ul>
<li><strong>端口数量</strong>:不同模式端口数不同(9 或 25 个),需根据实验室需求选择目录名称(如 <code>cat9kvq200</code> 对应 Q200 模式)。</li>
<li><strong>NIC 类型</strong>:固定为 <code>e1000</code>,无需手动调整。</li>
</ul>
</li>
<li><strong>镜像处理特点</strong>:
<ul>
<li>直接使用 <code>.qcow2</code> 镜像文件,无需通过 ISO 引导安装,简化步骤。</li>
<li>必须重命名镜像文件为 <code>virtioa.qcow2</code>,否则 EVE-NG 无法识别。</li>
</ul>
</li>
<li><strong>权限与许可证</strong>:
<ul>
<li>仅需一次权限修复,无需创建临时目录或删除中间文件。</li>
<li>高级功能(如 BGP)需手动配置许可证,重启后生效。</li>
</ul>
</li>
<li><strong>性能注意事项</strong>:
<ul>
<li>节点加载时间较长,建议单独分配资源避免卡顿。</li>
<li>生产环境中建议根据实际需求调整 vCPU 和内存(通过修改镜像配置文件实现)。</li>
</ul>
</li>
</ol>
<p>完成以上步骤后,Catalyst 9000v 镜像将出现在 EVE-NG 的节点列表中,支持拖入实验室进行网络仿真和高级功能测试。</p>
感谢大佬的不断分享! <p>感谢大佬</p>
感谢分享资源 <p>进来学习下</p>
页:
[1]