If you want to do DHCP reservation, you need to create host based DHCP pools:
ip dhcp pool host1
host x.x.x.x 255.255.255.0
dns-server x.x.x.x x.x.x.x
To come up with a client identifier, you take client's MAC address, add 01 in front, and and shift "." (dot) one byte to the left
For example, if this is my mac address
Then this is my client id:
Thank you for help.
I need solution witch works in sticky nature like port security, where you don't have to specify static mac address it just learns dynamically?
Create a dhcp reservation.
ip dhcp pool mypool
host 10.1.1.35 255.255.255.0
Create a pool, define an ip/mask, tell router what mac address gets the ip, define gateway. That's it.
Edit: Just saw Roman's response. His solution works as well.
I've had issues with "hardware-address" not working for some clients, but it should work in most cases. I could be thinking about PPPoE IOS client.