Share via


Vlans and dhcp

Question

Wednesday, May 13, 2020 5:32 PM

I am trying to figure out how to implement dhcp in a vlan environment, but i cannot find the correct info.

Anyone who can help me with this?

Many thanks in advance.

All replies (7)

Thursday, May 14, 2020 8:14 AM

Hi,
*>> I am trying to figure out how to implement dhcp in a vlan environment. *
Do you want to deploy dhcp in one vlan or several different vlans?
If you want to implement dhcp in an environment with several different vlans, you need to configure DHCP VLAN Relay agent. It should be configured if a DHCP server is deployed to offer IP addresses to clients in multiple VLANs. 
Generally, DHCP messages are broadcasted. A broadcast DHCP packet sent by a DHCP client cannot be delivered to DHCP server(s) on different subnet(s) or VLAN(s). So, DHCP relay agent is required. Here is an example. 

You can create scopes for the different VLANs and configure the DHCP relay agent on Windows server or router accordingly.
For information about how to configure DHCP relay agent on Windows server, you can refer to the following link:

DHCP Relay Agent: Configuration in Windows Server 2016  

(Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)
If you just want to deploy dhcp in one vlan, there’s no need to configure DHCP relay agent.
Hope this can help you.
Best regards,
Phoebe Wu

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]   


Thursday, May 14, 2020 5:54 PM

many thanks for the reply.What i dont get, is how i can link a specifig scope to a specific vlan> I dont see that option.


Friday, May 15, 2020 2:22 AM

Hi,

For how to link a specific scope to a specific vlan, you can open the DHCP management panel, create a new scope, then specify the range of IP addresses that will be assigned by the scope. Please note that you need to add the gateway IP address of the VLAN to identify the VLAN you want to specify.

For the detailed process, you can refer to the link below:

Configure a multiscope DHCP server to work with VLANs on Windows Server 2012 

(Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)

Hope this can help you.

Best regards,

Phoebe Wu

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]   


Friday, May 15, 2020 7:21 AM

many thanks for the reply . I still dont see in the procided info how to add/link a specific scope to a vlan. Where is the connection between the scope and the vlan?


Monday, May 18, 2020 8:45 AM

Hi,
For how to add/link a specific scope to a vlan, you can also refer to the following:
*In the DHCP console, run New ScopeWizard twice. Create two VLAN scopes from which IP addresses will be leased to wireless clients connected to the VLANs. Each scope must define a different IP address range using either a private address range or a public IP address range. 
*While running New Scope Wizard, create an exclusion range for the IP addresses you will be assigning statically. For example, if you need to statically assign 10 IP addresses from the address range 10.1.1.1 through 10.1.1.254, your exclusion range is defined as 10.1.1.1 through 10.1.1.10.
*While running New Scope Wizard, assign scope options. On the Configure DHCP Options page, select Yes, I want to configure these options now. Scope options are applied only to leases of addresses from within the IP address range that the scope defines, which provides flexibility as your network grows. Add the gateway IP address of the VLAN to identify the specific VLAN. This step could connect a specific scope to a vlan. Then, define the DNS server and Domain name options, as well as any other options that are appropriate for your network configuration.
*While running New Scope Wizard, activate the scope. 

In this example, you are creating two VLANs and two scopes, one scope for each VLAN. You can choose the number of VLANs and scopes being created based on your situation.

Hope this can help you.

Best regards,

Phoebe Wu

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]   


Wednesday, May 20, 2020 1:35 AM

Hi,
Just want to confirm the current situations. Was your issue resolved?
If the information provided is helpful, please mark my previous replies as answered.
Please feel free to let us know if you need further assistance.
Best regards, 
Phoebe Wu

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]   


Friday, May 22, 2020 1:34 AM

Hi,

As this thread has been quiet for a while, we proposed it as ‘Answered’. If the information provided is helpful, please mark it as answered.
If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
We’d love to hear your feedback about the solution. Thanks for your understanding and efforts.

Best regards,

Phoebe Wu

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]