<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic creating a dhcp class in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/creating-a-dhcp-class/m-p/2891822#M89023</link>
    <description>I am trying to create a dhcp class in the dhcpd.conf file based on the first 3 bits of a MAC address.&lt;BR /&gt;&lt;BR /&gt;We have to configure a large number of mobile devices which all have a MAC address starting 00:a0:f8. I want to create a class based on this information so I can alloacte a sperate IP range and also a short default lease time.&lt;BR /&gt;&lt;BR /&gt;A "tcpdump -lenx -s 1500 port 67 | dhcpdump" command give the following information as part of a dhcprequest packet:&lt;BR /&gt;&lt;BR /&gt;OPTION:  61 (  7) Client-identifier   0100a0f827540b&lt;BR /&gt;&lt;BR /&gt;but using an entry:&lt;BR /&gt;match if substring(option dhcp-client-indentifier, 0, 10) = "0100A0F8"&lt;BR /&gt;&lt;BR /&gt;does not work.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Jan 2003 12:28:01 GMT</pubDate>
    <dc:creator>John Waller</dc:creator>
    <dc:date>2003-01-29T12:28:01Z</dc:date>
    <item>
      <title>creating a dhcp class</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-dhcp-class/m-p/2891822#M89023</link>
      <description>I am trying to create a dhcp class in the dhcpd.conf file based on the first 3 bits of a MAC address.&lt;BR /&gt;&lt;BR /&gt;We have to configure a large number of mobile devices which all have a MAC address starting 00:a0:f8. I want to create a class based on this information so I can alloacte a sperate IP range and also a short default lease time.&lt;BR /&gt;&lt;BR /&gt;A "tcpdump -lenx -s 1500 port 67 | dhcpdump" command give the following information as part of a dhcprequest packet:&lt;BR /&gt;&lt;BR /&gt;OPTION:  61 (  7) Client-identifier   0100a0f827540b&lt;BR /&gt;&lt;BR /&gt;but using an entry:&lt;BR /&gt;match if substring(option dhcp-client-indentifier, 0, 10) = "0100A0F8"&lt;BR /&gt;&lt;BR /&gt;does not work.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jan 2003 12:28:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-dhcp-class/m-p/2891822#M89023</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2003-01-29T12:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: creating a dhcp class</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-dhcp-class/m-p/2891823#M89024</link>
      <description>Umm.. lets see..&lt;BR /&gt;&lt;BR /&gt;substring takes two paramters, an offset, and a length.&lt;BR /&gt;&lt;BR /&gt;Now, given that you are grabbing 10 characters of the 'dhcp-client-identifier', and comparing it against only 8 digits, I'm picking you'll never get a match.&lt;BR /&gt;&lt;BR /&gt;Try using a length of '8', i.e.:&lt;BR /&gt;&lt;BR /&gt;match if substring(option dhcp-client-identifier, 0, 8) = "0100A0F8"&lt;BR /&gt;&lt;BR /&gt;Or bugger off dhcp-client-identifier, and just use:&lt;BR /&gt;&lt;BR /&gt;match if substring(hardware, 0, 8) = "0100A0F8"&lt;BR /&gt;&lt;BR /&gt;If these still fail, show us a bit more of your dhcpd.conf than just this one line.</description>
      <pubDate>Wed, 29 Jan 2003 23:26:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-dhcp-class/m-p/2891823#M89024</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-01-29T23:26:58Z</dc:date>
    </item>
  </channel>
</rss>

