DHCP reply not leaving machine

Rok Kosir rok.kosir at cosylab.com
Tue Oct 22 16:32:54 CEST 2013


Hi,

after multiple recompilation of FR (both version 2.2 and 3.0.1) i was 
not able to configure DHCP server so that clients would get IPs.

I am currently testing on ubuntu 12.04.3 server which has connected 
Ubuntu 12.04 desktop version laptop on eth1 trying to get IP.
I see multiple requests comming to server but no reply reaches the 
client (nor ethernet card).

FR is built from source and following this configuration 
http://wiki.freeradius.org/guide/dhcp-for-static-ip-allocation (with 
exception of using mac2ip for IP filetable).

Here is relevant info on server:
eth1: inet addr:192.168.0.1
dhcp config:
server dhcp {
listen {
         ipaddr = 255.255.255.255
         port = 67
         type = dhcp
         interface = eth1

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

         #  The contents here are invented.  Change them!
         update reply {
                 DHCP-Domain-Name-Server = 192.168.0.1
                 DHCP-Domain-Name-Server = 193.2.1.66
                 DHCP-Subnet-Mask = 255.255.255.0
                 DHCP-Router-Address = 192.168.0.1
                 DHCP-IP-Address-Lease-Time = 86400
                 DHCP-DHCP-Server-Identifier = 192.168.0.1
         }
         mac2ip
         ok
}

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

         #  The contents here are invented.  Change them!
         update reply {
                 DHCP-Domain-Name-Server = 192.168.0.1
                 DHCP-Domain-Name-Server = 193.2.1.66
                 DHCP-Subnet-Mask = 255.255.255.0
                 DHCP-Router-Address = 192.168.0.1
                 DHCP-IP-Address-Lease-Time = 86400
                 DHCP-DHCP-Server-Identifier = 192.168.0.1
         }

         mac2ip
         ok
}

dhcp {
         # send a DHCP NAK.
         reject
}
}


radiusd -X output is here: http://pastebin.com/raw.php?i=yY1aNf6v

i have used tcpdump to check port 67 and 68, but only requests come in, 
no reply is released to ethernet card.

Any suggestions?

Regards,
Rok
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20131022/c579f4ae/attachment-0001.html>


More information about the Freeradius-Users mailing list