09-16-2006 03:17 PM - edited 03-03-2019 05:04 AM
I have a Cisco 831 router. I am handing out DHCP to my network via the router
ip dhcp pool HmPrivate
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.20
domain-name hmprivate.net
What I am trying to do is assign the same ip address to my laptop via DHCP by associating the mac address of the laptop to the DHCP ip address. This is easily done on a windows server.
I have not been able to figure it out on this router though. I have looked at the commands under the pool as well as in config mode. Nothing is jumping out at me.
Any assistance is greatly appreaciated!
Solved! Go to Solution.
09-19-2006 04:42 PM
Hi,
DHCP manual binding doesn't use the mac address. You need to configure the client id to manually bind an address to a host. The client id uses ASCII characters. The easy to way to find the client ID is to enable 'debug ip dhcp server packet' on your router and use that address as your client ID under the DHCP pool configuration. Exercise caution when enabling debugs in a production network.
HTH
Sundar
09-16-2006 03:42 PM
Del,
The feature that you are looking for is called Manual Bindings.
Please refer the below URL for configuration:
I hope it helps.
Regards,
Arul
09-17-2006 01:00 AM
Hi Hope,
ur configuration lookz fine for a dynamic IP address assignment, but for a static IP for a MAC lookz like .....
ip dhcp pool test
host 192.168.1.2 /24
hardware-address aaaa.bbbb.cccc.dddd
if it is an windows OS, juz include 00 or 01 b4 the mac for linux OS, u don't require that 00 or 01.
hope this helps.
rate this post.
09-18-2006 04:34 PM
Ok I powered up my laptop got an ip address from the rtr of 192.168.1.21. On the router i did a sh arp to get my hardware address of 0015.0025.60aa. I then created the new DHCP pool for the static entry. From my windows laptop i do an ipconfig / release then a ipconfig / renew. I keep getting the 192.168.1.21 address and not the 192.168.1.13 address that I want.
Am I missing something really simple here? Why wont the laptop grab the 192.168.1.13 address?
ip dhcp pool HmLaptop
host 192.168.1.13 255.255.255.0
hardware-address 0100.1500.2560.aa
default-router 192.168.1.1
dns-server 192.168.1.20
client-name dhopewell2
Here is a list of all DHCP pools on my router.
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
ip dhcp excluded-address 192.168.1.250 192.168.1.254
ip dhcp excluded-address 192.168.50.1 192.168.50.100
ip dhcp excluded-address 192.168.24.1 192.168.24.100
!
ip dhcp pool HmPrivate
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.20
!
ip dhcp pool HmWK
network 192.168.24.0 255.255.255.0
default-router 192.168.24.1
dns-server 10.0.101.12 10.0.101.13
option 150 ip 10.200.1.50 10.200.1.51
!
ip dhcp pool vlan10
network 192.168.50.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.50.20
!
ip dhcp pool HmLaptop
host 192.168.1.13 255.255.255.0
hardware-address 0100.1500.2560.aa
default-router 192.168.1.1
dns-server 192.168.1.20
client-name dhopewell2
09-18-2006 07:08 PM
Del,
After you disconnect your PC, do a "clear ip dhcp binding * " on the router and then try to reconnect and see what IP Address the PC is getting.
Regards,
Arul
09-19-2006 03:05 PM
Nope, did not work. ANy other suggestions. It has to be something simple were missing.
09-19-2006 04:42 PM
Hi,
DHCP manual binding doesn't use the mac address. You need to configure the client id to manually bind an address to a host. The client id uses ASCII characters. The easy to way to find the client ID is to enable 'debug ip dhcp server packet' on your router and use that address as your client ID under the DHCP pool configuration. Exercise caution when enabling debugs in a production network.
HTH
Sundar
09-21-2006 06:00 PM
!!
09-21-2006 06:12 PM
Urica That was it!!! Yea!!!
I changed the:
hardware-address 0100.1500.2560.aa
To:
client-identifier 0100.1500.2560.aa
And NOW I get my 192.168.1.13 address.
Thanks!!!
09-21-2006 06:27 PM
Glad to hear the issue is resolved!! :-)
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: