Csico DHCP static mapping

Sep 26, 2007 5 Replies

Hello,



I have cisco router running as DHCP server (12.2.(46)). It leases IP addresses dynamically with no problem. However, when I try to configure static binding , it does not work!



I tried both hardware-address and client-identification commands both of which failed. I see many contradictions on the net regarding this method so any advice would be most appreciated.



Here is the config snippet:



! ip dhcp pool 5 host 3.3.3.33 255.255.255.0 hardware-address ca02.13f8.001c default-router 3.3.3.20 !



Here is binding



R1#sh ip dhcp bind IP address Client-ID/ Lease expiration Type Hardware address



3.3.3.1 0063.6973.636f.2d63. Sep 27 2007 09:36 AM Automatic 6130.322e.3064.6438. 2e30.3031.632d.4574. 312f.30
3.3.3.33 ca02.13f8.001c Infinite Manual


---------------------------



I am trying to map 3.3.3.33 to ca02.13f8.001c which is not working.



Thanks


======

AFAIK you must aconfigure the DHCP client-identifier command for manual bindings:

config t no ip dhcp pool 5

ip dhcp pool 5 host 3.3.3.33 255.255.255.0 client-identifier 01ca.0213.f800.1c default-router 3.3.3.20 client-name TEST end

sh ip dhcp bind

use the "debug ip dhcp server packet" command to verify the DHCP client identifier being send by the PC with MAC address ca02.13f8.001c

The identifier may be:

ca02.13f8.001c

01ca.0213.f800.1c

Tried that also, but no help! sh ip dhcp bind shows a long entry for MAC address (or whatever that is):

0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.30

instead of ca02.13f8.001c or 01ca.0213.f800.1c

regards

Ivica

That's a client-id from a Cisco router. If you treat each pair of digits as an ASCII character it spells ".cisco-ca02.0dd8.001c-Et1/0".

So try configuring it like this.

ip dhcp pool 5 host 3.3.3.33 255.255.255.0 client-identifier

0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.3001ca.0213.f800.1c default-router 3.3.3.20 client-name TEST end

0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.3001ca.0213.f800.1c

I am curious, why would you be using a Cisco router as a DHCP client to another Cisco router ?

0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.3001ca.0213.f800.1c

Excellent answer,Martin! Thank you, this was the issue!!

regards

Ivica

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required