{"id":2304,"date":"2024-01-04T00:13:35","date_gmt":"2024-01-03T15:13:35","guid":{"rendered":"https:\/\/gotocloud.co.kr\/?p=2304"},"modified":"2024-01-04T00:36:14","modified_gmt":"2024-01-03T15:36:14","slug":"virtualbox-network-topology","status":"publish","type":"post","link":"https:\/\/gotocloud.co.kr\/?p=2304","title":{"rendered":"VirtualBox Network Topology"},"content":{"rendered":"<p>VirtualBox is a powerful x86 and AMD64\/Intel64 virtualization software(VBox for short), which can be used<br \/>\nto construct kinds of debug or test network environments. Sometimes, for the sake of security, some<br \/>\nvirtual hosts run parallely on the same physical platform to isolate each other, decrease complexity.<\/p>\n<h3>Network Adapter<\/h3>\n<p>VirtualBox provide 8 PCI network adapter for each virtual machine. 4 of them can be con\ufb01gured with<br \/>\nGUI, and all 8 adapters can be con\ufb01gured through command.<\/p>\n<p><a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/image.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2312\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/image-300x219.png\" alt=\"\" width=\"614\" height=\"448\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/image-300x219.png 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/image.png 665w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/a><\/p>\n<h3>Network Types<\/h3>\n<p>VirtualBox supports di\ufb00erent types of network con\ufb01guration similar to physical network con\ufb01guration.<\/p>\n<ul>\n<li>NAT(Network Adress Translation)<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">NAT is a default option when VirtualBox is installed. VirtualBox provides a NAT router and DHCP<br \/>\nservice for every virtual machine.<br \/>\nThe same IP address 10.0.2.15 is assigned to all virtual machines from the DHCP in the VirtualBox<br \/>\nand the default gateway address is 10.0.2.2.<br \/>\nAll virtual machines can access to the pyhsical network through the NAT provided by the virtualBox.<br \/>\nBut access to VM from the outside is not allowed.<\/p>\n<p style=\"padding-left: 40px;\"><a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2310\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT-300x204.jpg\" alt=\"\" width=\"575\" height=\"391\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT-300x204.jpg 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT-1024x695.jpg 1024w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT-768x521.jpg 768w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT.jpg 1026w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/a><\/p>\n<ul>\n<li>NAT Networking<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">All virtual machines are connected to the virtual switch and can access to the physical network<br \/>\nthrough the NAT like a wi\ufb01 router at home.<br \/>\nDi\ufb00erent from NAT, each virtual machine has di\ufb00erent IP address but shares the same gateway in the<br \/>\nVirtualBox. Each virtual machines can connect to each other.<\/p>\n<p style=\"padding-left: 40px;\"><a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT_Netwok.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2311\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT_Netwok-300x204.jpg\" alt=\"\" width=\"579\" height=\"394\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT_Netwok-300x204.jpg 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT_Netwok-768x521.jpg 768w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/NAT_Netwok.jpg 821w\" sizes=\"(max-width: 579px) 100vw, 579px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Bridged Networking<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">All virtual machines and host machine are bridged in the same ethernet segment. In other words, all<\/p>\n<p style=\"padding-left: 40px;\">virtual machines are connected to the physical network directly.<\/p>\n<p style=\"padding-left: 40px;\">In this networking, all virtual machines are accessible from the outside network.<\/p>\n<p style=\"padding-left: 40px;\"><a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Bridged_Netwok.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2307\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Bridged_Netwok-300x204.jpg\" alt=\"\" width=\"581\" height=\"395\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Bridged_Netwok-300x204.jpg 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Bridged_Netwok-1024x695.jpg 1024w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Bridged_Netwok-768x521.jpg 768w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Bridged_Netwok.jpg 1026w\" sizes=\"(max-width: 581px) 100vw, 581px\" \/><\/a><\/p>\n<ul>\n<li>Internal Networking<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">All virtual machines are connected to the virtual switch and can access each other but isolated from<\/p>\n<p style=\"padding-left: 40px;\">the host machine and outside network.<\/p>\n<p style=\"padding-left: 40px;\">All virtual machines can not access to the pyshical network and also the host machine can not access<\/p>\n<p style=\"padding-left: 40px;\">to all virtual machines.<\/p>\n<p style=\"padding-left: 40px;\"><a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Internal_Netwok.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2309\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Internal_Netwok-300x204.jpg\" alt=\"\" width=\"582\" height=\"396\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Internal_Netwok-300x204.jpg 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Internal_Netwok-1024x695.jpg 1024w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Internal_Netwok-768x521.jpg 768w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Internal_Netwok.jpg 1026w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/a><\/p>\n<ul>\n<li>Host-only Networking<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">All virtual machinesand host machine are connected to the virtual switch and can access each other<\/p>\n<p style=\"padding-left: 40px;\">but isolated from the outside network.<\/p>\n<p style=\"padding-left: 40px;\">The only di\ufb00erence is that the host machine is added into the internal network.<\/p>\n<p style=\"padding-left: 40px;\"><a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Host-only_Network.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2308\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Host-only_Network-300x204.jpg\" alt=\"\" width=\"582\" height=\"396\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Host-only_Network-300x204.jpg 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Host-only_Network-1024x695.jpg 1024w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Host-only_Network-768x521.jpg 768w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/Host-only_Network.jpg 1026w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/a><\/p>\n<h3><\/h3>\n<h3>Summary<\/h3>\n<p>In the VirtualBox, multiple network interfaces can be set up on one virtual machine. For example, one interface is attached to the NAT network and the other to the Host-only network. NAT network enables connection to the internet and the Host-only network enables the connection from the host machine to the virtual machine.<\/p>\n<p><a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/two-nic-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2313\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/two-nic-1-300x204.jpg\" alt=\"\" width=\"623\" height=\"423\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/two-nic-1-300x204.jpg 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/two-nic-1-1024x695.jpg 1024w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/two-nic-1-768x521.jpg 768w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2024\/01\/two-nic-1.jpg 1026w\" sizes=\"(max-width: 623px) 100vw, 623px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VirtualBox is a powerful x86 and AMD64\/Intel64 virtualization software(VBox for short), which can be used to construct kinds of debug or test network environments. Sometimes, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2308,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[407],"tags":[419,418,417,416],"_links":{"self":[{"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2304"}],"collection":[{"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2304"}],"version-history":[{"count":5,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2304\/revisions"}],"predecessor-version":[{"id":2317,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2304\/revisions\/2317"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/media\/2308"}],"wp:attachment":[{"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}