07-11-2019 07:28 AM
when i create a dhcp pool on a layer 2 switch , how does the switch decide which vlan should get assigned this dhcp pool ? like if there is many vlans on a switch and i create a dhcp pool , how it chooses which vlan to give ip addresses for ?
Solved! Go to Solution.
10-16-2019 01:07 PM
07-11-2019 09:37 AM
- It's based on the network assigned ip range for the particular vlan which get's re-defined for the particular pool in the DHCP configuration , below you will find a typical example :
https://stackoverflow.com/questions/16689051/configuring-a-dhcp-server-with-vlan-on-a-switch
M.
07-11-2019 03:16 PM
here is good reference guide : let us know any further asistance
https://www.freeccnaworkbook.com/workbooks/ccna/configuring-an-ip-dhcp-helper-address
07-12-2019 08:51 AM
Hi!
Previously to the DHCP config, im sure you have one of your switch ports assigned to some VLAN, and there is the thing. When you do this the switch goes by default to that vlan´s gateway, and currently that vlan gateway is configured in the DHCP POOL, so at that point its pretty easy for the switch to understand wich pool of ip addresses should assign their ip´s.
07-15-2019 03:10 AM
10-15-2019 10:19 PM
10-15-2019 10:54 PM
Hi,
The DHCP client broadcasts a request for an IP address and additional configuration parameters on its local LAN. As part of this DHCP message, the relay agent inserts the IP address of the interface containing the ip helper-address command into the gateway IP address (giaddr) field of the DHCP packet. This IP address enables the DHCP server to determine which subnet should receive the offer and identify the appropriate IP address range to offer. The DHCP relay agent sends the local broadcast, via IP unicast, to the DHCP server address specified by the ip helper-address interface configuration command.
10-16-2019 01:07 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide