<div dir="auto">Hi Michal<div dir="auto"><br></div><div dir="auto">Thank you for the clarification. Also I am sorry for being a bit salty. I will look more into the linux kernel bridge module.</div><div dir="auto"><br></div><div dir="auto">Best Regards</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 26 Oct 2022, 09:10 Michal Prívozník, <<a href="mailto:mprivozn@redhat.com">mprivozn@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/25/22 17:03, Armin Lepir wrote:<br>
> Hi <br>
> <br>
> I am using libvrt for the first time. Im building a KVM for multiple<br>
> Virtual OS instances.<br>
> <br>
> The problem i have is with your official documentation for Virtual<br>
> Networking.<br>
> <br>
> <a href="https://wiki.libvirt.org/page/VirtualNetworking" rel="noreferrer noreferrer" target="_blank">https://wiki.libvirt.org/page/VirtualNetworking</a><br>
> <<a href="https://wiki.libvirt.org/page/VirtualNetworking" rel="noreferrer noreferrer" target="_blank">https://wiki.libvirt.org/page/VirtualNetworking</a>><br>
> <br>
<br>
Please note that our wiki page is obsolete and we tried to move<br>
everything into our knowledge base articles:<br>
<br>
  <a href="https://libvirt.org/kbase/" rel="noreferrer noreferrer" target="_blank">https://libvirt.org/kbase/</a><br>
<br>
We're keeping the wiki around though, because maybe not everything was<br>
moved.<br>
<br>
> <br>
> The following is wrong:<br>
> <br>
> The default mode is BRIDGE + NAT.<br>
> <br>
> Optional mode is ROUTING.<br>
> <br>
> <br>
> It should be:<br>
> <br>
> The default mode is ROUTING + NAT.<br>
> <br>
> Optional mode is BRIDGE.<br>
> <br>
> <br>
> As far as i know a bridge operates on the Layer2.<br>
> <br>
> IP and NAT operate on the Layer3.<br>
> <br>
> NAT can not operate on the L2.<br>
> <br>
> Please tell me that im wrong and explain how am i wrong.<br>
<br>
If we'd be talking about bare metal network components then you are 100%<br>
correct. Except, the Linux bridge is more than just plain L2 bridge. It<br>
can have an IP address, route traffic, serve as network interface (when<br>
a host is sending a packet to a guest, the packet is injected into said<br>
bridge).<br>
<br>
What the wiki page is trying to say, that by default you'll get this<br>
'default' network which uses this Linux 'bridge' + NAT. Optionally, you<br>
can define new network, or modify the existing one to switch to so<br>
called routed mode.<br>
<br>
Hope this clears things up.<br>
<br>
Michal<br>
<br>
</blockquote></div>