Re: Mac Address\IP Bunding on Cisco 3560

Unanswered Question
Jan 19th, 2006

I was searching for an option on the Cisco 3560 to statically assign an ip address on a particlar host on a vlan1 as an example. Currently the 3560 is DHCP enabled.

ip dhcp excluded-address 10.x.x.x 10.x.x.x

!

ip dhcp pool 1

network 10.x.x.0 255.255.255.255

domain-name northamerica.corporate-domain.net

dns-server 10.x.x.x 10.x.x.x

netbios-name-server 255.66.175.255

default-router 10.x.x.1

lease 0 12

!

What would the command be to bind a reserved ip for a host with the mac of xxxx.xxxx.xxx.xxxx

Thanks.

-fz

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 4 (1 ratings)
pkhatri Thu, 01/19/2006 - 15:47

Hi,

Try the following:

For each client requiring a specific IP address, create a pool as such:

ip dhcp pool client1

host

hardware-address xxxx.xxxx.xxxx

client-name

Note that you cannot use the same pool as the one you have already got. You need to create a different pool for the client and then again, a new pool for each client requiring this.

Pls remember to rate posts.

Paresh,

zapanta.f Thu, 01/19/2006 - 16:22

Thank you very much! Is this posted on the 3560 support docs? I was unable to find this knowledge info. I'll let you know how it works out.

-fz

pkhatri Thu, 01/19/2006 - 16:28

If you read this:

http://www.cisco.com/en/US/customer/products/hw/switches/ps5528/products_configuration_guide_chapter09186a0080509b6d.html#wp1098426

.. it referneces the 'Cisco IOS IP Configuration Guide, Release 12.2' which has info on manual bindings at:

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fipr_c/ipcprt1/1cfdhcp.htm#wp1001108

Pls do remember to rate posts...

Paresh.

zapanta.f Thu, 01/19/2006 - 17:03

I just tested this with the 3560 and it does not seem sot bind the address. Thanks again.

pkhatri Thu, 01/19/2006 - 17:06

Could you post the relevant bits of the config you are using ?

Thanks,

Paresh.

pkhatri Thu, 01/19/2006 - 17:22

Hi again,

Do you have a web server that you can access from your router ? There is another way of doing this where you can get away without having all those DHCP pools. You can place your MAC to IP mappings in a file, stick it on a web server, and get your router to use that for address assignment.

Paresh.

zapanta.f Fri, 01/20/2006 - 19:20

here is a copy of the config for 2 clients and a the DHCP Pool.

The mac\ip bundung does not seems to work. I have tested this with a laptop's unique Identifier.

ip dhcp excluded-address 172.16.12.1 172.16.12.99

!

ip dhcp pool 1

network 172.16.12.0 255.255.255.0

domain-name xxxdomain.com

dns-server 172.16.12.20 172.16.12.21

netbios-name-server x.x.x.x

default-router 172.16.12.1

lease 0 12

!

!

ip dhcp pool client2

host 172.16.12.100 255.255.255.0

client-identifier 0011.4342.e9a5

client-name My LAPTOP

domain-name INEED.HELP. FIXING. MY DHCPISSUE.com

dns-server 172.16.12.21 172.16.12.34

default-router 172.16.12.1

pkhatri Fri, 01/20/2006 - 19:42

Could you try with a stripped down version which just contains the following in the pool:

ip dhcp pool client2

host 172.16.12.100 255.255.255.0

client-identifier 0011.4342.e9a5

client-name My LAPTOP

Also, as I previously asked, are you able to reach a locally administered web server from your router ? We could try a different tack ?

Paresh

pkhatri Fri, 01/20/2006 - 20:26

Actually, you can use a TFTP server...

First of all, create a text file using a text editor (call it 'dhcpstatic', for instance) with the following contents (don't include the dashes):

----

*time* Jan 21 2005 03:52 PM

*version* 1

!IP address Type Hardware address Lease expiration

172.16.12.100 /24 1 0011.4342.e9a5 Infinite

----

Then do the following:

no service dhcp

ip dhcp pool pool1

network 172.16.12.0 255.255.255.0

domain-name xxxdomain.com

dns-server 172.16.12.20 172.16.12.21

netbios-name-server x.x.x.x

default-router 172.16.12.1

lease 0 12

origin file tftp:///dhcpstatic

Then do a 'service dhcp'...

Once you have this working, we can do a further optimisation by storing the file on your switch so that you don't need to use a TFTP server...

Hope that helps - pls rate the post if it does.

Paresh

Actions

Login or Register to take actions

This Discussion

Posted January 19, 2006 at 3:04 PM
Stats:
Replies:11 Avg. Rating:4
Views:320 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard

Rank Username Points
1 2,069
2 1,736
3 1,675
4 1,624
5 1,529