{"id":18934,"date":"2015-09-22T21:10:45","date_gmt":"2015-09-22T20:10:45","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=18934"},"modified":"2015-09-22T21:23:16","modified_gmt":"2015-09-22T20:23:16","slug":"configuring-windows-server-containers-to-use-dhcp-instead-of-nat","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=18934","title":{"rendered":"Configuring Windows Server Containers To Use DHCP Instead Of NAT"},"content":{"rendered":"<p>Read on if you want to learn how to connect Windows Server containers to an external virtual switch so that you don\u2019t use NAT, and the containers actually talk directly to the LAN via DHCP assigned addresses. You\u2019ll also see why a DHCP enabled container fails to get and address and ends up with a 169.254.x.x APIPA IPv4 configuration.<\/p>\n<p>If you use Microsoft\u2019s setup <a href=\"https:\/\/aidanfinn.com\/?p=18881\" target=\"_blank\">scripts<\/a> for Windows Server 2016 (WS2016) Technical Preview 3 (TPv3), the default configuration for container networking is that each VM host will have virtual switch (in the VM), connected the VM\u2019s vNIC. The virtual switch works in NAT mode, and uses a private network range to dynamically address containers that connect to the virtual switch. This set up requires each container to have NAT rules on the VM host so that external clients can connect to the services running in the containers. That \u2026 could be messy. In some terms, it could allow for huge network scalability (with tens of thousands of possible ports per VM host) but in others, it could be a nightmare to orchestrate.<\/p>\n<p>What if you wanted your containers to talk directly on the LAN. In other words: no NAT. Yes, your containers can do this, and it\u2019s known as a DHCP configuration \u2013 your containers are stateless so it\u2019s pointless assigning them static IP addresses; instead the containers will get their addressing from DHCP services on the LAN.<\/p>\n<p>Remember that there are two scripts that we can run to set up a VM host.<\/p>\n<ul>\n<li>Method 1: You download New-ContainerHost.ps1 and run it. This downloads a bunch of stuff, creates a VM host, and then runs Install-ContainerHost.ps1. By default, this will configure the VM host with NAT networking.<\/li>\n<li>Method 2: You create your own VM, download and run Install-ContainerHost.ps1. By default, you\u2019ll get NAT networking.<\/li>\n<\/ul>\n<p>But \u2026<\/p>\n<p>Install-ContainerHost.ps1 includes the option for a flag:<\/p>\n<h2><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image12.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; margin-right: auto; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image_thumb11.png\" alt=\"image\" width=\"300\" height=\"35\" border=\"0\" \/><\/a><\/h2>\n<p>If you use method 2 then you could run Install-ContainerHost in the new VM host with the -UseDHCP flag set to $true; the behaviour of the script will change. By default it creates the VM host\u2019s virtual switch in NAT mode. But enabling this flag creates an external virtual switch.<\/p>\n<p>In my lab, I like to create my VM hosts using New-ContainerHost because it\u2019s very quick (thanks to the use of differencing disks) and automates the entire setup. But New-ContainerHost doesn\u2019t include the option for UseDHCP. You <em>could<\/em> edit any call of Install-ContainerHost from New-ContainerHost, but I do it another way.<\/p>\n<p>Instead I edit Install-ContainerHost. One small change will do the trick. Not far from the top is where the parameters are set as script variables. Look for a line that reads:<\/p>\n<pre class=\"lang:default decode:true\">$UseDHCP,<\/pre>\n<p>Modify this line so it reads:<\/p>\n<pre class=\"lang:default decode:true\">$UseDHCP = $true,<\/pre>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image13.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; margin-right: auto; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image_thumb12.png\" alt=\"image\" width=\"550\" height=\"463\" border=\"0\" \/><\/a><\/p>\n<p>Now every time I either run Install-ContainerHost or New-ContainerHost I\u2019ll get the DHCP networking configuration instead of NATing.<\/p>\n<p>So try this to create\/configure a VM host, create a container, use Enter-PSSession to connect to the container, run IPConfig and \u2026 viola, you\u2019ll have no DHCP address. Say what?<\/p>\n<p>I was stumped. I tried it again. Nothing. I asked for help and by the time I got home, I got a tip from one of the folks in Redmond. It proved to be my \u201cI\u2019m a moron\u201d moment of the day. If I\u2019d thought about it, DHCP is all about broadcasts and MAC addresses. I have a single VLAN set up in the lab so broadcasts wasn\u2019t the issue. What\u2019s going on with MACs? A VM host has a MAC for itself. And then each container on the VM host that connects to the virtual switch has it\u2019s own MAC address \u2026 but the network sees only one interface. Have you figured it out yet?<\/p>\n<p>By default, Hyper-V has MAC spoofing disabled on every virtual NIC &#8211; a virtual NIC can only have 1 MAC address. What I needed to do was, at the host level, run the following to enable MAC spoofing on the VM host\u2019s virtual NIC:<\/p>\n<p>Get-VMNetworkAdapter -VMName containers3 | Set-vmNetworkAdapter -MacAddressSpoofing On<\/p>\n<p>Now everything works <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-smile\" style=\"border-style: none;\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/wlEmoticon-smile.png\" alt=\"Smile\" \/><\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:dea9c344-e13b-4dec-b7fc-c76c72541330\" class=\"wlWriterEditableSmartContent\" style=\"float: none; margin: 0px; display: inline; padding: 0px;\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Windows+Server+2016\" rel=\"tag\">Windows Server 2016<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Virtualisation\" rel=\"tag\">Virtualisation<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Containers\" rel=\"tag\">Containers<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Networking\" rel=\"tag\">Networking<\/a>,<a href=\"http:\/\/technorati.com\/tags\/PowerShell\" rel=\"tag\">PowerShell<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Scripting\" rel=\"tag\">Scripting<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Read on if you want to learn how to connect Windows Server containers to an external virtual switch so that you don\u2019t use NAT, and the containers actually talk directly to the LAN via DHCP assigned addresses. You\u2019ll also see why a DHCP enabled container fails to get and address and ends up with a &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=18934\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Configuring Windows Server Containers To Use DHCP Instead Of NAT&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18936,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_wpcom_ai_launchpad_first_post":false,"footnotes":""},"categories":[20],"tags":[143,181,80,87,189,195,137],"class_list":["post-18934","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hyper-v","tag-containers","tag-hyper-v","tag-networking","tag-powershell","tag-scripting","tag-virtualisation","tag-windows-server-2016"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"This post will show you how to connect WS2016 containers directly to the LAN using DHCP addresses instead of NAT\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"AFinn\"\/>\n\t<meta name=\"google-site-verification\" content=\"TDKjbi2McB2eLIfL6KwPB3aQqv5E-mbcb2QYIcovGaI\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/aidanfinn.com\/?p=18934\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Aidan Finn, IT Pro - A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...\" \/>\n\t\t<meta property=\"og:type\" content=\"activity\" \/>\n\t\t<meta property=\"og:title\" content=\"Configuring Windows Server Containers To Use DHCP Instead Of NAT | Aidan Finn, IT Pro\" \/>\n\t\t<meta property=\"og:description\" content=\"This post will show you how to connect WS2016 containers directly to the LAN using DHCP addresses instead of NAT\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/aidanfinn.com\/?p=18934\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@joe_elway\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Configuring Windows Server Containers To Use DHCP Instead Of NAT | Aidan Finn, IT Pro\" \/>\n\t\t<meta name=\"twitter:description\" content=\"This post will show you how to connect WS2016 containers directly to the LAN using DHCP addresses instead of NAT\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@joe_elway\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#article\",\"name\":\"Configuring Windows Server Containers To Use DHCP Instead Of NAT | Aidan Finn, IT Pro\",\"headline\":\"Configuring Windows Server Containers To Use DHCP Instead Of NAT\",\"author\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/8437956869_66d8b38f1b_z_d1.jpg\",\"width\":640,\"height\":425,\"caption\":\"[Image credit: Norlando Pobre, https:\\\/\\\/www.flickr.com\\\/photos\\\/npobre\\\/]\"},\"datePublished\":\"2015-09-22T21:10:45+01:00\",\"dateModified\":\"2015-09-22T21:23:16+01:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#webpage\"},\"articleSection\":\"Hyper-V, Containers, Hyper-V, Networking, PowerShell, Scripting, Virtualisation, Windows Server 2016\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/aidanfinn.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20#listItem\",\"name\":\"Hyper-V\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20#listItem\",\"position\":2,\"name\":\"Hyper-V\",\"item\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#listItem\",\"name\":\"Configuring Windows Server Containers To Use DHCP Instead Of NAT\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#listItem\",\"position\":3,\"name\":\"Configuring Windows Server Containers To Use DHCP Instead Of NAT\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20#listItem\",\"name\":\"Hyper-V\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\",\"name\":\"AFinn\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"AFinn\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1\",\"name\":\"AFinn\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"AFinn\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#webpage\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934\",\"name\":\"Configuring Windows Server Containers To Use DHCP Instead Of NAT | Aidan Finn, IT Pro\",\"description\":\"This post will show you how to connect WS2016 containers directly to the LAN using DHCP addresses instead of NAT\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/8437956869_66d8b38f1b_z_d1.jpg\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934\\\/#mainImage\",\"width\":640,\"height\":425,\"caption\":\"[Image credit: Norlando Pobre, https:\\\/\\\/www.flickr.com\\\/photos\\\/npobre\\\/]\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18934#mainImage\"},\"datePublished\":\"2015-09-22T21:10:45+01:00\",\"dateModified\":\"2015-09-22T21:23:16+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#website\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/\",\"name\":\"Aidan Finn, IT Pro\",\"description\":\"A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Configuring Windows Server Containers To Use DHCP Instead Of NAT | Aidan Finn, IT Pro","description":"This post will show you how to connect WS2016 containers directly to the LAN using DHCP addresses instead of NAT","canonical_url":"https:\/\/aidanfinn.com\/?p=18934","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"TDKjbi2McB2eLIfL6KwPB3aQqv5E-mbcb2QYIcovGaI","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aidanfinn.com\/?p=18934#article","name":"Configuring Windows Server Containers To Use DHCP Instead Of NAT | Aidan Finn, IT Pro","headline":"Configuring Windows Server Containers To Use DHCP Instead Of NAT","author":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"publisher":{"@id":"https:\/\/aidanfinn.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/8437956869_66d8b38f1b_z_d1.jpg","width":640,"height":425,"caption":"[Image credit: Norlando Pobre, https:\/\/www.flickr.com\/photos\/npobre\/]"},"datePublished":"2015-09-22T21:10:45+01:00","dateModified":"2015-09-22T21:23:16+01:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/aidanfinn.com\/?p=18934#webpage"},"isPartOf":{"@id":"https:\/\/aidanfinn.com\/?p=18934#webpage"},"articleSection":"Hyper-V, Containers, Hyper-V, Networking, PowerShell, Scripting, Virtualisation, Windows Server 2016"},{"@type":"BreadcrumbList","@id":"https:\/\/aidanfinn.com\/?p=18934#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/aidanfinn.com#listItem","position":1,"name":"Home","item":"https:\/\/aidanfinn.com","nextItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=20#listItem","name":"Hyper-V"}},{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=20#listItem","position":2,"name":"Hyper-V","item":"https:\/\/aidanfinn.com\/?cat=20","nextItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?p=18934#listItem","name":"Configuring Windows Server Containers To Use DHCP Instead Of NAT"},"previousItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?p=18934#listItem","position":3,"name":"Configuring Windows Server Containers To Use DHCP Instead Of NAT","previousItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=20#listItem","name":"Hyper-V"}}]},{"@type":"Person","@id":"https:\/\/aidanfinn.com\/#person","name":"AFinn","image":{"@type":"ImageObject","@id":"https:\/\/aidanfinn.com\/?p=18934#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g","width":96,"height":96,"caption":"AFinn"}},{"@type":"Person","@id":"https:\/\/aidanfinn.com\/?author=1#author","url":"https:\/\/aidanfinn.com\/?author=1","name":"AFinn","image":{"@type":"ImageObject","@id":"https:\/\/aidanfinn.com\/?p=18934#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g","width":96,"height":96,"caption":"AFinn"}},{"@type":"WebPage","@id":"https:\/\/aidanfinn.com\/?p=18934#webpage","url":"https:\/\/aidanfinn.com\/?p=18934","name":"Configuring Windows Server Containers To Use DHCP Instead Of NAT | Aidan Finn, IT Pro","description":"This post will show you how to connect WS2016 containers directly to the LAN using DHCP addresses instead of NAT","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/aidanfinn.com\/#website"},"breadcrumb":{"@id":"https:\/\/aidanfinn.com\/?p=18934#breadcrumblist"},"author":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"creator":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/8437956869_66d8b38f1b_z_d1.jpg","@id":"https:\/\/aidanfinn.com\/?p=18934\/#mainImage","width":640,"height":425,"caption":"[Image credit: Norlando Pobre, https:\/\/www.flickr.com\/photos\/npobre\/]"},"primaryImageOfPage":{"@id":"https:\/\/aidanfinn.com\/?p=18934#mainImage"},"datePublished":"2015-09-22T21:10:45+01:00","dateModified":"2015-09-22T21:23:16+01:00"},{"@type":"WebSite","@id":"https:\/\/aidanfinn.com\/#website","url":"https:\/\/aidanfinn.com\/","name":"Aidan Finn, IT Pro","description":"A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...","inLanguage":"en-GB","publisher":{"@id":"https:\/\/aidanfinn.com\/#person"}}]},"og:locale":"en_GB","og:site_name":"Aidan Finn, IT Pro - A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...","og:type":"activity","og:title":"Configuring Windows Server Containers To Use DHCP Instead Of NAT | Aidan Finn, IT Pro","og:description":"This post will show you how to connect WS2016 containers directly to the LAN using DHCP addresses instead of NAT","og:url":"https:\/\/aidanfinn.com\/?p=18934","twitter:card":"summary","twitter:site":"@joe_elway","twitter:title":"Configuring Windows Server Containers To Use DHCP Instead Of NAT | Aidan Finn, IT Pro","twitter:description":"This post will show you how to connect WS2016 containers directly to the LAN using DHCP addresses instead of NAT","twitter:creator":"@joe_elway"},"aioseo_meta_data":{"post_id":"18934","title":null,"description":"This post will show you how to connect WS2016 containers directly to the LAN using DHCP addresses instead of NAT","keywords":[{"label":"Containers","value":"Containers"},{"label":"Windows Server Containers","value":"Windows Server Containers"},{"label":"NAT","value":"NAT"},{"label":"DHCP","value":"DHCP"},{"label":"LAN","value":"LAN"},{"label":"Networking","value":"Networking"},{"label":"Windows Server 2016","value":"Windows Server 2016"},{"label":"WS2016","value":"WS2016"},{"label":"Technical Preview 3","value":"Technical Preview 3"},{"label":"TPv3","value":"TPv3"},{"label":"TP3","value":"TP3"},{"label":"Technical Preview","value":"Technical Preview"},{"label":"Virtual Switch","value":"Virtual Switch"},{"label":"APIPA","value":"APIPA"},{"label":"&quot;169.254&quot;","value":"&quot;169.254&quot;"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"activity","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 03:53:22","updated":"2025-06-04 17:01:52","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/aidanfinn.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/aidanfinn.com\/?cat=20\" title=\"Hyper-V\">Hyper-V<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tConfiguring Windows Server Containers To Use DHCP Instead Of NAT\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/aidanfinn.com"},{"label":"Hyper-V","link":"https:\/\/aidanfinn.com\/?cat=20"},{"label":"Configuring Windows Server Containers To Use DHCP Instead Of NAT","link":"https:\/\/aidanfinn.com\/?p=18934"}],"amp_enabled":true,"jetpack_featured_media_url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/8437956869_66d8b38f1b_z_d1.jpg","_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/18934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18934"}],"version-history":[{"count":3,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/18934\/revisions"}],"predecessor-version":[{"id":18938,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/18934\/revisions\/18938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/media\/18936"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}