Skip to content

Commit

Permalink
Deployed 8ec457e to dev with MkDocs 1.5.3 and mike 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
HHDocs committed Jan 25, 2024
1 parent d8da824 commit 347d179
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/search/search_index.json

Large diffs are not rendered by default.

Binary file modified dev/sitemap.xml.gz
Binary file not shown.
69 changes: 68 additions & 1 deletion dev/vlab/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,13 @@
Peering VPCs and testing connectivity
</a>

</li>

<li class="md-nav__item">
<a href="#using-vpcs-with-overlapping-subnets" class="md-nav__link">
Using VPCs with overlapping subnets
</a>

</li>

</ul>
Expand Down Expand Up @@ -1218,6 +1225,13 @@
Peering VPCs and testing connectivity
</a>

</li>

<li class="md-nav__item">
<a href="#using-vpcs-with-overlapping-subnets" class="md-nav__link">
Using VPCs with overlapping subnets
</a>

</li>

</ul>
Expand All @@ -1244,6 +1258,8 @@


<h1 id="demo-on-vlab">Demo on VLAB</h1>
<p>Goal of this demo is to show how to use VPCs, attach and peer them and test connectivity between the servers. Examples
are based on the default VLAB topology.</p>
<p>You can find instructions on how to setup VLAB in the <a href="../overview/">Overview</a> and <a href="../running/">Running VLAB</a> sections.</p>
<h2 id="default-topology">Default topology</h2>
<p>The default topology is Spine-Leaf with 2 spines, 2 MCLAG leafs and 1 non-MCLAG leaf.
Expand Down Expand Up @@ -1458,13 +1474,64 @@ <h2 id="peering-vpcs-and-testing-connectivity">Peering VPCs and testing connecti
</span><span id="__span-12-12"><a id="__codelineno-12-12" name="__codelineno-12-12" href="#__codelineno-12-12"></a><span class="l l-Scalar l-Scalar-Plain">rtt min/avg/max/mdev = 6.987/8.720/9.595/1.226 ms</span>
</span></code></pre></div>
</div>
<h2 id="using-vpcs-with-overlapping-subnets">Using VPCs with overlapping subnets</h2>
<p>First of all, we'll need to make sure that we have a second IPv4Namespace with the same subnet as default one:</p>
<div class="language-bash highlight"><pre><span></span><code><span id="__span-13-1"><a id="__codelineno-13-1" name="__codelineno-13-1" href="#__codelineno-13-1"></a>core@control-1<span class="w"> </span>~<span class="w"> </span>$<span class="w"> </span>kubectl<span class="w"> </span>get<span class="w"> </span>ipns
</span><span id="__span-13-2"><a id="__codelineno-13-2" name="__codelineno-13-2" href="#__codelineno-13-2"></a>NAME<span class="w"> </span>SUBNETS<span class="w"> </span>AGE
</span><span id="__span-13-3"><a id="__codelineno-13-3" name="__codelineno-13-3" href="#__codelineno-13-3"></a>default<span class="w"> </span><span class="o">[</span><span class="s2">&quot;10.0.0.0/16&quot;</span><span class="o">]</span><span class="w"> </span>24m
</span><span id="__span-13-4"><a id="__codelineno-13-4" name="__codelineno-13-4" href="#__codelineno-13-4"></a>
</span><span id="__span-13-5"><a id="__codelineno-13-5" name="__codelineno-13-5" href="#__codelineno-13-5"></a>core@control-1<span class="w"> </span>~<span class="w"> </span>$<span class="w"> </span>cat<span class="w"> </span><span class="s">&lt;&lt;EOF &gt; ipns-2.yaml</span>
</span><span id="__span-13-6"><a id="__codelineno-13-6" name="__codelineno-13-6" href="#__codelineno-13-6"></a><span class="s">apiVersion: vpc.githedgehog.com/v1alpha2</span>
</span><span id="__span-13-7"><a id="__codelineno-13-7" name="__codelineno-13-7" href="#__codelineno-13-7"></a><span class="s">kind: IPv4Namespace</span>
</span><span id="__span-13-8"><a id="__codelineno-13-8" name="__codelineno-13-8" href="#__codelineno-13-8"></a><span class="s">metadata:</span>
</span><span id="__span-13-9"><a id="__codelineno-13-9" name="__codelineno-13-9" href="#__codelineno-13-9"></a><span class="s"> name: ipns-2</span>
</span><span id="__span-13-10"><a id="__codelineno-13-10" name="__codelineno-13-10" href="#__codelineno-13-10"></a><span class="s"> namespace: default</span>
</span><span id="__span-13-11"><a id="__codelineno-13-11" name="__codelineno-13-11" href="#__codelineno-13-11"></a><span class="s">spec:</span>
</span><span id="__span-13-12"><a id="__codelineno-13-12" name="__codelineno-13-12" href="#__codelineno-13-12"></a><span class="s"> subnets:</span>
</span><span id="__span-13-13"><a id="__codelineno-13-13" name="__codelineno-13-13" href="#__codelineno-13-13"></a><span class="s"> - 10.0.0.0/16</span>
</span><span id="__span-13-14"><a id="__codelineno-13-14" name="__codelineno-13-14" href="#__codelineno-13-14"></a><span class="s">EOF</span>
</span><span id="__span-13-15"><a id="__codelineno-13-15" name="__codelineno-13-15" href="#__codelineno-13-15"></a>
</span><span id="__span-13-16"><a id="__codelineno-13-16" name="__codelineno-13-16" href="#__codelineno-13-16"></a>core@control-1<span class="w"> </span>~<span class="w"> </span>$<span class="w"> </span>kubectl<span class="w"> </span>apply<span class="w"> </span>-f<span class="w"> </span>ipns-2.yaml
</span><span id="__span-13-17"><a id="__codelineno-13-17" name="__codelineno-13-17" href="#__codelineno-13-17"></a>ipv4namespace.vpc.githedgehog.com/ipns-2<span class="w"> </span>created
</span><span id="__span-13-18"><a id="__codelineno-13-18" name="__codelineno-13-18" href="#__codelineno-13-18"></a>
</span><span id="__span-13-19"><a id="__codelineno-13-19" name="__codelineno-13-19" href="#__codelineno-13-19"></a>core@control-1<span class="w"> </span>~<span class="w"> </span>$<span class="w"> </span>kubectl<span class="w"> </span>get<span class="w"> </span>ipns
</span><span id="__span-13-20"><a id="__codelineno-13-20" name="__codelineno-13-20" href="#__codelineno-13-20"></a>NAME<span class="w"> </span>SUBNETS<span class="w"> </span>AGE
</span><span id="__span-13-21"><a id="__codelineno-13-21" name="__codelineno-13-21" href="#__codelineno-13-21"></a>default<span class="w"> </span><span class="o">[</span><span class="s2">&quot;10.0.0.0/16&quot;</span><span class="o">]</span><span class="w"> </span>30m
</span><span id="__span-13-22"><a id="__codelineno-13-22" name="__codelineno-13-22" href="#__codelineno-13-22"></a>ipns-2<span class="w"> </span><span class="o">[</span><span class="s2">&quot;10.0.0.0/16&quot;</span><span class="o">]</span><span class="w"> </span>8s
</span></code></pre></div>
<p>Let's assume that <code>vpc-1</code> already exists and is attached to <code>server-01</code> (see <a href="#creating-and-attaching-vpcs">Creating and attaching VPCs</a>).
Now we can create <code>vpc-3</code> with the same subnet as <code>vpc-1</code> (but in the different IPv4Namespace) and attach it to the
<code>server-03</code>:</p>
<div class="language-bash highlight"><pre><span></span><code><span id="__span-14-1"><a id="__codelineno-14-1" name="__codelineno-14-1" href="#__codelineno-14-1"></a>core@control-1<span class="w"> </span>~<span class="w"> </span>$<span class="w"> </span>cat<span class="w"> </span><span class="s">&lt;&lt;EOF &gt; vpc-3.yaml</span>
</span><span id="__span-14-2"><a id="__codelineno-14-2" name="__codelineno-14-2" href="#__codelineno-14-2"></a><span class="s">apiVersion: vpc.githedgehog.com/v1alpha2</span>
</span><span id="__span-14-3"><a id="__codelineno-14-3" name="__codelineno-14-3" href="#__codelineno-14-3"></a><span class="s">kind: VPC</span>
</span><span id="__span-14-4"><a id="__codelineno-14-4" name="__codelineno-14-4" href="#__codelineno-14-4"></a><span class="s">metadata:</span>
</span><span id="__span-14-5"><a id="__codelineno-14-5" name="__codelineno-14-5" href="#__codelineno-14-5"></a><span class="s"> name: vpc-1</span>
</span><span id="__span-14-6"><a id="__codelineno-14-6" name="__codelineno-14-6" href="#__codelineno-14-6"></a><span class="s"> namespace: default</span>
</span><span id="__span-14-7"><a id="__codelineno-14-7" name="__codelineno-14-7" href="#__codelineno-14-7"></a><span class="s">spec:</span>
</span><span id="__span-14-8"><a id="__codelineno-14-8" name="__codelineno-14-8" href="#__codelineno-14-8"></a><span class="s"> ipv4Namespace: ipns-2</span>
</span><span id="__span-14-9"><a id="__codelineno-14-9" name="__codelineno-14-9" href="#__codelineno-14-9"></a><span class="s"> subnets:</span>
</span><span id="__span-14-10"><a id="__codelineno-14-10" name="__codelineno-14-10" href="#__codelineno-14-10"></a><span class="s"> default:</span>
</span><span id="__span-14-11"><a id="__codelineno-14-11" name="__codelineno-14-11" href="#__codelineno-14-11"></a><span class="s"> dhcp:</span>
</span><span id="__span-14-12"><a id="__codelineno-14-12" name="__codelineno-14-12" href="#__codelineno-14-12"></a><span class="s"> enable: true</span>
</span><span id="__span-14-13"><a id="__codelineno-14-13" name="__codelineno-14-13" href="#__codelineno-14-13"></a><span class="s"> range:</span>
</span><span id="__span-14-14"><a id="__codelineno-14-14" name="__codelineno-14-14" href="#__codelineno-14-14"></a><span class="s"> start: 10.0.1.10</span>
</span><span id="__span-14-15"><a id="__codelineno-14-15" name="__codelineno-14-15" href="#__codelineno-14-15"></a><span class="s"> subnet: 10.0.1.0/24</span>
</span><span id="__span-14-16"><a id="__codelineno-14-16" name="__codelineno-14-16" href="#__codelineno-14-16"></a><span class="s"> vlan: &quot;2001&quot;</span>
</span><span id="__span-14-17"><a id="__codelineno-14-17" name="__codelineno-14-17" href="#__codelineno-14-17"></a><span class="s"> vlanNamespace: default</span>
</span><span id="__span-14-18"><a id="__codelineno-14-18" name="__codelineno-14-18" href="#__codelineno-14-18"></a><span class="s">EOF</span>
</span><span id="__span-14-19"><a id="__codelineno-14-19" name="__codelineno-14-19" href="#__codelineno-14-19"></a>
</span><span id="__span-14-20"><a id="__codelineno-14-20" name="__codelineno-14-20" href="#__codelineno-14-20"></a>core@control-1<span class="w"> </span>~<span class="w"> </span>$<span class="w"> </span>kubectl<span class="w"> </span>apply<span class="w"> </span>-f<span class="w"> </span>vpc-3.yaml
</span></code></pre></div>
<p>At that point you can setup networking on the <code>server-03</code> same as for <code>server-01</code> and <code>server-02</code> in a previous sections
and see that we have now <code>server-01</code> and <code>server-03</code> with the IP addresses from the same subnets.</p>

<hr>
<div class="md-source-file">
<small>

Last update:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">December 22, 2023</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">January 25, 2024</span>

<br>
Created:
Expand Down

1 comment on commit 347d179

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.