<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Graham Hogbin PFE</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/grahamhogbinpfe/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/grahamhogbinpfe/feed.xml</link>
    <description>The PFE life</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:28:57 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Creating a NAT switch in Hyper-V</title>
      <link>https://docs.microsoft.com/archive/blogs/grahamhogbinpfe/35</link>
      <pubDate>Tue, 08 May 2018 12:05:16 GMT</pubDate>
      <dc:creator><![CDATA[Graham Hogbin]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/grahamhogbinpfe/?p=35</guid>
      <description><![CDATA[Hi All

I have always been looking for ways to simplify my Lab deployments and getting access to...]]></description>
      <content:encoded><![CDATA[<span>Hi All</span>

<span>I have always been looking for ways to simplify my Lab deployments and getting access to the Internet for my VM's and came across a simple solution using the NAT functionality within Hyper-V.</span>

<span style="margin: 0px;color: #454545;font-family: 'Segoe UI',sans-serif;font-size: 20pt">Creating the NAT Switch</span>

<span style="margin: 0px;color: #454545;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Open Powershell and run the following commands.</span>
<ul type="1">
 	<li style="margin: 0px 0px 10.66px;color: #454545;line-height: 18pt;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt;font-style: normal;font-weight: 400"><span style="margin: 0px;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Creating the VMSwicth to be used for the NAT </span></li>
</ul>
<blockquote><span>New-VMSwitch</span><span> -SwitchName</span><span> "NATSwitch"</span><span> -SwitchType</span><span> Internal</span><span style="margin: 0px;color: #454545;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt"></span></blockquote>
<ul type="1">
 	<li style="margin: 0px 0px 10.66px;color: #454545;line-height: 18pt;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt;font-style: normal;font-weight: 400"><span style="margin: 0px;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Now you can search for the Interface alias of the vSwitch you created.</span></li>
</ul>
Get-NetIPInterface -InterfaceAlias *NATSwitch*
<ul type="1">
 	<li style="margin: 0px 0px 10.66px;color: #454545;line-height: 18pt;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt;font-style: normal;font-weight: 400"><span style="margin: 0px;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Once created you can create the NAT gateway address for the switch we just created. </span></li>
</ul>
<blockquote><span>New-NetIPAddress</span><span> -IPAddress</span><span> 192.168.0.254</span><span> -PrefixLength</span><span> 24</span><span> -InterfaceAlias</span><span> “vEthernet (NATSwitch)"</span>

<span style="margin: 0px;color: #454545;font-family: 'Segoe UI',sans-serif;font-size: 8pt"><em>IPAddress</em> -- NAT Gateway IP specifies the IPv4 or IPv6 address to use as the NAT gateway IP</span>

<span style="margin: 0px;color: #454545;font-family: 'Segoe UI',sans-serif;font-size: 8pt"><em>PrefixLength</em> -- NAT Subnet Prefix Length defines the NAT local subnet size (subnet mask)</span>

<span style="margin: 0px;color: #454545;font-family: 'Segoe UI',sans-serif;font-size: 8pt"><em>InterfaceAlias</em>-- The alias of the switch created in the first step</span></blockquote>
<ul>
 	<li><span style="margin: 0px;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Now we create the subnet to be used for the Internal network to be NAT</span></li>
</ul>
<blockquote><span>New-NetNat</span><span> -Name</span><span> NatNetwork</span><span> -InternalIPInterfaceAddressPrefix</span><span> 192.168.0.0/24</span></blockquote>
<span style="margin: 0px;color: #454545;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Now you will be able to allocate manually/automatically via DHCP to the VM's that are assigned to use this vSwitch with IP's in the created network and use the IP created in the NetIPAddress as the Default Gateway. Your VM's will now have access to the external resources.</span>]]></content:encoded>
    </item>
    <item>
      <title>Hello world!</title>
      <link>https://docs.microsoft.com/archive/blogs/grahamhogbinpfe/hello-world</link>
      <pubDate>Mon, 24 Jul 2017 13:40:22 GMT</pubDate>
      <dc:creator><![CDATA[Graham Hogbin]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/grahamhogbinpfe/?p=1</guid>
      <description><![CDATA[Welcome to Technet. This is your first post. Edit or delete it, then start blogging!]]></description>
      <content:encoded><![CDATA[Welcome to <a href="https://blogs.technet.microsoft.com/">Technet</a>. This is your first post. Edit or delete it, then start blogging!]]></content:encoded>
    </item>
  </channel>
</rss>