Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 7, 2024
1 parent 8fbae9c commit 3021327
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 1 deletion.
34 changes: 34 additions & 0 deletions docs/main/_sources/contents/nodeconfig.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,40 @@ You will have provide all the necessary network information.
--type infiniband \
n001
VLAN
----

You can set the type also to ``vlan``.

Some network configuration systems use the network device name
(e.g., of the form ``eno1.100``)
to configure VLANs.
Other network systems need additional network tags:

- ``vlan_id``: configures the VLAN ID of the interface
- ``parent_device``: configures which physical interface to use

.. code-block:: shell
wwctl node set \
--netdev vlan42 \
--ipaddr 10.0.42.1 \
--netmask 255.255.252.0 \
--netname iband \
--type vlan \
--nettagadd "vlan_id=42,parent_device=eth0" \
n001
Static Routes
-------------

The included Warewulf network overlays support the configuration of static routes
using a network tag of the form ``route<N>=<dest>,<gateway>``.

.. code-block:: shell
wwctl node set n001 \
--nettagadd "route1=192.168.2.0/24,192.168.1.254"
Node Discovery
--------------
Expand Down
33 changes: 33 additions & 0 deletions docs/main/contents/nodeconfig.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
<li class="toctree-l3"><a class="reference internal" href="#configuring-the-node-s-kernel">Configuring the Node’s Kernel</a></li>
<li class="toctree-l3"><a class="reference internal" href="#configuring-the-node-s-network">Configuring the Node’s Network</a></li>
<li class="toctree-l3"><a class="reference internal" href="#additional-networks">Additional networks</a></li>
<li class="toctree-l3"><a class="reference internal" href="#vlan">VLAN</a></li>
<li class="toctree-l3"><a class="reference internal" href="#static-routes">Static Routes</a></li>
<li class="toctree-l3"><a class="reference internal" href="#node-discovery">Node Discovery</a></li>
</ul>
</li>
Expand Down Expand Up @@ -359,6 +361,37 @@ <h3>Additional networks<a class="headerlink" href="#additional-networks" title="
</pre></div>
</div>
</section>
<section id="vlan">
<h3>VLAN<a class="headerlink" href="#vlan" title="Link to this heading"></a></h3>
<p>You can set the type also to <code class="docutils literal notranslate"><span class="pre">vlan</span></code>.</p>
<p>Some network configuration systems use the network device name
(e.g., of the form <code class="docutils literal notranslate"><span class="pre">eno1.100</span></code>)
to configure VLANs.
Other network systems need additional network tags:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">vlan_id</span></code>: configures the VLAN ID of the interface</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">parent_device</span></code>: configures which physical interface to use</p></li>
</ul>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>wwctl<span class="w"> </span>node<span class="w"> </span><span class="nb">set</span><span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--netdev<span class="w"> </span>vlan42<span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--ipaddr<span class="w"> </span><span class="m">10</span>.0.42.1<span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--netmask<span class="w"> </span><span class="m">255</span>.255.252.0<span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--netname<span class="w"> </span>iband<span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--type<span class="w"> </span>vlan<span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--nettagadd<span class="w"> </span><span class="s2">&quot;vlan_id=42,parent_device=eth0&quot;</span><span class="w"> </span><span class="se">\</span>
<span class="w"> </span>n001
</pre></div>
</div>
</section>
<section id="static-routes">
<h3>Static Routes<a class="headerlink" href="#static-routes" title="Link to this heading"></a></h3>
<p>The included Warewulf network overlays support the configuration of static routes
using a network tag of the form <code class="docutils literal notranslate"><span class="pre">route&lt;N&gt;=&lt;dest&gt;,&lt;gateway&gt;</span></code>.</p>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>wwctl<span class="w"> </span>node<span class="w"> </span><span class="nb">set</span><span class="w"> </span>n001<span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--nettagadd<span class="w"> </span><span class="s2">&quot;route1=192.168.2.0/24,192.168.1.254&quot;</span>
</pre></div>
</div>
</section>
<section id="node-discovery">
<h3>Node Discovery<a class="headerlink" href="#node-discovery" title="Link to this heading"></a></h3>
<p>The hwaddr of a node can be automatically discovered by setting
Expand Down
2 changes: 1 addition & 1 deletion docs/main/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 3021327

Please sign in to comment.