DHCP and Option 82

Daniel Ryšlink ryslink at dialtelecom.cz
Fri Feb 23 14:17:40 CET 2018


Hello,

I am trying to do both a Radius server and a DHCP server as a Freeradius 
virtual server. The radius part is already working, but I have not 
figured out how to pass the option 82 values to the DHCP server that 
should use them to identify a client and assign him an IP address from a 
static table.

Basically, the key should be a pair of the following values (they are 
both in the Radius packet and the DHCP packet):

DHCP:

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

Radius:

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

and for each such matching pair, the DHCP should return an IP address 
from a static table.


Example:

{ 0x4769302f31393a31300, 0x010b465454582d535749544348 } => 10.10.100.130

{ 0x4769302f31373a31300, 0x010b465454582d535749544348 } => 10.10.100.120


It should be a standard example of DHCP based ADSL network - user ADSL 
modems are asking a BRAS (Cisco MX104) for access, and are assigned IP 
addresses and other configuration values (netmask, GW, nameservers) from 
DHCP.


-- 
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
-----------------------------------------------

On 23.2.2018 13:55, Бенджамин Томпсон wrote:
>
>         On Feb 19, 2018, at 11:18 AM, Daniel Ryšlink
>         <ryslink at dialtelecom.cz <mailto:ryslink at dialtelecom.cz>> wrote:
>
>             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:
>
>
>
> I'm a bit confused about what you are trying to do. DHCP or RADIUS? 
> Maybe you could describe your network setup. Also don't forget to 
> always post the full output of radiusd -X along with your questions.
>



More information about the Freeradius-Users mailing list