DHCP - My first lab in Hyper-V
BlitzMX
Registered Users Posts: 2 ■□□□□□□□□□
Hello
I am trying to reproduce my first lab in Hyper-V.
I already have the necessary machines and added the virtual switch.
Now i need to define the DHCP and IP addresses in internal network.
I have a SRV-RTR (router) that, i think, should provide DHCP to everyone.
I also have SVR-DC, SVR1, SVR2, CL1 and CL2.
Is this correct, where do i configure my DHCP?
And with what configurations?
Can anyone help?
Thank you.
Best Regards.
I am trying to reproduce my first lab in Hyper-V.
I already have the necessary machines and added the virtual switch.
Now i need to define the DHCP and IP addresses in internal network.
I have a SRV-RTR (router) that, i think, should provide DHCP to everyone.
I also have SVR-DC, SVR1, SVR2, CL1 and CL2.
Is this correct, where do i configure my DHCP?
And with what configurations?
Can anyone help?
Thank you.
Best Regards.
Comments
-
poolmanjim Member Posts: 285 ■■■□□□□□□□DHCP works on a single subnet. You want to have a DHCP server per subnet to avoid confusion. You can get around this using supernetting but it is kind of complicated and unpredictable. With labs I tend to make DCs my DHCP server (and at least one standalone for standalone practice)
Edit: Grammar. Was in a hurry.2019 Goals: Security+
2020 Goals: 70-744, Azure
Completed: MCSA 2012 (01/2016), MCSE: Cloud Platform and Infrastructure (07/2017), MCSA 2017 (09/2017)
Future Goals: CISSP, CCENT -
bettsy584 Member Posts: 69 ■■□□□□□□□□What are you trying to do? Re-produce the labs from a MS course?
You could do DHCP on any of they VMs but the chances are DHCP is already running on your home/office router. Therefore make sure you have not configured your Hyper-V Switch to be an "external" switch, or otherwise you will have a DHCP conflict.
The take away from this is that it actually makes no difference where the DHCP service resides. Like poolmanjim said, DHCP works on the concept of scopes and subnets. You should do some further reading on DHCP relay/IP helpers etc, as that will give you a better idea how DHCP is deployed in the wild. -
BlitzMX Registered Users Posts: 2 ■□□□□□□□□□My dificulty was simply to make two computers ping in Hyper-V.
I was able to download some VMs and study the configurations.
I'll try to do it myself when i'm done reading the DOCS i have.
Thank you -
Ugly-051 Member Posts: 63 ■■■□□□□□□□My dificulty was simply to make two computers ping in Hyper-V.
I was able to download some VMs and study the configurations.
I'll try to do it myself when i'm done reading the DOCS i have.
Thank you
Hyper-V, configure an internal switch and attach the VMs to that, then install the DHCP server feature and configure a new scope on one of the VMs, maybe a DC/GC whatever.
As long as the servers are on the same LAN segment, same internal switch etc then they should get an IP address.
But, if those servers don’t respond to pings then that’s the firewalls on the servers rejecting echo replies.
https://blog.blksthl.com/2012/11/20/how-to-enable-ping-in-windows-server-2012/