tag:blogger.com,1999:blog-23021255.post6756259246705607024..comments2008-09-03T08:32:15.260+02:00Comments on Cisco IOS hints and tricks: Static DHCP assignment for clients without client-...Ivan Pepelnjakhttp://www.blogger.com/profile/13457151406311272386noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-23021255.post-85190881425853723002008-09-03T08:32:00.000+02:002008-09-03T08:32:00.000+02:002008-09-03T08:32:00.000+02:00I wanted to be absolutely sure, so I started Wires...I wanted to be absolutely sure, so I started Wireshark and captured DHCP packets generated by Linux and Cisco IOS (or Windows XP). The <A HREF="http://blog.ioshints.info/2008/09/some-dhcp-clients-do-not-use-client.html" REL="nofollow">results are here: by default Linux <B>does not</B> include <I>Client identifier</I> in DHCP packets</A>, so Cisco IOS cannot match it with the pool configuration; you <B>have to</B> use <B>mac-address</B>.Ivan Pepelnjakhttp://www.blogger.com/profile/13457151406311272386noreply@blogger.comtag:blogger.com,1999:blog-23021255.post-4894595993423321882008-08-30T17:38:00.000+02:002008-08-30T17:38:00.000+02:002008-08-30T17:38:00.000+02:00instead of using hardware-address you can use clie...instead of using hardware-address you can use client-identifier in the DHCP pool options. To see what client-identifier your machines have do a show ip dhcp bind *, and you can use that parameter in the pool's configurationJorgeā„¢http://www.blogger.com/profile/07668200810664705012noreply@blogger.comtag:blogger.com,1999:blog-23021255.post-19163227516438077682008-06-26T07:04:00.000+02:002008-06-26T07:04:00.000+02:002008-06-26T07:04:00.000+02:00@selcuk: this is what I've tried to do, but for wh...@selcuk: this is what I've tried to do, but for whatever reason, my dhclient.conf file worked while the machine was running but got ignored/overwritten (I don't remember which one any more) during the boot process. After a few hours, I gave up and found an IOS solution (after all, I'm a router-, not a Linux person :)<BR/><BR/>@anonymous: that's exactly what I'm doing, but if you see just the MAC address without the 01. prefix in the bindings, you don't know whether it's a host with broken Client-ID calculation (that happens as well) in which case you copy the value in <B>client-id</B> parameter, or a host not using the Client-ID at all forcing you to use <B>hardware-address</B> parameter.Ivan Pepelnjakhttp://www.blogger.com/profile/13457151406311272386noreply@blogger.comtag:blogger.com,1999:blog-23021255.post-84606111997670305902008-06-25T22:27:00.000+02:002008-06-25T22:27:00.000+02:002008-06-25T22:27:00.000+02:00My preffered way to solve this problem is define d...My preffered way to solve this problem is define dynamic DHCP pool then look into<BR/>show ip dhcp server bindings<BR/>to know how the client was recognized.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-23021255.post-3062677598807211942008-06-25T08:48:00.000+02:002008-06-25T08:48:00.000+02:002008-06-25T08:48:00.000+02:00For most of the modern linux distributions, you ca...For most of the modern linux distributions, you can use /etc/dhcp3/dhclient.conf to send whatever client-id you want to the dhcp server. This way you do not have to change the configuration when you replace your server's or desktop's network card.<BR/><BR/>I added the following line to the conf file;<BR/>send dhcp-client-identifier 01:xx:xx:xx:xx:xx:xx (Replace xx with the mac address you want to use)Selcukhttp://www.blogger.com/profile/02491247304137694575noreply@blogger.com