Announcement

Collapse
No announcement yet.

Anybody good at ISC DHCP match classes?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Anybody good at ISC DHCP match classes?

    I'm a bit green at creating classes in ISC. Could someone proofread this for me? I think I'm missing a semi-colon somewhere...
    Code:
    class "STB" {
     match if (
     (
      (substring (option vendor-class-identifier, 0, 12) = "minerva3800w") or
      (substring (option vendor-class-identifier, 0, 13) = "minerva5810wx") or
      (substring (option vendor-class-identifier, 0, 12) = "ADB-3721WN") or
      (substring (option vendor-class-identifier, 0, 12) = "ADB-5721WNX") or
      (substring (option vendor-class-identifier, 0, 14) = "minerva2500w")
      ) and
      match if substring(hardware, 1,3) = 00:03:91;
     )
    }
    TIA

    #2
    Re: Anybody good at ISC DHCP match classes?

    You want a match if the vendor class identifier matches ANY ONE of the five options AND the hardware var beginning at position 1 for the next 3 positions contains "00:" ?
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      Re: Anybody good at ISC DHCP match classes?

      Yup. Match any of the vendor-class-identifiers AND the mac address starting with 00:03:91.

      Comment


        #4
        Re: Anybody good at ISC DHCP match classes?

        Originally posted by GreyGeek
        beginning at position 1 for the next 3 positions contains "00:" ?
        So you are saying it should be (hardware, 1,8) to match 00:03:91?

        Comment

        Working...
        X