{"id":3073,"date":"2015-10-14T10:59:44","date_gmt":"2015-10-14T10:59:44","guid":{"rendered":"http:\/\/www.esds.co.in\/kb\/?p=3073"},"modified":"2015-10-14T11:06:33","modified_gmt":"2015-10-14T11:06:33","slug":"connecting-vm-nat-with-hyper-v","status":"publish","type":"post","link":"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/","title":{"rendered":"Connecting VM NAT with Hyper-V"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-3074\" src=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/10\/Connecting-VM-NAT-via-Hyper-V.png\" alt=\"Connecting VM NAT via Hyper-V\" width=\"674\" height=\"327\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/10\/Connecting-VM-NAT-via-Hyper-V.png 674w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/10\/Connecting-VM-NAT-via-Hyper-V-300x146.png 300w\" sizes=\"(max-width: 674px) 100vw, 674px\" \/><\/p>\n<ol>\n<li>Summary<\/li>\n<li>Creating a virtual switch<\/li>\n<li>Connection sharing<\/li>\n<\/ol>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_77 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#Summary\" >Summary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#Creating_a_Virtual_Switch\" >Creating a Virtual Switch<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#Name_this_virtual_switch_as_desired_and_press_%E2%80%9COK%E2%80%9D_Calling_it_%E2%80%9CNAT%E2%80%9D_sounds_like_a_good_name_%F0%9F%99%82\" >Name this virtual switch as desired and press \u201cOK\u201d. Calling it \u201cNAT\u201d sounds like a good name \ud83d\ude42 !<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#The_first_stage_is_complete_move_to_the_suite\" >The first stage is complete, move to the suite.<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#Connection_Sharing\" >Connection Sharing<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#Note_This_configuration_uses_the_principle_of_hosted_networks\" >Note: This configuration uses the principle of hosted networks.<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#Confirm_the_configuration_and_close_the_network_properties\" >Confirm the configuration and close the network properties.<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p style=\"text-align: justify;\">When you work in VMware Player or Workstation, it is possible to connect a VM in NAT network level. This allows the VM to hide on the physical host, while you can enjoy access to the local network that is connected to the physical host.<\/p>\n<p style=\"text-align: justify;\">But when you work in Hyper-V, this possibility isn\u2019t integrated. It can be a <span id=\"4d571fad-d797-4000-b16a-207c21eb31bd\" class=\"GINGER_SOFTWARE_mark\">problem especially<\/span> Hyper-V can be installed on <span id=\"681b3a61-a504-4059-b6ba-1e6480f833aa\" class=\"GINGER_SOFTWARE_mark\">client version<\/span> of Windows, i.e. <span id=\"cc19a914-1201-44d4-a3e4-f48d7b75e66e\" class=\"GINGER_SOFTWARE_mark\">to<\/span> say from Windows 8. In general with its workstation that acts as Hypervisor, it may connect to various networks (especially if it\u2019s a laptop). In some cases, the network connection is complicated. Specifically on the command line when to authenticate to a proxy for a web page and that one has no GUI.<\/p>\n<p>To work around this limitation and enjoy the NAT under Hyper-V, we will see here a whole technical functional flow.<\/p>\n<p>The aim is to create a new virtual switch \u201cInternal\u201d in the Hyper-V console, and then make a connection between the virtual and physical network card connected through connection sharing concept. Then simply put a virtual machine on the new virtual switch that will be called \u201cNAT\u201d and will get a DHCP address by, and will access the LAN through NAT!<\/p>\n<h1><span class=\"ez-toc-section\" id=\"Creating_a_Virtual_Switch\"><\/span>Creating a Virtual Switch<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<ol>\n<li>Open the Hyper-V Manager, and on the right pane in the \u201cActions\u201d Click \u201cVirtual Switch Manager\u201d.<\/li>\n<li>Click on \u201cNew Virtual Network Switch\u201d and select \u201cInternal\u201d.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Name_this_virtual_switch_as_desired_and_press_%E2%80%9COK%E2%80%9D_Calling_it_%E2%80%9CNAT%E2%80%9D_sounds_like_a_good_name_%F0%9F%99%82\"><\/span>Name this virtual switch as desired and press \u201cOK\u201d. Calling it \u201cNAT\u201d sounds like a good name \ud83d\ude42<span id=\"12ad78d4-e1d1-4739-a30b-e268a5a1e2f8\" class=\"GINGER_SOFTWARE_mark\"> !<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"The_first_stage_is_complete_move_to_the_suite\"><\/span>The first stage is complete, move to the <span id=\"1c9a3594-18e0-45c8-809f-06f26b2fb605\" class=\"GINGER_SOFTWARE_mark\">suite<\/span>.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h1><span class=\"ez-toc-section\" id=\"Connection_Sharing\"><\/span>Connection Sharing<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<ol>\n<li>On your host, go to Control Panel and click \u201cNetwork and Sharing Center\u201d.<\/li>\n<li>Select the card you want to make the connection (to connect \u201cNAT\u201d), such as \u201cWi-Fi\u201d.<\/li>\n<li>Double-Click the \u201cName of the Connection\u201d.<\/li>\n<li>The tab \u201cSharing &#8211; \u201cenable\u201d \u2013 Allow for other network users to connect through the Internet connection <span id=\"59f64629-6e47-4fd5-8874-e89019fcc18b\" class=\"GINGER_SOFTWARE_mark\">of<\/span> your computer.<\/li>\n<li>Select \u201c<span id=\"3d3e21a2-e8e6-4f0e-9bf2-45a9bc6d1933\" class=\"GINGER_SOFTWARE_mark\">vEthernet<\/span>\u201d (NAT) which is the virtual that has just been created.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Note_This_configuration_uses_the_principle_of_hosted_networks\"><\/span>Note: This configuration uses the principle of hosted networks.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Confirm_the_configuration_and_close_the_network_properties\"><\/span>Confirm the configuration and close the network properties.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre style=\"font-family: monospace; font-size: 0.99em; width: 99%; height: 50%; border: green 2px solid; color: yellow; background-color: #000000;\">Note: If you enable sharing on your Wi-Fi card, it will reconfigure the share on the Ethernet \r\nNetwork Card you should need to user it. The rocker is not automatic and sharing can be active\r\nonly one card for the same network.<\/pre>\n<p>It only remains to connect the virtual machine on the virtual switch called \u201cNAT\u201d and done!<\/p>\n<p>We can also see from this virtual machine, the DHCP is active and that address is received, while checking that one is output from the Wi-Fi network adapter to ping the Internet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you work in VMware Player or Workstation, it is possible to connect a VM in NAT network level. But when you look at Hyper-V, this possibility isn\u2019t integrated. So let\u2019s see how we can work around to make the impossibility to possibility!<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[670,671],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.9.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Connecting VM NAT with Hyper-V<\/title>\n<meta name=\"description\" content=\"While working with VMware Player\/Workstation, it&#039;s possible to connect VM in NAT network level. But in Hyper-V it isn\u2019t integrated. Let\u2019s see how to work around\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Connecting VM NAT with Hyper-V\" \/>\n<meta property=\"og:description\" content=\"While working with VMware Player\/Workstation, it&#039;s possible to connect VM in NAT network level. But in Hyper-V it isn\u2019t integrated. Let\u2019s see how to work around\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/\" \/>\n<meta property=\"og:site_name\" content=\"ESDS Official Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ESDSdc\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-14T10:59:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-10-14T11:06:33+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/10\/Connecting-VM-NAT-via-Hyper-V.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:site\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"ESDS Official Knowledgebase\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.esds.co.in\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/10\/Connecting-VM-NAT-via-Hyper-V.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#webpage\",\"url\":\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/\",\"name\":\"Connecting VM NAT with Hyper-V\",\"isPartOf\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#primaryimage\"},\"datePublished\":\"2015-10-14T10:59:44+00:00\",\"dateModified\":\"2015-10-14T11:06:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d6f54dbda254c30373f777c3afc1ee85\"},\"description\":\"While working with VMware Player\/Workstation, it's possible to connect VM in NAT network level. But in Hyper-V it isn\\u2019t integrated. Let\\u2019s see how to work around\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/connecting-vm-nat-with-hyper-v\/\",\"name\":\"Connecting VM NAT with Hyper-V\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d6f54dbda254c30373f777c3afc1ee85\",\"name\":\"Nilesh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0ee75c69a8018595f3d1cfb1fc7e524e?s=96&d=mm&r=g\",\"caption\":\"Nilesh\"},\"description\":\"IT tech writer for over 5 years, at ESDS I am to you for the web hosting sector news and technical insights. I also discuss in the context of substantive issues such as new programming languages, high-performance computing and open source.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/3073"}],"collection":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/comments?post=3073"}],"version-history":[{"count":5,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/3073\/revisions"}],"predecessor-version":[{"id":3079,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/3073\/revisions\/3079"}],"wp:attachment":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/media?parent=3073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/categories?post=3073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/tags?post=3073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}