Cisco DHCP Server Static IP Mappings

I have a Cisco switch that hands out DHCP addresses with the following config:
ip dhcp excluded-address 192.168.97.1 192.168.97.10
ip dhcp excluded-address 192.168.97.222
!
ip dhcp pool TEST
 network 192.168.97.0 255.255.255.0
 dns-server 10.1.42.41 10.1.42.42
 default-router 192.168.97.2

Open in new window

I am trying to get the DHCP server to always assign a given MAC address the same IP address.  This is critical for some testing we do.  I have tried the following with no luck:
ip dhcp pool TEST
 network 192.168.97.0 255.255.255.0
 dns-server 10.1.42.41 10.1.42.42
 default-router 192.168.97.2
   address 192.168.97.201 hardware-address b86b.2348.2a83

Open in new window

I want the given MAC address to be assigned 192.168.97.201, but I always get a different address from the pool.  I have tried the client-id command instead of hardware address as well with no luck.

I am testing this with my Windows laptop using the ipconfig /release and /renew commands.  Releasing the IP at the laptop removes it from the Cisco DHCP Bindings list, but the Renew command gives me back the same, wrong IP address.

Any ideas what I'm doing wrong here?

Thanks in advance for your assistance!
CipherUserAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
Static lease is more practical. It will not interfere with static IP on the host.
Craig BeckCommented:
If you put the reservation in the main pool it doesn't work.  You need to create a pool per client.

ip dhcp excluded-address 192.168.97.1 192.168.97.10
ip dhcp excluded-address 192.168.97.222
!
ip dhcp pool TEST
 network 192.168.97.0 255.255.255.0
 dns-server 10.1.42.41 10.1.42.42
 default-router 192.168.97.2
!
ip dhcp pool static
   host 192.168.97.201 255.255.255.0
   hardware-address b86b.2348.2a83

Open in new window

gheistCommented:
it is more practical to take IPs from end of pool...
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

CipherUserAuthor Commented:
Craigbeck - I created the individual pool as you suggested and it still doesn't work.  HELP! : )

Here's what I configured first:
ip dhcp excluded-address 192.168.97.1 192.168.97.10
ip dhcp excluded-address 192.168.97.222
!
ip dhcp pool TEST
 network 192.168.97.0 255.255.255.0
 dns-server 10.1.42.41 10.1.42.42
 default-router 192.168.97.2
!
ip dhcp pool static
 host 192.168.97.201 255.255.255.0
 hardware-address b86b.2348.2a83

Open in new window

This didn't work and the laptop still received the same address (192.168.97.147) from the DHCP pool.  So I tried the Client-identifier option like so:
ip dhcp pool static
 host 192.168.97.201 255.255.255.0
 client-identifier b86b.2348.2a83

Open in new window

This also did not work.  I ran Wireshark on the DHCP request from the laptop and noticed that the laptop DHCP request packet was actually requesting the 192.168.97.147 address (Please see image).  

I tried a reboot and still received the same IP address.  Getting clever (or so I thought), I excluded 192.168.97.147 from the DHCP address pool on the Cisco switch.  I did an ipconfig release/renew and received the IP address of 192.168.97.151

Lastly, I ran DEBUG for DHCP on the switch and received the following:

May  4 23:55:58.666: DHCPD: Reload workspace interface Vlan1 tableid 0.
May  4 23:55:58.666: DHCPD: tableid for 192.168.97.1 on Vlan1 is 0
May  4 23:55:58.666: DHCPD: client's VPN is .
May  4 23:55:58.666: DHCPD: DHCPREQUEST received from client 01b8.6b23.482a.83.
May  4 23:55:58.666: DHCPD: Sending DHCPACK to client 01b8.6b23.482a.83 (192.168.97.151).
May  4 23:55:58.666: DHCPD: no option 125
May  4 23:55:58.666: DHCPD: broadcasting BOOTREPLY to client b86b.2348.2a83..  

No matter what I try, I never receive the IP address that I've configured to be assigned based on the MAC address of the laptop.  I have reproduced this with a different laptop as well.

ANY advice you or anyone could give would be GREATLY appreciated.  This would seem to be a simple thing to configure, but I'm not getting anywhere with this.

Thanks in advance!!
DHCP-Request.jpg
Craig BeckCommented:
May  4 23:55:58.666: DHCPD: DHCPREQUEST received from client 01b8.6b23.482a.83
This is important!

Try this instead...

ip dhcp pool static
 host 192.168.97.201 255.255.255.0
 hardware-address 01b8.6b23.482a.83

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CipherUserAuthor Commented:
Craigbeck - That fixed it with the exception that I had to use the client-identifier designation because using the hardware-address option didn't work.

Thanks for your expertise!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DHCP

From novice to tech pro — start learning today.