01-19-2006 03:04 PM - edited 03-03-2019 01:30 AM
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
01-19-2006 03:47 PM
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,
01-19-2006 04:22 PM
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
01-19-2006 04:28 PM
If you read this:
.. it referneces the 'Cisco IOS IP Configuration Guide, Release 12.2' which has info on manual bindings at:
Pls do remember to rate posts...
Paresh.
01-19-2006 05:03 PM
I just tested this with the 3560 and it does not seem sot bind the address. Thanks again.
01-19-2006 05:06 PM
Could you post the relevant bits of the config you are using ?
Thanks,
Paresh.
01-19-2006 05:22 PM
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.
01-20-2006 07:20 PM
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
01-20-2006 07:42 PM
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
01-20-2006 07:46 PM
What do I need to do on the web server?
01-20-2006 08:26 PM
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://
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
01-21-2006 03:45 PM
I'll test this out!
Thanks.-fz
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