help with DHCP server functionality

Duane Cox duanecox at gmail.com
Thu Nov 1 21:19:12 CET 2012


List:

Hello.  I have been working on this for a few days and have turned here
for help.

The server is listening on port 67 and when a DHCP packet comes in the
server processes it, but in debug mode it give an error "No Pool-Name
defined".

I have done some reading and I have added the following to the users
file (for testing purposes).

DEFAULT Pool-Name := main_pool
        Fall-Through = Yes

This doesn't seem to define the Pool-Name nor do I see where the server
is processing any sql queries to determine the Pool-Name either.

Am I mistaken?  I thought that I could get a DHCP packet to be
received/processed by the server and hand out a response.

Thanks in advance,
Duane Cox

debug:
Received DHCP-Discover of id 9daef956 from 10.11.156.70:68 to
10.12.100.90:67
        DHCP-Opcode = Client-Message
        DHCP-Hardware-Type = Ethernet
        DHCP-Hardware-Address-Length = 6
        DHCP-Hop-Count = 1
        DHCP-Transaction-Id = 2645490006
        DHCP-Number-of-Seconds = 56
        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 = 10.11.152.62
        DHCP-Client-Hardware-Address = 00:d0:b7:c0:f6:8a
        DHCP-Message-Type = DHCP-Discover
        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-Router-Address
        DHCP-Parameter-Request-List = DHCP-Domain-Name
        DHCP-Parameter-Request-List = DHCP-Domain-Name-Server
        DHCP-Parameter-Request-List = DHCP-Hostname
server dhcp {
Trying sub-section dhcp DHCP-Discover {...}
+- entering group DHCP-Discover {...}
++[reply] returns noop
++[reply] returns noop
[mac2ip] Added DHCP-Your-IP-Address: '10.11.152.1' to reply_items 
++[mac2ip] returns ok
++- entering policy dhcp_sqlippool.post-auth {...}
        expand: DHCP-%{DHCP-Client-Hardware-Address} ->
DHCP-00:d0:b7:c0:f6:8a
        expand: %{DHCP-Client-Hardware-Address} -> 00:d0:b7:c0:f6:8a
        expand: %{DHCP-Gateway-IP-Address} -> 10.11.152.62
        expand: %{%{DHCP-Gateway-IP-Address}:-127.0.0.1} -> 10.11.152.62
+++[request] returns ok
[dhcp_sqlippool] No Pool-Name defined.
[dhcp_sqlippool]        expand: DHCP: No Pool-Name defined (did
%{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user
%{User-Name}) -> DHCP: No Pool-Name defined (did  cli 00:d0:b7:c0:f6:8a
port  user DHCP-00:d0:b7:c0:f6:8a)
DHCP: No Pool-Name defined (did  cli 00:d0:b7:c0:f6:8a port  user
DHCP-00:d0:b7:c0:f6:8a)
+++[dhcp_sqlippool] returns noop
+++? if (ok)
? Evaluating (ok) -> FALSE
+++? if (ok) -> FALSE
++- policy dhcp_sqlippool.post-auth returns noop
++[ok] returns ok
} # server dhcp
        DHCP-Subnet-Mask = 255.255.255.192
        DHCP-Router-Address = 10.11.152.62
        DHCP-Domain-Name-Server = 4.2.2.1
        DHCP-IP-Address-Lease-Time = 86400
        DHCP-DHCP-Server-Identifier = 10.12.100.90
Sending DHCP-Offer of id 9daef956 to 10.11.152.62:68
Finished request 6.
Cleaning up request 6 ID -1649477290 with timestamp +219
Going to the next request
Ready to process requests.




More information about the Freeradius-Users mailing list