Issue with DHCP with Wireless card

Hugh McLenaghan hughmcl at hotmail.com
Wed Mar 12 18:46:01 CET 2014


Config:-
        listen {
            type = dhcp
            ipaddr = *
            port = 67
            interface = wlan0
            broadcast = yes
        }

        dhcp DHCP-Discover {
            update reply {
                DHCP-Message-Type = DHCP-Offer
            }


            update reply {
                DHCP-DHCP-Server-Identifier = 10.199.100.1
                DHCP-IP-Address-Lease-Time = 600
                DHCP-Subnet-Mask = 255.255.255.240
                DHCP-Router-Address = 10.199.100.1
                DHCP-Domain-Name-Server = 10.1.30.170
                DHCP-Domain-Name = 'mclenaghan.local'
                DHCP-Broadcast-Address = 10.199.100.15
                DHCP-Server-IP-Address = 10.199.100.1
                DHCP-Your-IP-Address = 10.199.100.5
                DHCP-Server-Host-Name = 'wipi_2'
            }

            ok
        }

 dhcp DHCP-Request {
            update reply {
                DHCP-Message-Type = DHCP-Ack
            }

            update reply {
                DHCP-DHCP-Server-Identifier = 10.199.100.1
                DHCP-IP-Address-Lease-Time = 600
                DHCP-Subnet-Mask = 255.255.255.240
                DHCP-Router-Address = 10.199.100.1
                DHCP-Domain-Name-Server = 10.1.30.170
                DHCP-Domain-Name = 'mclenaghan.local'
                DHCP-Broadcast-Address = 10.199.100.15
                DHCP-Server-IP-Address = 10.199.100.1
                DHCP-Your-IP-Address = 10.199.100.5
                DHCP-Server-Host-Name = 'wipi_2'
            }

            ok
 }

        dhcp {
            reject
        }
    }



             Hugh



----------------------------------------
> Date: Wed, 12 Mar 2014 13:15:57 +0000
> From: mcn4 at leicester.ac.uk
> To: freeradius-users at lists.freeradius.org
> Subject: Re: Issue with DHCP with Wireless card
>
> Hi,
>
> On Wed, Mar 12, 2014 at 01:39:56AM -0500, Hugh McLenaghan wrote:
>> I've been struggling getting the DHCP server to work. I have
>> the configuration correct.
>
> That's an interesting statement - there really isn't any sort of
> "correct" at the moment :)
>
>> The server starts fine, it listens on the port. When a client
>> sends a request, the request is received correctly. it's then
>> processed as expected, and it supposedly sends out the reply.
>> However I DO NOT see the reply on the interface when i do a
>> tcpdump.
>
> OK, I had that working fine last night. Machine on network serving DHCP to
> tablet (over wireless).
>
> Can you post full debug logs from "radiusd -X" please.
>
>> I've tried changing multiple settings including setting
>> broadcast off/on, I've changed the IP address bindings and that
>> doesn't help.
>
> This worked here (you probably want eth0 not br0):
>
> listen {
> ipaddr = 0.0.0.0
> port = 67
> type = dhcp
> interface = br0
> broadcast = yes
> }
>
>> I've also tried using different versions of freeradius, from
>> 2.2.x through 3.0.1 and 3.1.0 (the git repository).
>
> Use 3.0.x HEAD. DHCP is new enough that you always want to be running the
> latest code.
>
>> I know the wireless card will support it, because when i try
>> using the regular ISC DHCPD daemon, it gets an IP address and I
>> can see the request/reply packets.
>>
>> One thing I did notice though in the debug logs of freeradius,
>> is when it supposedly sends the reply packet the source/from
>> address is 0.0.0.0:67 however when ISC DHCPD sends it's
>> response it comes from the IP address of the interface itself
>> e.g. 10.199.100.1:67.
>
> Where was it sending _to_? If 0.0.0.0:68, then it won't actually send anything,
> and means that something has gone wrong. I've got a patch that makes that
> clearer in the debug, as I hit that as well.
>
>> For my tests i've been using a raspberry Pi running raspian OS.
>> I'm going to try to do this on a regular VM tomorrow to see if
>> it's related to the OS/hardware.
>
> Haven't tried it on my Pi, but I doubt that is the issue. System here is
> Debian, so similar.
>
> Cheers
>
> Matthew
>
>
>
> --
> Matthew Newton, Ph.D. <mcn4 at le.ac.uk>
>
> Systems Specialist, Infrastructure Services,
> I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
>
> For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html 		 	   		  


More information about the Freeradius-Users mailing list