{"id":15511,"date":"2023-03-11T13:37:36","date_gmt":"2023-03-11T13:37:36","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=15511"},"modified":"2024-02-16T10:32:59","modified_gmt":"2024-02-16T10:32:59","slug":"vm-network-nat-vs-bridge","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=15511","title":{"rendered":"VM network &#8211; NAT vs. Bridge"},"content":{"rendered":"<p><strong>NAT<\/strong>: Your guests will be hidden in a subnet behind your host.<\/p>\n<pre>\r\nNetwork <--> Host (192.168.1.1) <-|-> Guest 1 (192.168.2.1)\r\n                                  |-> Guest 2 (192.168.2.2)\r\n<\/pre>\n<p><strong>Bridge<\/strong>: Your guests will be in the same network as your host.<\/p>\n<pre>\r\nNetwork <--> Host (192.168.1.1) <-|-> Guest 1 (192.168.1.2)\r\n                                  |-> Guest 2 (192.168.1.3)\r\n<\/pre>\n<hr>\n<p><strong>Example<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.max-sperling.bplaced.net\/wp-content\/uploads\/2023\/03\/VM-network-NAT-vs.-Bridge.svg\" class=\"aligncenter\" \/><\/p>\n<p>Goal: You want to access the internet and the embedded device from the Host OS and the Guest OS.<\/p>\n<p>For accessing the internet, you should use a NAT. The office network (router) will provide a DHCP.<br \/>\n1. Host OS: Select automatic IP (via DHCP)<br \/>\n2. Hypervisor: Choose &#8216;NAT&#8217; as network type<br \/>\n3. Guest OS: Select automatic IP (via DHCP)<\/p>\n<p>For accessing the embedded device, you should use a Bridge. There will be no DHCP in that network.<br \/>\n1. Host OS: Enter static IP <sup>1<\/sup><br \/>\n2. Hypervisor: Choose &#8216;Bridge&#8217; as network type<br \/>\n3. Guest OS: Enter static IP <sup>1<\/sup><\/p>\n<p><sup>1<\/sup> Be careful that every participant has its unique IP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NAT: Your guests will be hidden in a subnet behind your host. Network Host (192.168.1.1) Guest 1 (192.168.2.1) |-> Guest<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[23],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/15511"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15511"}],"version-history":[{"count":1,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/15511\/revisions"}],"predecessor-version":[{"id":16783,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/15511\/revisions\/16783"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15511"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}