Router: 1605R used as nat/pat box to cable modem. Using ios c1600-k8osy-mz.123-9b.bin.
I’m trying to get a manual DHCP binding working. So far, no success. This is my corrent config:
ip dhcp excluded-address 192.168.24.192
ip dhcp excluded-address 192.168.24.1
ip dhcp excluded-address 192.168.24.2
ip dhcp excluded-address 192.168.24.3
ip dhcp ping timeout 100
!
ip dhcp pool pool02
host 192.168.24.4 255.255.255.0
hardware-address 0011.2fdf.b064 ieee802
default-router 192.168.24.2
dns-server <deleted>
client-name p4-3k
!
ip dhcp pool pool01
network 192.168.24.0 255.255.255.0
default-router 192.168.24.2
dns-server <deleted>
!
!
interface Ethernet0
description cable modem, get IP addr from ISP via DHCP client.
ip address dhcp client-id Ethernet0
ip nat outside
!
interface Ethernet1
description local LAN
ip address 192.168.24.2 255.255.255.0
ip nat inside
<other irrelevant stuff deleted>
Now, when i do a dhcp renew with my pc with the mac address 0011.2fdf.b064 i get an address from the pool (192.168.24.5) instead of the manually reserved 192.168.24.4 address.
I wonder what i’m doing wrong here, or maybe just don’t understand.
The DHCP client part on E0 works fine. It’s the DHCP server for the internal LAN that’s bugging me.
{ 3 comments… read them below or add one }
Yop are probably not doing anything wrong as far as I understand that is the it’s supposed to work.
Having said that I have never got it working that way.
However try this imsteed:
ip dhcp pool pool02
host 192.168.24.4 255.255.255.0
client-identifier 0100.112f.dfb0.64
default-router 192.168.24.2
dns-server
The 01 before the MAC address is the same as ieee802, when using the command hardware-address.
But please try it out and let me know what you think.
Use the client-identifier to make the reserve. This works with Microsoft DHCP clients.
http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a00800ca75c.html#wp1001108
http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cr/hiad_r/adr_a1h.htm#wp1122038
Thanks guys! That did the trick. I got my fixed lease now.
You must log in to post a comment.