02-16-2011 08:28 AM - edited 03-06-2019 03:35 PM
I would like to ensure that one of my DHCP clients gets the same IP Address every time. I'm not 100% sure on how to implement this configuration on my Cisco 831 router running IOS version 12.4.
Here is my existing DHCP configuration:
ip dhcp excluded-address 10.10.10.1
ip dhcp pool CLIENT
import all
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
lease 0 2
Here is the MAC address of the client of interest:
0160.eb69.426f.59
I would like the client to receive IP address 10.10.10.249 everytime.
Can you tell me what configuration changes to make? Thank you very much!
James
Solved! Go to Solution.
02-16-2011 10:40 AM
Hi,
plug in the client and when it gets an IP with dhcp then do a sh ip dhcp bindings on the router.
take note of client-identifier, if it is 12 chars then use the hardware-address command otherwise if it's 14 chars beginning with 01 then
use the client-identifier command in your static pool.
For the pool:
ip dhcp pool static-pool
host 10.10.10.249 255.255.255.0
hardware-address| client-identifier xxxxxxxxx
It will derive other options from parent pool CLIENT.
Regards.
Alain.
02-16-2011 10:40 AM
Hi,
plug in the client and when it gets an IP with dhcp then do a sh ip dhcp bindings on the router.
take note of client-identifier, if it is 12 chars then use the hardware-address command otherwise if it's 14 chars beginning with 01 then
use the client-identifier command in your static pool.
For the pool:
ip dhcp pool static-pool
host 10.10.10.249 255.255.255.0
hardware-address| client-identifier xxxxxxxxx
It will derive other options from parent pool CLIENT.
Regards.
Alain.
02-16-2011 10:57 AM
Alain,
Thank you! I will do that.
How do I update the configuration if I decide that I want to do this with a second machine?
I appreciate the help!
James
02-16-2011 11:11 AM
Hi,
You create another manual binding(static) pool for the other machine, igf it's the same OS it will use the same identifier(mac address or client-identifier).
take a look here :http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfdhcp.html#wp1001108
Regards.
Alain.
02-17-2011 08:03 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