Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Need advice regarding VLANs and DHCP

Hi all,

Happy new year,

So, my question...and fogive me if this is a stupid question, I've only just started studying networking, for extra credits to complete one of my assignments I was wondering if it's possible for the hosts on three vlans on a subnet network to get their respective ip address from DHCP pools on a single server on a separate vlan?

For the assignment we are allowed to show a DHCP server for each vlan, but I want to answer it as if it were a real life scenario and in reality I couldn't imagine a company using multiple servers for just three departments.  I could see virtual servers being implemented for that kind of situation but I was wondering if it's possible for one server with multiple DHCP pools to provide addresses to three vlans? 

Thanks in advance

2 ACCEPTED SOLUTIONS

Accepted Solutions
VIP Super Bronze

Need advice regarding VLANs and DHCP

Hi,

You are correct. Most organizations have one DHCP server that serves multiple subnets/vlans and also have a DHCP server as backup.  It would be very costly to deploy one DHCP server per vlan/subnet.  So, one DHCP server usually servers all the vlans.

HTH

Hall of Fame Super Blue

Re: Need advice regarding VLANs and DHCP

Jonathan

In the last company i worked for we had two DHCP servers for the entire network. For each vlan it would split in half and each DHCP server would be responsible for one half of the scope. That way you could not get the same IP being handed out to different clients.

The server knows which pool to use because the request sent from the router has the IP address of the interface the L3 switch/router received the broadcast on ie. if there is a vlan interface with an ip helper-address configured the broadcast from the clients gets to the L3 vlan interface and then the L3 switch sends a request to the DHCP server with the IP address of the vlan interface so the DHCP server knows which scope to use.

Jon

4 REPLIES
VIP Super Bronze

Need advice regarding VLANs and DHCP

Hi,

You are correct. Most organizations have one DHCP server that serves multiple subnets/vlans and also have a DHCP server as backup.  It would be very costly to deploy one DHCP server per vlan/subnet.  So, one DHCP server usually servers all the vlans.

HTH

New Member

Need advice regarding VLANs and DHCP

Thanks for replying.

If you don't mind, just one more question..

Out of interest exactly how would it work, as I only understand that a DHCP request is a broadcast message and the host accepts the first response,

Is the broadcast message sent to the router and then forwarded to the server, how does the server know which pool to use?

I can find details of DHCP from a switch or router, but I haven't fund anything that discusses pointing the DHCP discovery message to a server.

Thanks for your time

Hall of Fame Super Blue

Re: Need advice regarding VLANs and DHCP

Jonathan

In the last company i worked for we had two DHCP servers for the entire network. For each vlan it would split in half and each DHCP server would be responsible for one half of the scope. That way you could not get the same IP being handed out to different clients.

The server knows which pool to use because the request sent from the router has the IP address of the interface the L3 switch/router received the broadcast on ie. if there is a vlan interface with an ip helper-address configured the broadcast from the clients gets to the L3 vlan interface and then the L3 switch sends a request to the DHCP server with the IP address of the vlan interface so the DHCP server knows which scope to use.

Jon

New Member

Re: Need advice regarding VLANs and DHCP

Thanks very much for your time and reply.

I can see now how it works.

Thanks again

93
Views
0
Helpful
4
Replies