cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2379
Views
0
Helpful
4
Replies
Highlighted
Beginner

3560G DHCP Server

Hello,

I am running 3560G as DHCP server. Does it have any feature that allows it to give
computers always same ip address ?

4 REPLIES 4
Highlighted
Rising star

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

Some older clients will use their MAC address as their client ID, but the standard requires the above format. What you can do is let your cient get a dynamic IP first and then look at its client id in the DHCP database with "show ip dhcp binding"
Good Luck!

Highlighted

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?

Highlighted
Rising star

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.

Highlighted

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.

Content for Community-Ad