Option82 - question about sending sub-options

Ľudovít Mikula ludovit.mikula at mikori.sk
Thu Sep 18 12:55:28 UTC 2025


I have a question about sending Option82 - I am setting sub-options 1,2 
and 9 in response to DISCOVER:

     update reply {
         &DHCP-Relay-Remote-Id := &request:DHCP-Relay-Remote-Id
         &DHCP-Relay-Circuit-Id := &request:DHCP-Relay-Circuit-Id
         &DHCP-Vendor-Specific-Information := 
&request:DHCP-Vendor-Specific-Information
     }


and see it being set in the freeradius log:

(1702)   DHCP-Relay-Remote-Id := 0xacdb489f87af
(1702)   DHCP-Relay-Circuit-Id := 0xacdb489f87af
(1702)   DHCP-Vendor-Specific-Information := 
0x0000118b060104010203010000061b34030a444d5a2d434f532d3032010e4554492d5250442d504f52542d300207756e69636173740e07000100000079000d040a666f07

and also in the packet capture of our OFFER packet:

             Agent-Information (82), length 8:
               Circuit-ID SubOption 1, length 6: M-,M-[HM-^_M-^GM-/
             Agent-Information (82), length 8:
               Remote-ID SubOption 2, length 6: M-,M-[HM-^_M-^GM-/
             Agent-Information (82), length 70:
               Unknown SubOption 9, length 68:
                 0x0000:  0000 118b 0601 0401 0203 0100 0006 1b34
                 0x0010:  030a 444d 5a2d 434f 532d 3032 010e 4554
                 0x0020:  492d 5250 442d 504f 5254 2d30 0207 756e
                 0x0030:  6963 6173 740e 0700 0100 0000 7900 0d04
                 0x0040:  0a66 6f07
             END (255), length 0

it all looks ok to me.


However the relay agent vendor requires the sub-options to be set in one 
Option 82 block (like they send it to us in DISCOVER):

             Agent-Information (82), length 86:
               Circuit-ID SubOption 1, length 6: M-,M-[HM-^_M-^GM-/
               Remote-ID SubOption 2, length 6: M-,M-[HM-^_M-^GM-/
               Unknown SubOption 9, length 68:
                 0x0000:  0000 118b 0601 0401 0203 0100 0006 1b34
                 0x0010:  030a 444d 5a2d 434f 532d 3032 010e 4554
                 0x0020:  492d 5250 442d 504f 5254 2d30 0207 756e
                 0x0030:  6963 6173 740e 0700 0100 0000 7900 0d04
                 0x0040:  0a66 6f07
             END (255), length 0

Is this possible (or am I doing something wrong), we're using freeradius 
v3.2.3 ?

-- 
Ludo


More information about the Freeradius-Users mailing list