01-17-2018 07:00 AM - edited 03-08-2019 01:27 PM
Hello all,
Does anyone know if it is possible to request a specific DHCP adddress from the DHCP server on Cisco switches? (15.0.2 C3750V2)
Gareth
Solved! Go to Solution.
01-18-2018 07:26 AM
Gareth
Unfortunately I believe that Cisco routers and switches do not have the ability to do what you want.
HTH
Rick
01-17-2018 07:10 AM
01-17-2018 07:39 AM
no i mean as a DHCP client, something like
ip address dhcp
ip dhcp request ip 12.1.1.1
01-17-2018 09:38 AM
Gareth
When a DHCP client is requesting an IP from the server it will typically request to be assigned the IP that it previously used. But I am not aware of any way that you can configure what IP address the client should request.
HTH
Rick
01-17-2018 09:52 AM
As per my best knowledge and little bit digging in documentation there is no such way " ip dhcp request ip (ip address) ".
DHCP itself means that client start with discover message now its up to you if you want to bind any specific IP address with client MAC because in case of DHCP Reverse ARP is in use where you have the MAC address but you do not have IP address and try to get the one, lets make it short either you can bind the IP address with client MAC so once client will send discover message DHCP server will decide based on MAC (client identifier) and provide the bind address or you can exclude that IP address specifically by doing " IP dhcp exclude-address 10.10.10.5 10.10.10.10 (now in this case from 5 to 10 will not be allocated to any client when he send DHCP discover message).
Dhcp excluding can be done in global with IP DHCP exclude-address while MAC binding can be done inside of DHCP pool by "address 10.10.10.5 hardware-address aa.bb.cc,dd.ee.ff "
Hope that answer the question.
Being a learner if I have any mistake please correct.
Kindest regards,
Uzzi
01-18-2018 02:15 AM
Hi all,
I'm asking specifically about the client, not the server. On Windows clients they will request lease extension at t1 and request the same IP as they already have at t2 I think - though this i dont think is true for routers. On windows you can fix the registry to inform the dhcp client that it should request an IP address of your choosing I was wondering if you could do the same for a router. I didn't think so and looks like you can't.
Thanks for the help.
Gareth
01-18-2018 07:26 AM
Gareth
Unfortunately I believe that Cisco routers and switches do not have the ability to do what you want.
HTH
Rick
01-18-2018 01:13 AM
I think, there is no solution as you need. But you can archive the same (90%) if your DHCP server in another VLAN using IP helper address, and second option is configure DHCP snooping.
Regards,
Deepak Kumar
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