Option 82 parse problems.

Anton warm at stack.ru
Fri May 28 05:24:20 CEST 2010


Good day.

I'm trying to set freeradius like dhcp server with option 82 parsing and SQL data lookup. Now I use versions
2.1.8 and 2.1.9 with exactly the same configs and there is no SQL configuration yet, only default dhcp
config with my test diff (see below). I have two questions for now:


1. In dictionary.dhcp there are two strings (version 2.1.8):

ATTRIBUTE DHCP-Agent-Circuit-Id         0x0152                  octets
ATTRIBUTE DHCP-Agent-Remote-Id          0x0252                  octets

but when I start radiusd -X I see only one whole string like:

DHCP-Relay-Agent-Information = 0x010600040064000002080006000cce477c00

How can I get DHCP-Agent-Circuit-Id and DHCP-Agent-Remote-Id without using perl post_auth ?


2. There is announced feature in 2.1.9 "Add sub-option support for Option 82. See dictionary.dhcp". When I
start radiusd -X (2.1.9) with its dictionary.dhcp it begin to eat 100% of CPU with no any output in console
after the first dhcp packet received.

How to use this announced feature of sub-option for opt82 ?
How to find the reason why radiusd (2.1.9) eats 100% of CPU ?


My dhcp site config (with changed ip-addresses):

server dhcp {
listen {
        ipaddr = 192.168.0.1
        port = 67
        type = dhcp
        interface = eth0
}
dhcp DHCP-Discover {
        update reply {
                DHCP-DHCP-Server-Identifier = "%{Packet-Dst-IP-Address}"
        }
        linelog
        update reply {
                DHCP-Domain-Name-Server = 192.168.0.1
                DHCP-Domain-Name-Server = 192.168.10.1
                DHCP-Subnet-Mask = 255.255.255.240
                DHCP-IP-Address-Lease-Time = 1800
        }
        mac2ip
        linelog
        ok
}
dhcp DHCP-Request {
        update reply {
                DHCP-DHCP-Server-Identifier = "%{Packet-Dst-IP-Address}"
        }
        linelog
        update reply {
                DHCP-Domain-Name-Server = 192.168.0.1
                DHCP-Domain-Name-Server = 192.168.10.1
                DHCP-Subnet-Mask = 255.255.255.224
                DHCP-IP-Address-Lease-Time = 1800
        }
        linelog
        ok
}
dhcp {
        update reply {
                        DHCP-Message-Type = DHCP-NAK
                }
}
}
passwd mac2ip {
        filename = ${confdir}/mac2ip
        format = "*DHCP-Client-Hardware-Address:=DHCP-Your-IP-Address"
        delimiter = ","
}



-- 
Anton [WARM-RIPE]
Stack ltd division head
tel. 8 (3822) 555-797





More information about the Freeradius-Users mailing list