DHCP and Option 82

Daniel Ryšlink ryslink at dialtelecom.cz
Mon Feb 19 11:18:35 CET 2018


Hello,

Can anyone please provide a link to a working example of a Freeradius 
with DHCP virtual server where the users accessing the network are 
identified not by a MAC address, nor by Calling-Station-ID, but by the 
attributes encoded into Option 82, specifically in the radius packet:

(0)   ADSL-Agent-Circuit-Id = 0x4769302f31393a3130
(0)   ADSL-Agent-Remote-Id = 0x010b465454582d535749544348

And in the DHCP packet:

OPTION:  82 ( 26) Relay Agent Information
                   Circuit-ID    47:69:30:2f:31:39:3a:31:30
                   Remote-ID 01:0b:46:54:54:58:2d:53:57:49:54:43:48

The file mods-enabled/dhcp states in comments only this:

"#  This module is useful only for 'xlat'.  To use it,
#  put 'dhcp' into the 'instantiate' section.
#
#  %{dhcp_options:<Attribute-ref>} may be used to decode
#  DHCP options data included in RADIUS packets by vendors
#  of DHCP to RADIUS gateways.
#
#  This is known to work with the following VSAs:
#       * Juniper               - ERX-Dhcp-Options
#       * Alcatel lucent SR     - Alc-ToServer-Dhcp-Options
#                               - Alc-ToClient-Dhcp-Options
#"

I use MySQL as a backend for my ippools, but the queries.conf work only 
operate with "Calling-Station-Id", or "Nas-Port-Id".

Is the solution to define in mods-enabled/dhcp something like:

dhcp {
         Calling-Station-Id = 
%{dhcp_options:<Circuit-ID>}%{dhcp_options:<Agent-ID>}
}

?

Any information will be greatly appreciated, thank you.

-- 
S pozdravem,
Daniel Ryšlink
System Administrator

Dial Telecom a. s.
Křižíkova 36a/237
186 00 Praha 3, Česká Republika
Tel.:+420.226204627
daniel.ryslink at dialtelecom.cz
-----------------------------------------------
www.dialtelecom.cz
Dial Telecom, a.s.
Jednoduše se připojte
-----------------------------------------------



More information about the Freeradius-Users mailing list