cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
944
Views
4
Helpful
11
Replies

Re: Mac Address\IP Bunding on Cisco 3560

zapanta.f
Level 1
Level 1

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

11 Replies 11

pkhatri
Level 11
Level 11

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,

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

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.

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

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

Thanks,

Paresh.

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.

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

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

What do I need to do on the web server?

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

I'll test this out!

Thanks.-fz

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: