Search This Blog

Wednesday, December 19, 2012

Prevent Rogue DHCP By Enable DHCP Guard in Hyper-V


You have created a virtual machine and this virtual machine has passed to another user for application deployment. Sometimes, your user tend to be smart and start to enable DHCP roles in the virtual machine which is not suppose to in your production environment. This scenario has created another rogue DHCP in your virtualization environment and you would like to prevent this from happening.

With Windows Server 2012 Hyper-V, you can prevent this by enable DHCP Guard. All you need to do is on the particular Virtual Machine Settings, Network switch tick “Enable DHCP Guard” .


Even users enable DHCP roles and it is function as unauthorised DHCP in the VM, the DHCP message will be dropped and none of the other VM will get the IP address.


In my test environment, i have tested it with DHCP roles enabled on VM1. None of the IP is been release out to other VM when i have turn ON DHCP Guard.

To further test, i just “uncheck DHCP Guard” and it start to act as rogue DHCP and release IP to my other VMs.

Therefore, start to protect your virtualization infrastructure by configure DHCP Guard.

My recommendation on the configuration:-

1. Turn ON DHCP Guard for other VMs which is potential unauthorized DHCP server to prevent accidently become rogue DHCP.
2. Turn OFF DHCP Guard for an authorized DHCP server.

Some PowerShell command to play around:-


  • VM1 – Rogue DHCP
  • RED-DC01 – Authorized DHCP Server
Set-VMNetworkAdapter –VMName VM1 –DHCPGuard On
Set-VMNetworkAdapter –VMName RED-DC01–DHCPGuard Off


  1. you can dowmload here more and more..........
    ccleaner crack
    CCleaner is the number-one tool for cleaning your Windows PC. It protects your privacy online and makes your computer faster and more secure.

    Camtasia Studio 9.1 Crack is a very famous and great effective display screen recording software that creates the video on-screen.

  2. My brother recommended I might like this blog. He was entirely right.
    This post actually made my day. You cann’t imagine just how much time I had spent
    for this info! Thanks!
    Bandicam 4.0.0 Full Crack

  3. قم بتنظيف أسطح وخزائن خزائن المطبخ وتنظيم المخزن
    فراغ وغسل الأرض وراء الثلاجة
    لفائف الثلاجة فراغ وتنفيس في الجزء السفلي من الثلاجة
    شركة النجوم لخدمات التنظيف
    شركة تنظيف كنب بجدة
    شركة تنظيف بجدة
    شركة تنظيف خزانات بجدة


Note: Only a member of this blog may post a comment.