<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: dhcp</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/dhcp/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Howto | Determine vendor-class-identifier</title>
      <link>https://chrisjrob.com/2009/04/14/determine-vendor-class-identifier/</link>
      <pubDate>Tue, 14 Apr 2009 07:49:13 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/04/14/determine-vendor-class-identifier</guid>
      <description>
       <![CDATA[
         
         <h2 id="introduction">Introduction</h2>

<p>All the advice about DHCP and PXEClient tells you about the ability to configure based on the client’s vendor-class-identifier string, but nowhere tells you how to find out the contents of this magical string.  In fact it couldn’t really be easier, as the following instructions explain:</p>

<h2 id="step-1---update-dhcp-server">Step 1 - Update DHCP Server</h2>

<!--more-->

<p>Simply modify <code class="language-plaintext highlighter-rouge">/etc/dhcp3/dhcpd.conf</code> on your DHCP server and add the following somewhere near the top:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># So that the vendor-class-identifier shows in dhcpd.leases file
set vendor-string = option vendor-class-identifier;
</code></pre></div></div>

<h2 id="step-2---restart-your-dhcp-server">Step 2 - Restart your DHCP server</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># /etc/init.d/dhcp3-server restart
</code></pre></div></div>

<h2 id="step-3---test-boot-a-client">Step 3 - Test Boot a Client</h2>

<p>Then boot a client and look at the contents of the <code class="language-plaintext highlighter-rouge">/var/lib/dhcp3/dhcpd.leases</code> file, you should find entries like this:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>lease 192.168.0.174 {
    starts 2 2009/04/14 07:40:21;
    ends 2 2009/04/14 13:40:21;
    binding state active;
    next binding state free;
    hardware ethernet 00:fb:3d:5f:fg:7e;
    set vendor-string = "PXEClient:Arch:00000:UNDI:002001";
}
</code></pre></div></div>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
