DHCP reply with opt82

Alex Jaliashvili admin at u-tele.com
Tue Jul 20 15:52:14 CEST 2010


Sources, server version and dictionary was ok.

The problem was in using "old" attributes:
DHCP-Agent-Circuit-Id := "%{request:DHCP-Agent-Circuit-Id}"
DHCP-Agent-Remote-Id := "%{request:DHCP-Agent-Remote-Id}"

Changed them to:
DHCP-Relay-Circuit-Id := "%{request:DHCP-Relay-Circuit-Id}"
DHCP-Relay-Remote-Id := "%{request:DHCP-Relay-Remote-Id}"
and now it works without any problem.

Debug still shows old attibute DHCP-Agent-Circuit-Id and doesn't show remote 
id at all:
Received DHCP-Discover of id 4a76b25e from 1.1.1.1:67 to 0.0.0.0:67
        DHCP-Opcode = Client-Message
        DHCP-Hardware-Type = Ethernet
        DHCP-Hardware-Address-Length = 6
        DHCP-Hop-Count = 1
        DHCP-Transaction-Id = 1249292894
        DHCP-Number-of-Seconds = 0
        DHCP-Flags = 0
        DHCP-Client-IP-Address = 0.0.0.0
        DHCP-Your-IP-Address = 0.0.0.0
        DHCP-Server-IP-Address = 0.0.0.0
        DHCP-Gateway-IP-Address = 1.1.1.1
        DHCP-Client-Hardware-Address = 00:11:22:33:44:55
        DHCP-Message-Type = DHCP-Discover
        DHCP-Client-Identifier = 00:11:22:33:44:55
        DHCP-Hostname = "test"
        DHCP-Parameter-Request-List = DHCP-Subnet-Mask
        DHCP-Parameter-Request-List = DHCP-Broadcast-Address
        DHCP-Parameter-Request-List = DHCP-Time-Offset
        DHCP-Parameter-Request-List = DHCP-Classless-Static-Route
        DHCP-Parameter-Request-List = DHCP-Router-Address
        DHCP-Parameter-Request-List = DHCP-Domain-Name
        DHCP-Parameter-Request-List = DHCP-Domain-Name-Server
        DHCP-Parameter-Request-List = DHCP-Hostname
        DHCP-Agent-Circuit-Id = 0x000401e30420



----- Original Message ----- 
From: "Alan DeKok" <aland at deployingradius.com>
To: "FreeRadius users mailing list" <freeradius-users at lists.freeradius.org>
Sent: Tuesday, July 20, 2010 16:01
Subject: Re: DHCP reply with opt82


> Alex wrote:
>> Thanks Alan,
>>
>> but git pull said that local sources are up to date.
>
>  Or... git pull origin v2.1.x:v2.1.x
>
>> dhcp.c has this changes:
>> http://github.com/alandekok/freeradius-server/commit/7d44b0a545a50012aaa60ba996cc976d15745d08
>
>  Yes, that should be it.
>
>> dictionary.dhcp is from 2.1.10
>
>  Are you *sure*?  The version in the source is from 2.1.10.  What about
> the installed version?  (/usr/local/share/freeradius/...) Go *check*.
>
>> but result is the same (tcpdump):
>>            Agent-Information Option 82, length 6:
>>              Unknown SubOption 0, length 4:
>>                0x0000:  01e3 0420
>>            Agent-Information Option 82, length 8:
>>              Unknown SubOption 0, length 6:
>>                0x0000:  001f cab0 ef00
>>
>> What am I doing wrong?
>
>  Probably not using the right dictionary, or the right version of the
> server.
>
>  When I perform the test that's in the git commit message, I get the
> correct sub-option format.  Please try that.  If you don't get the
> correct suboptions, then you need to use the right dictionary and/or the
> right source code.
>
>  Alan DeKok.
> -
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html 




More information about the Freeradius-Users mailing list