Help: MAC Address case-sensitive

Sten Carlsen stenc at s-carlsen.dk
Mon Nov 5 10:15:42 UTC 2012


I just took a look at my config, I use lower case for some hosts and
upper case for some other hosts.

I also have a lot of subclasses,matching on hardware, I use both cases
there.

They all work, so I can confirm that in those two cases the case does
not matter.

Version is 4.1.0p1 (redhat version).

On 05/11/12 7:10, Glenn Satchell wrote:
> Hi Eric
>
> This is from the dhcpd.conf man page:
>
>        hardware hardware-type hardware-address;
>
>        In order for a BOOTP client to be recognized, its  network
>        hardware  address must be declared using a hardware clause
>        in the host statement.  hardware-type must be the name  of
>        a  physical hardware interface type.   Currently, only the
>        ethernet and token-ring  types  are  recognized,  although
>        support  for  a fddi hardware type (and others) would also
>        be desirable.  The hardware-address should  be  a  set  of
>        hexadecimal  octets  (numbers from 0 through ff) separated
>        by colons.   The hardware statement may also be  used  for
>        DHCP clients.
>
> It says hexadecimal  octets  (numbers from 0 through ff), which to me
> implies using lower case.
>
> However, looking at the source in common/parse.c leads us eventually to
> parse_hardware_param() which calls convert_num() which handles the case
> for both lower and upper case. So it would appear that you should be able
> to use upper, lower or a mix of cases for the mac address.
>
> regards,
> -glenn
>
> On Mon, November 5, 2012 4:51 pm, Lee Eric wrote:
>> Hi,
>>
>> Here's my config.
>>
>>         host example {
>>                 hardware ethernet E4:1F:13:B3:96:FA;
>>                 fixed-address 10.33.8.105;
>>         }
>>
>> Thanks.
>>
>> Eric
>>
>>
>> On Sat, Nov 3, 2012 at 1:19 AM, Staci Page <danalmmp79437 at yahoo.com>
>> wrote:
>>
>>> --8<-- snip spam --8<--
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

-- 
Best regards

Sten Carlsen

No improvements come from shouting:
       "MALE BOVINE MANURE!!!"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20121105/7615e61e/attachment.html>


More information about the dhcp-users mailing list