05-09-2011 01:12 PM - edited 03-06-2019 04:58 PM
Hello,
I am running 3560G as DHCP server. Does it have any feature that allows it to give
computers always same ip address ?
05-09-2011 01:46 PM
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
client-identifier 0158.b035.74bc.86
default-router x.x.x.x
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
58b0.3574.bc86
Then this is my client id:
0158.b035.74bc.86
05-10-2011 01:48 AM
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?
05-09-2011 06:27 PM
Create a dhcp reservation.
ip dhcp pool mypool
host 10.1.1.35 255.255.255.0
hardware-address 00e4.57b3.09c3
default-router 10.1.1.1
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.
05-09-2011 06:30 PM
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.
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