{"id":1138,"date":"2019-06-18T11:44:29","date_gmt":"2019-06-18T10:44:29","guid":{"rendered":"https:\/\/hypervlab.co.uk\/?p=1138"},"modified":"2019-07-30T09:06:31","modified_gmt":"2019-07-30T08:06:31","slug":"configuring-pfsense-vlan-and-external-windows-dhcp","status":"publish","type":"post","link":"https:\/\/hypervlab.co.uk\/?p=1138","title":{"rendered":"Configuring PFSense VLAN and External Windows DHCP"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<p>In this final of the PFSense VLAN Mini Series, we will cover settings the VLANs and DHCP Scopes with an External DHCP Server using Windows Server. Following on from the previous post we will be using the VLAN Interfaces of 10, 20 and 30 and IP spaces of:<br><br>VLAN10 : 192.168.10.254<br>VLAN20 : 192.168.20.254 <br>VLAN30 : 192.168.30.254  <\/p>\n\n\n\n<p><strong>NOTE: This guide will not cover the installation of Windows Server, Only the installation and configuration of the DHCP Service.<\/strong><\/p>\n\n\n\n<p>For this lab i will be using a Windows Server 2019 Standard Server.<br>to install the DHCP Role using Powershell we can use the following script.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Install-WindowsFeature -Name 'DHCP' -IncludeManagementTools -Verbose -Confirm<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"886\" height=\"283\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-96.png\" alt=\"\" class=\"wp-image-1141\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-96.png 886w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-96-300x96.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-96-768x245.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-96-640x204.png 640w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/figure><\/div>\n\n\n\n<p>Confirm the installation prompt &#8216;<strong>A<\/strong>&#8216;.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"886\" height=\"429\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-97.png\" alt=\"\" class=\"wp-image-1142\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-97.png 886w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-97-300x145.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-97-768x372.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-97-640x310.png 640w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/figure><\/div>\n\n\n\n<p>Next we need to authorise the DHCP server.<\/p>\n\n\n\n<p>From Server Manager under the notification flag select &#8220;<em>Complete DHCP Configuration&#8221;.<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"397\" height=\"238\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-98.png\" alt=\"\" class=\"wp-image-1143\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-98.png 397w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-98-300x180.png 300w\" sizes=\"auto, (max-width: 397px) 100vw, 397px\" \/><\/figure><\/div>\n\n\n\n<p>Select: &#8216;<em>Commit<\/em>&#8216;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"561\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-101.png\" alt=\"\" class=\"wp-image-1146\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-101.png 761w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-101-300x221.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-101-80x60.png 80w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-101-100x75.png 100w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-101-640x472.png 640w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/figure><\/div>\n\n\n\n<p>Select: <em>&#8216;Close&#8217;<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"561\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-100.png\" alt=\"\" class=\"wp-image-1145\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-100.png 761w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-100-300x221.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-100-80x60.png 80w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-100-100x75.png 100w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-100-640x472.png 640w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/figure><\/div>\n\n\n\n<p>Now the DHCP Server has been authorised we can provision the three DHCP Scopes<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Import Powershell Module\nImport-Module -Name 'DHCPServer'\n\n# Create VLAN10 DHCP Scope\nAdd-DhcpServerv4Scope -Name \u2018LAN_VLAN10\u2019 -StartRange '192.168.10.10' -EndRange '192.168.10.50' -SubnetMask '255.255.255.0' -Description 'DHCP Pool for VLAN10'\nSet-DhcpServerv4OptionValue -ScopeId '192.168.10.0' -DnsServer '192.168.10.254' -DnsDomain \"lan_vlan10\" -Router '192.168.10.254'\n\n# Create VLAN20 DHCP Scope\nAdd-DhcpServerv4Scope -Name \u2018LAN_VLAN20\u2019 -StartRange '192.168.20.20' -EndRange '192.168.20.50' -SubnetMask '255.255.255.0' -Description 'DHCP Pool for VLAN20'\nSet-DhcpServerv4OptionValue -ScopeId '192.168.20.0' -DnsServer '192.168.20.254' -DnsDomain \"lan_vlan20\" -Router '192.168.20.254'\n\n# Create VLAN30 DHCP Scope\nAdd-DhcpServerv4Scope -Name \u2018LAN_VLAN30\u2019 -StartRange '192.168.30.30' -EndRange '192.168.30.50' -SubnetMask '255.255.255.0' -Description 'DHCP Pool for VLAN30'\nSet-DhcpServerv4OptionValue -ScopeId '192.168.30.0' -DnsServer '192.168.30.254' -DnsDomain \"lan_vlan30\" -Router '192.168.20.254'<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"278\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-102-1024x278.png\" alt=\"\" class=\"wp-image-1147\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-102-1024x278.png 1024w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-102-300x81.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-102-768x208.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-102-640x173.png 640w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-102.png 1236w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Next we can open the DHCP Management Snap-in and confirm that the DHCP Scopes are all present and correct. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-103-1024x546.png\" alt=\"\" class=\"wp-image-1148\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-103-1024x546.png 1024w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-103-300x160.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-103-768x409.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-103-600x320.png 600w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-103-640x341.png 640w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-103-1280x682.png 1280w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-103.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Now we need to go back to PFSense and configure the DHCP Relay for the VLAN Interfaces 10,20 and 30 and forward the traffic requests to the DHCP Server.<\/p>\n\n\n\n<p>From the PFSense Dashboard navigate to &#8216;<em>Services<\/em>&#8216; -&gt; &#8216;DHCP Relay&#8217;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"121\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-104-1024x121.png\" alt=\"\" class=\"wp-image-1149\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-104-1024x121.png 1024w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-104-300x36.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-104-768x91.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-104-640x76.png 640w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-104.png 1155w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>First we need to disable the the internal PFSense DHCP Server<\/p>\n\n\n\n<p> From the PFSense Dashboard navigate to &#8216;<em>Services<\/em>&#8216; -&gt; &#8216;DHCP Server&#8217;<br>and untick the &#8216;Enable [x] Enable DHCP Server on LAN Interface&#8217;<br><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"280\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-105-1024x280.png\" alt=\"\" class=\"wp-image-1150\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-105-1024x280.png 1024w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-105-300x82.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-105-768x210.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-105-640x175.png 640w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-105.png 1158w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Scroll to the bottom of the page and save the changes, now we can return to &#8216;<em>Services<\/em>&#8216; -&gt; &#8216;DHCP Relay&#8217; <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"428\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-106-1024x428.png\" alt=\"\" class=\"wp-image-1151\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-106-1024x428.png 1024w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-106-300x125.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-106-768x321.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-106-640x267.png 640w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-106.png 1101w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Ensure that the Enable DHCP Relay on Interface is Ticked and that the LAN_VLAN10,  LAN_VLAN20 and LAN_VLAN30 are selected. for the destination server i have configured the DHCP Server IP address to: 192.168.1.10. <strong>NOTE:<\/strong> Currently there are no Firewall Rules configured for the VLAN interfaces so all traffic can pass between. Once the configuration has been completed this is what you should have:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"422\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-107-1024x422.png\" alt=\"\" class=\"wp-image-1152\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-107-1024x422.png 1024w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-107-300x123.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-107-768x316.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-107-640x263.png 640w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-107.png 1098w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Don&#8217;t forget to save the changes. now we can move onto the testing phase of the blog post. For a simple test we can add a second network adapter to the server-vm which is hosting the DHCP Role and Configure the VLAN ID to be 10. the expected result should be that we recive a 192.168.10.X address and dns domain of lan_vlan10.<\/p>\n\n\n\n<p>To Configure the VLAN ID, From the VMConnect Session go to &#8216;<em>File<\/em>&#8216; -&gt; &#8216;<em>Settings<\/em>&#8216; -&gt; &#8216;<em>Network Adaptor<\/em>&#8216; Enable the VLAN ID Option and enter the VLAN ID &#8216;<strong>10<\/strong>&#8216; and then Click &#8216;Apply&#8217;.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"463\" height=\"634\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-109.png\" alt=\"\" class=\"wp-image-1154\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-109.png 463w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-109-219x300.png 219w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/figure><\/div>\n\n\n\n<p>From inside the server-vm we can run the following PowerShell command to check <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-NetIPConfiguration | Where-Object InterfaceAlias -eq 'Ethernet 2'<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"267\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-110.png\" alt=\"\" class=\"wp-image-1155\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-110.png 771w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-110-300x104.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-110-768x266.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-110-640x222.png 640w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Testing LAN_VLAN20<\/strong><\/p>\n\n\n\n<p> To Configure the VLAN ID, From the VMConnect Session go to &#8216;<em>File<\/em>&#8216; -&gt; &#8216;<em>Settings<\/em>&#8216; -&gt; &#8216;<em>Network Adaptor<\/em>&#8216; Enable the VLAN ID Option and enter the VLAN ID &#8216;<strong>20<\/strong>&#8216; and then Click &#8216;Apply&#8217;. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"463\" height=\"633\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-111.png\" alt=\"\" class=\"wp-image-1156\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-111.png 463w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-111-219x300.png 219w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/figure><\/div>\n\n\n\n<p>Complete an <em>ipconfig \/release ; ipconfig \/renew<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-NetIPConfiguration | Where-Object InterfaceAlias -eq 'Ethernet 2'<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"267\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-112.png\" alt=\"\" class=\"wp-image-1157\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-112.png 771w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-112-300x104.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-112-768x266.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-112-640x222.png 640w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/figure><\/div>\n\n\n\n<p> <strong>Testing LAN_VLAN30 <\/strong><\/p>\n\n\n\n<p>To Configure the VLAN ID, From the VMConnect Session go to &#8216;<em>File<\/em>&#8216; -&gt; &#8216;<em>Settings<\/em>&#8216; -&gt; &#8216;<em>Network Adaptor<\/em>&#8216; Enable the VLAN ID Option and enter the VLAN ID &#8216;<strong>30<\/strong>&#8216; and then Click &#8216;Apply&#8217;. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"463\" height=\"636\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-113.png\" alt=\"\" class=\"wp-image-1158\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-113.png 463w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-113-218x300.png 218w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/figure><\/div>\n\n\n\n<p>Complete an <em>ipconfig \/release ; ipconfig \/renew<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-NetIPConfiguration | Where-Object InterfaceAlias -eq 'Ethernet 2'<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"267\" src=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-114.png\" alt=\"\" class=\"wp-image-1159\" srcset=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-114.png 771w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-114-300x104.png 300w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-114-768x266.png 768w, https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/image-114-640x222.png 640w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/figure><\/div>\n\n\n\n<p><strong>PFSense Mini Series<\/strong>:<br> [x] <a rel=\"noreferrer noopener\" href=\"https:\/\/hypervlab.co.uk\/2019\/06\/installing-pfsense-2-5-beta-on-hyper-v-gen2-virtual-machine\/\" target=\"_blank\">Installing PFSense 2.5 BETA on Hyper-V Gen2 Virtual Machine<\/a><br> [x] <a rel=\"noreferrer noopener\" href=\"https:\/\/hypervlab.co.uk\/2019\/06\/configuring-pfsense-vlan-interfaces\/\" target=\"_blank\">Configuring PFSense VLAN Interfaces<\/a><br> [x] <a rel=\"noreferrer noopener\" href=\"https:\/\/hypervlab.co.uk\/2019\/06\/configuring-pfsense-dhcp-scope-and-virtual-switches\/\" target=\"_blank\">Configuring PFSense DHCP Scope and Virtual Switches<\/a><br> [x] <a href=\"https:\/\/hypervlab.co.uk\/2019\/06\/configuring-pfsense-vlan-and-external-windows-dhcp\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Configuring PFSense VLAN and External Windows DHCP  (opens in a new tab)\">Configuring PFSense VLAN and External Windows DHCP <\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>In this final of the PFSense VLAN Mini Series, we will cover settings the VLANs and DHCP Scopes with an External DHCP Server using Windows Server. Following on from the previous post we will be using the VLAN Interfaces of 10, 20 and 30 and IP spaces of: VLAN10 : 192.168.10.254VLAN20 : 192.168.20.254 VLAN30 : [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1139,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,78,19],"tags":[98,168,172,167,124,125,104,121,166,176,173,99],"class_list":["post-1138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking","category-pfsense","category-windows-server-2019","tag-98","tag-devlopment","tag-dhcp","tag-freebsd","tag-generationtwo","tag-gentwo","tag-hyperv","tag-linux","tag-pfsense","tag-server2019","tag-virtualswitches","tag-windowsserver"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configuring PFSense VLAN and External Windows DHCP - HypervLAB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hypervlab.co.uk\/?p=1138\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring PFSense VLAN and External Windows DHCP - HypervLAB\" \/>\n<meta property=\"og:description\" content=\"Reading Time:  4 minutesIn this final of the PFSense VLAN Mini Series, we will cover settings the VLANs and DHCP Scopes with an External DHCP Server using Windows Server. Following on from the previous post we will be using the VLAN Interfaces of 10, 20 and 30 and IP spaces of: VLAN10 : 192.168.10.254VLAN20 : 192.168.20.254 VLAN30 : [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hypervlab.co.uk\/?p=1138\" \/>\n<meta property=\"og:site_name\" content=\"HypervLAB\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-18T10:44:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-30T08:06:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/FeatureImage_ConfigurePFSenseVLANandExternalDHCP.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Simon Lee\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/smoon_lee\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Simon Lee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hypervlab.co.uk\/?p=1138\",\"url\":\"https:\/\/hypervlab.co.uk\/?p=1138\",\"name\":\"Configuring PFSense VLAN and External Windows DHCP - HypervLAB\",\"isPartOf\":{\"@id\":\"https:\/\/hypervlab.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hypervlab.co.uk\/?p=1138#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hypervlab.co.uk\/?p=1138#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/FeatureImage_ConfigurePFSenseVLANandExternalDHCP.png\",\"datePublished\":\"2019-06-18T10:44:29+00:00\",\"dateModified\":\"2019-07-30T08:06:31+00:00\",\"author\":{\"@id\":\"https:\/\/hypervlab.co.uk\/#\/schema\/person\/7d184970612a9c6a5f1babb8b6b4d359\"},\"breadcrumb\":{\"@id\":\"https:\/\/hypervlab.co.uk\/?p=1138#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hypervlab.co.uk\/?p=1138\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/hypervlab.co.uk\/?p=1138#primaryimage\",\"url\":\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/FeatureImage_ConfigurePFSenseVLANandExternalDHCP.png\",\"contentUrl\":\"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/FeatureImage_ConfigurePFSenseVLANandExternalDHCP.png\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hypervlab.co.uk\/?p=1138#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hypervlab.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring PFSense VLAN and External Windows DHCP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hypervlab.co.uk\/#website\",\"url\":\"https:\/\/hypervlab.co.uk\/\",\"name\":\"HypervLAB\",\"description\":\"Blogging about all thing Microsoft\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hypervlab.co.uk\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/hypervlab.co.uk\/#\/schema\/person\/7d184970612a9c6a5f1babb8b6b4d359\",\"name\":\"Simon Lee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/hypervlab.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9473a3cf9c75192508eccfd9d072efab80adf04a45083e561d0e3065f681c34c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9473a3cf9c75192508eccfd9d072efab80adf04a45083e561d0e3065f681c34c?s=96&d=mm&r=g\",\"caption\":\"Simon Lee\"},\"description\":\"Hi, I'm Simon an IT Enthusiast, PowerShell Geek, Gamer, and Sound Engineer. I've been working with in the IT Industry for around 6 years and have worked across private and public sector companies. The original idea behind \\\"hypervlab\\\" was that I required an 'RnD' environment which would allow me to be able to replicate any kind of enterprise on-premise environment which I could use for learning and testing without learning in a production environment. So in 2019, I decided to branch out and use the domain for a public facing blog to be able to contribute to the IT Community about all things Microsoft.\",\"sameAs\":[\"https:\/\/hypervlab.co.uk\",\"https:\/\/www.linkedin.com\/in\/simon-john-lee\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/smoon_lee\"],\"url\":\"https:\/\/hypervlab.co.uk\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configuring PFSense VLAN and External Windows DHCP - HypervLAB","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hypervlab.co.uk\/?p=1138","og_locale":"en_GB","og_type":"article","og_title":"Configuring PFSense VLAN and External Windows DHCP - HypervLAB","og_description":"Reading Time:  4 minutesIn this final of the PFSense VLAN Mini Series, we will cover settings the VLANs and DHCP Scopes with an External DHCP Server using Windows Server. Following on from the previous post we will be using the VLAN Interfaces of 10, 20 and 30 and IP spaces of: VLAN10 : 192.168.10.254VLAN20 : 192.168.20.254 VLAN30 : [&hellip;]","og_url":"https:\/\/hypervlab.co.uk\/?p=1138","og_site_name":"HypervLAB","article_published_time":"2019-06-18T10:44:29+00:00","article_modified_time":"2019-07-30T08:06:31+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/FeatureImage_ConfigurePFSenseVLANandExternalDHCP.png","type":"image\/png"}],"author":"Simon Lee","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/smoon_lee","twitter_misc":{"Written by":"Simon Lee","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/hypervlab.co.uk\/?p=1138","url":"https:\/\/hypervlab.co.uk\/?p=1138","name":"Configuring PFSense VLAN and External Windows DHCP - HypervLAB","isPartOf":{"@id":"https:\/\/hypervlab.co.uk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hypervlab.co.uk\/?p=1138#primaryimage"},"image":{"@id":"https:\/\/hypervlab.co.uk\/?p=1138#primaryimage"},"thumbnailUrl":"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/FeatureImage_ConfigurePFSenseVLANandExternalDHCP.png","datePublished":"2019-06-18T10:44:29+00:00","dateModified":"2019-07-30T08:06:31+00:00","author":{"@id":"https:\/\/hypervlab.co.uk\/#\/schema\/person\/7d184970612a9c6a5f1babb8b6b4d359"},"breadcrumb":{"@id":"https:\/\/hypervlab.co.uk\/?p=1138#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hypervlab.co.uk\/?p=1138"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/hypervlab.co.uk\/?p=1138#primaryimage","url":"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/FeatureImage_ConfigurePFSenseVLANandExternalDHCP.png","contentUrl":"https:\/\/hypervlab.co.uk\/wp-content\/uploads\/2019\/06\/FeatureImage_ConfigurePFSenseVLANandExternalDHCP.png","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/hypervlab.co.uk\/?p=1138#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hypervlab.co.uk\/"},{"@type":"ListItem","position":2,"name":"Configuring PFSense VLAN and External Windows DHCP"}]},{"@type":"WebSite","@id":"https:\/\/hypervlab.co.uk\/#website","url":"https:\/\/hypervlab.co.uk\/","name":"HypervLAB","description":"Blogging about all thing Microsoft","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hypervlab.co.uk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/hypervlab.co.uk\/#\/schema\/person\/7d184970612a9c6a5f1babb8b6b4d359","name":"Simon Lee","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/hypervlab.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9473a3cf9c75192508eccfd9d072efab80adf04a45083e561d0e3065f681c34c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9473a3cf9c75192508eccfd9d072efab80adf04a45083e561d0e3065f681c34c?s=96&d=mm&r=g","caption":"Simon Lee"},"description":"Hi, I'm Simon an IT Enthusiast, PowerShell Geek, Gamer, and Sound Engineer. I've been working with in the IT Industry for around 6 years and have worked across private and public sector companies. The original idea behind \"hypervlab\" was that I required an 'RnD' environment which would allow me to be able to replicate any kind of enterprise on-premise environment which I could use for learning and testing without learning in a production environment. So in 2019, I decided to branch out and use the domain for a public facing blog to be able to contribute to the IT Community about all things Microsoft.","sameAs":["https:\/\/hypervlab.co.uk","https:\/\/www.linkedin.com\/in\/simon-john-lee\/","https:\/\/x.com\/https:\/\/twitter.com\/smoon_lee"],"url":"https:\/\/hypervlab.co.uk\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1138"}],"version-history":[{"count":0,"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=\/wp\/v2\/media\/1139"}],"wp:attachment":[{"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hypervlab.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}