Link to home
Start Free TrialLog in
Avatar of Eprs_Admin
Eprs_AdminFlag for Austria

asked on

How to configure my DHCP server for another VLAN ?

Hi Experts,

on one of my network segments I use a DHCP server.
Now I have to install WLAN for GUESTs and I want to use another VLAN.
How to configure my DHCP server to serve also my VLAN ?
Avatar of Sajid Shaik M
Sajid Shaik M
Flag of Saudi Arabia image

create a new scope on dhcp server and point the DHCP server to your DHCP server... with differenet subnet ...
Make sure the switch port connected to the DHCP server is a trunk port (or at least has access to both VLANs). Create a second scope on the DHCP server.

Exactly how is the network laid out? And what type of devices are involved?
Avatar of Eprs_Admin

ASKER

Hi,

since now I have network like this : 10.4.0.0 /21
I use special IPs for my servers and clients.
Servers -> 10.4.1.x
Printers -> 10.4.3.x
Clients -> 10.4.4.x
Management -> 10.4.5.x
Subentmask is always 255.255.248.0

But for my new WIFI network I want to have a seperate VLAN -> 10.254.253.0
My DHCP Server is a VM on my NUTANIX system.
Can I use the same DHCP server or is it better to use a seperate DHCP server ?
ASKER CERTIFIED SOLUTION
Avatar of Soulja
Soulja
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You need to be sure that the VM can see all of the VLANs.
You really don't want your DHCP server seeing all VLANs simultaneously.  

1) That somewhat defeats the purpose of VLANs.
2) If the DHCP server sees both VLANs, it would not know which scope to give out IP addresses from for any given DHCP request if you try to run multiple scopes.
3) If you run a single scope, you have routing issues.

None of these are insurmountable, but it really becomes a messy network and breaks all sorts of security rules.  As another poster said, the *proper* way to do this is to use equipment that can do DHCP relay.  The DHCP server can stay on the VLAN it is on, and the second VLAN DHCP requests are relayed to the DHCP server via the relay agent.  And due to that agent, scopes are also kept clean and separate, and the DHCP server is aware of which scope to hand out an address from based on the IP address of the relay agent itself.  This is the clean, accepted standard in most situations.
out of syllabus question :-

A /21 ???????? Why would you use a /21 network ? It's recommended not to use more than 500 host per network(that's the maximum) ,that is /23 . just curious .

where are you running your DHCP server ?If you are using windows server dhcp server create new scope with new network, its subnet & gateway and on the switch go inside the new vlan add this comment "Ip helper-address <dhcp-server-ip>
Thanks a lot.
I found out all what I need.