Question about DHCP
I never thought about this but how does a router acting as a DHCP server 'knows' which pool to take address out from and assign to a requesting DHCP client?
Lets say you have several pools all for different vlans; The routes gets DHCP request and then which pool he looks at?
Lets say you have several pools all for different vlans; The routes gets DHCP request and then which pool he looks at?
Comments
-
mikem2te Member Posts: 407I never thought about this but how does a router acting as a DHCP server 'knows' which pool to take address out from and assign to a requesting DHCP client?
Lets say you have several pools all for different vlans; The routes gets DHCP request and then which pool he looks at?
Work just the same for vlan subinterfaces as well, a tagged dhcp discover message comes in, the router then matches this up against the 'encapsulation dot1q' lines under the sub interfaces to find the correct subinterface , it then knows subinterface IP to find the correct dhcp pool.Blog : http://www.caerffili.co.uk/
Previous : Passed Configuring Microsoft Office SharePoint Server 2007 (70-630)
Currently : EIGRP & OSPF
Next : CCNP Route -
Forsaken_GA Member Posts: 4,024the broadcast is converted to unicast and forwarded to the configured server
edit: I should elaborate on that.
Assuming the router for the subnet has it's interface configured with an ip helper-address, the broadcast is converted to unicast and forwarded to the IP specified in the helper-address command.
If your host needs access to more than one service via broadcast (ie, it needs DHCP and TFTP, but they reside on different servers) you need to configure directed broadcast forwarding -
acidsatyr Member Posts: 111Ah, so, the source IP of that unicast would be DHCP relay agent and based on that DHCP will deduce which pool to look at.
Thanks!