How to let windows 10 Clients get IPs from DHCP but from different scope (Lab environment on Hyper-V))

SysAdmin 151 Reputation points
2023-02-26T09:31:03.7466667+00:00

Hi

How to make my Windows 10 clients get different IPs from different scopes.

Please, how to do it on Hyper-V Lab.

I built Lab where all VMs have different static IPs, some of them are in the same range and some others are in a different range, the Lab is built on Hyper-V, and I created one internal switch for the entire environment, and the VMs as follows:

  • DC - 192.168.10.1
  • DHCP Server - 192.168.10.4
  • Additional Server (Not DC) - 192.168.20.1
  • File Server - 192.168.30.1
  • RODC - 192.168.40.1
  • Router - have 5 NIC cards for the VMs (all Default gateway)
  • 4 Windows 10 clients.

Therefore, the idea is how to make the Windows 10 clients have IPs from a different scope.

Let us say that I want Client1 and Client2 to get IP from Scope-A with a range from 192.168.10.2 - 192.168.10.50.

In addition, Client3 and Client4 get IP from Scope-B with a range from 10.10.10.1 - 10.10.10.50

The DHCP configuration is correct (Scope, server options), however, all 4 Clients got IPs from Scope-A.

How do I make 2 Clients get IPs from Scope-B?

Kind regards

 

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,701 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,560 questions
Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,023 questions
Windows Server Infrastructure
Windows Server Infrastructure
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Infrastructure: A Microsoft solution area focused on providing organizations with a cloud solution that supports their real-world needs and meets evolving regulatory requirements.
516 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Durkan 12,156 Reputation points MVP
    2023-02-28T20:32:31.22+00:00

    Here you go - follow the instructions here to enable LAN Routing:

    https://msftwebcast.com/2020/02/configure-lan-routing-in-windows-server-2019.html

    Video version here:

    https://www.youtube.com/watch?v=HZ8THj_cH1s

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Michael Durkan 12,156 Reputation points MVP
    2023-02-26T12:27:50.2366667+00:00

    Hi

    For Client 3/4 to get an IP Address in the 10.10.10.1-50 range, you would need to create an additional Internal Switch for that network and assign those devices to that network. Then do either of the following:

    • Create a DHCP Server for that network and host the DHCP Scope for that range of addresses
    • Host the DHCP Scope on the 192.168.10.4 DHCP Server and set up relays from the 10.10.10.x network so that clients on that network can communicate with the DHCP Server and get an IP from the scope.

    You could use the Routing and Remote Access role on a server in the Lab environment to achieve this.

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. SysAdmin 151 Reputation points
    2023-02-28T09:02:07.5966667+00:00

    Thank you, Michael

    I did the second option and it worked:

    Host the DHCP Scope on the 192.168.10.4 DHCP Server and set up relays from the 10.10.10.x network so that clients on that network can communicate with the DHCP Server and get an IP from the scope.

    it worked, and now the clients got IPs from the scopes according to the networks that they are connected to.

    but there is an issue, although the Client got an IP address I am not able to join it to the domain(unable to ping DNS), the DC is working fine, and all the other subnets that are on the same internal switch of the DC can join the domain and ping, but the new internal switch is not able to join domain and ping DNS.

    Vswitch

    in our case, we have 2 internal switches

    How to connect both internal switches in Routing and Remote Access?

    Vswitch

    kind regards

    0 comments No comments