{"id":259,"date":"2016-07-23T16:59:51","date_gmt":"2016-07-23T15:59:51","guid":{"rendered":"https:\/\/zed-network.fr\/?p=259"},"modified":"2019-07-19T08:31:02","modified_gmt":"2019-07-19T07:31:02","slug":"cisco-dhcp-with-client-identifier-27-bytes","status":"publish","type":"post","link":"https:\/\/zed-network.fr\/?p=259","title":{"rendered":"Cisco DHCP with client-identifier 27 bytes"},"content":{"rendered":"<p>How configure the good value for a DHCP reservation with a client-identifier 27 bytes?<\/p>\n<p>R1 will be the dhcp server with a DHCP POOL SERVER3.&nbsp;The client MAC Address will be : aacf.a2e3.aaff<\/p>\n<p>Configuration ont the client :<\/p>\n<pre> interface Ethernet0\/0\n mac-address aacf.a2e3.aaff\n ip address dhcp<\/pre>\n<p>The problem here is to find the good value for the client identifier with 27 bytes (vendor-xxxx.xxxx.xxxx-Interface)<\/p>\n<p>The first possibility is to find on the Internet a convertor Hex to ASCII.<\/p>\n<p>The other one is to use the debug information on the client to find the good value with <strong>debug dhcp detail <\/strong>command.<\/p>\n<p>Now we will shutting down the interface and no shut to generate a DHCP negotiation.<\/p>\n<p>Now we see the good value here :<\/p>\n<pre>Retry count: 1 Client-ID: cisco-aacf.a2e3.aaff-Et0\/0\n Client-ID hex dump: 636973636F2D616163662E613265332E\n 616166662D4574302F30<\/pre>\n<p>The request is the following in ASCII : <strong>Client-ID: cisco-aacf.a2e3.aaff-Et0\/0<\/strong><\/p>\n<p>In Hexadecimal : <strong>636973636F2D616163662E613265332E616166662D4574302F30<\/strong><\/p>\n<p>Now you just need to configure the DHCP pool on the server and add &#8220;<span style=\"color: #ff0000;\"><strong>00<\/strong><\/span>&#8221; to the Hexadecimal value like this :<\/p>\n<pre>ip dhcp pool SERVER3\n host 192.168.30.103 255.255.255.0\n client-identifier <span style=\"color: #ff0000;\"><strong>00<\/strong><\/span>636973636F2D616163662E613265332E616166662D4574302F30<\/pre>\n<p>Now the client can receive the IP address :<\/p>\n<pre>*Jul 23 17:44:36.638: DHCP: SRequest attempt # 1 for entry:\n*Jul 23 17:44:36.638: Temp IP addr: 192.168.30.103 for peer on Interface: Ethernet0\/0\n*Jul 23 17:44:36.638: Temp sub net mask: 255.255.255.0\n*Jul 23 17:44:36.638: DHCP Lease server: 192.168.30.13, state: 4 Requesting\n*Jul 23 17:44:36.638: DHCP transaction id: B43\n*Jul 23 17:44:36.638: Lease: 86400 secs, Renewal: 0 secs, Rebind: 0 secs\n*Jul 23 17:44:36.638: Next timer fires after: 00:00:03\n<span style=\"color: #ff0000;\"><strong>*Jul 23 17:44:36.638: Retry count: 1 Client-ID: cisco-aacf.a2e3.aaff-Et0\/0<\/strong><\/span>\n<span style=\"color: #ff0000;\"><strong>*Jul 23 17:44:36.638: Client-ID hex dump: 636973636F2D616163662E613265332E<\/strong><\/span>\n<span style=\"color: #ff0000;\"><strong>*Jul 23 17:44:36.639: 616166662D4574302F30<\/strong><\/span>\n&lt;...&gt;\n*Jul 23 17:44:39.657: DHCP: Releasing ipl options:\n*Jul 23 17:44:39.657: DHCP: Applying DHCP options:\n<strong><span style=\"color: #ff0000;\">*Jul 23 17:44:39.657: DHCP: Sending notification of ASSIGNMENT:<\/span><\/strong>\n<strong><span style=\"color: #ff0000;\">*Jul 23 17:44:39.657: Address 192.168.30.103 mask 255.255.255.0<\/span><\/strong>\n<strong><span style=\"color: #ff0000;\">*Jul 23 17:44:39.657: DHCP Client Pooling: ***Allocated IP address: 192.168.30.103<\/span><\/strong>\n<strong><span style=\"color: #ff0000;\">*Jul 23 17:44:39.730: Allocated IP address = 192.168.30.103 255.255.255.0\n<\/span><\/strong><\/pre>\n<pre>Client(config-if)#do sh ip int brief\n Interface IP-Address OK? Method Status Protocol\n Ethernet0\/0 192.168.30.103 YES DHCP up up<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How configure the good value for a DHCP reservation with a client-identifier 27 bytes? R1 will be the dhcp server with a DHCP POOL SERVER3.&nbsp;The client MAC Address will be : aacf.a2e3.aaff Configuration ont the client : interface Ethernet0\/0 mac-address aacf.a2e3.aaff ip address dhcp The problem here is to find the good value for the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[4,1],"tags":[],"class_list":["post-259","post","type-post","status-publish","format-standard","hentry","category-cisco","category-non-classe"],"_links":{"self":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259"}],"version-history":[{"count":2,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":393,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions\/393"}],"wp:attachment":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}