Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. option 82 circuit-id host-identifier extra leading characters
      in string (Greg Fausak)


----------------------------------------------------------------------

Message: 1
Date: Wed, 19 Dec 2018 13:24:59 -0600
From: Greg Fausak <lgfau...@gmail.com>
To: dhcp-users@lists.isc.org
Subject: option 82 circuit-id host-identifier extra leading characters
        in string
Message-ID:
        <CAFzt8d7q3j2D6Y-=axvvnuuuztu+jcwda-ed-rm-pk+3eef...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I have recently started using the circuit to assign ip addresses. looking
at all of the examples online i don't see an issue that I had with the
string itself.  It starts with a 0x01, and then it has the length of the
string in the next byte, followed by the circuit id, like this:

  host hostnum1000019 {

        host-identifier option agent.circuit-id
"\x01\x20myrelayswitchnamehere:Ethernet17";

        fixed-address 192.168.100.219;

  }


  host hostnum1000020 {

        host-identifier option agent.circuit-id
"\x01\x20myrelayswitchnamehere:Ethernet18";

        fixed-address 192.168.100.220;

  }

this configuration here functions using isc dhcpd version 4.2.5.  i realize
the leading two characters are part of the protocol, but I didn't expect to
have to encode them in my host-identifier string.  Since I don't see these
extra characters in any examples, is there something not set right here?

-g
-- 
Greg Fausak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20181219/0ceb650d/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 122, Issue 6
******************************************

Reply via email to