Thanks, relay ip is ok now. Another problem. I couldn't receive it packet anyway. I launched standart dhcpd server on linux and everything worked fine. After analyzing packets i discover that replay messages to relay is sent back to port 67 not 68. So, it need to be fixed. :) Haralds ----- Original Message ----- From: "Alan DeKok" <aland@deployingradius.com> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Wednesday, June 18, 2008 8:46 AM Subject: Re: dhcp relay agent
Haralds Ulmanis wrote: ...
Sniffing packets: 3 8719.551007 10.2.0.15 x.x.x.x DHCP DHCP Discover - Transaction ID 0xa9f950b3 Relay agent IP address: 10.2.0.15 (10.2.0.15) 4 8719.631210 x.x.x.x 10.2.0.15 DHCP DHCP Offer - Transaction ID 0xa9f950b3 Relay agent IP address: 0.0.0.0 (0.0.0.0)
Ah, ok. The code wasn't copying the gateway IP from the discover to the offer. I've fixed this in CVS.
Maybe right question is ... how to set DHCP relay ip address in offer message ?
Grab a copy of src/lib/dhcp.c from CVS.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html