<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 03/01/2013 04:12 PM, Alan DeKok
wrote:<br>
</div>
<blockquote cite="mid:5130C566.5070707@deployingradius.com"
type="cite"> Can you supply the debug output?</blockquote>
When set that freeradius sends IP, NETMASK, DNS... <b>WITHOUT
DEFAULT GATEWAY</b>:<br>
<br>
<b>This packet is sent to RELAY_IP</b><br>
<br>
<b>$RAD_REPLY{'DHCP-Gateway-IP-Address'} NOT SENT</b><br>
---------------------------------------------------------------------------<br>
TIME: 09:46:24.886544<br>
OP: 2 (BOOTPREPLY)<br>
HTYPE: 1 (Ethernet)<br>
HLEN: 6<br>
HOPS: 1<br>
SECS: 0<br>
FLAGS: 0<br>
CIADDR: 0.0.0.0<br>
YIADDR: CPE_PUBLIC_IP<br>
SIADDR: RADIUS_IP<br>
<b>GIADDR: PRIVATE_RELAY_IP</b><br>
CHADDR: **:**:**:**:**:**:00:00:00:00:00:00:00:00:00:00<br>
SNAME: .<br>
FNAME: .<br>
OPTION: 53 ( 1) DHCP message type 2 (DHCPOFFER)<br>
OPTION: 1 ( 4) Subnet mask 255.255.255.240<br>
OPTION: 2 ( 4) Time offset 7200 (2h)<br>
OPTION: 3 ( 4) Routers RELAY_PRIVATE_IP<br>
OPTION: 6 ( 4) DNS server DNS_IP<br>
OPTION: 12 ( 17) Host name HOST_MAC_ADDRESS<br>
OPTION: 15 ( 8) Domainname DOMAIN<br>
OPTION: 51 ( 4) IP address leasetime 7200 (2h)<br>
OPTION: 54 ( 4) Server identifier RADIUS_IP<br>
OPTION: 57 ( 2) Maximum DHCP message size 1500<br>
<br>
####################################################<br>
<br>
When set that freeradius sends IP, NETMASK, DNS... <b>WITH DEFAULT
GATEWAY</b>:<br>
<br>
<b>This packet is sent to GIADDR</b><b>, whis is wrong</b><b>!!!</b><br>
<br>
<b>$RAD_REPLY{'DHCP-Gateway-IP-Address'} SENT</b><br>
---------------------------------------------------------------------------<br>
TIME: 09:46:24.886544<br>
OP: 2 (BOOTPREPLY)<br>
HTYPE: 1 (Ethernet)<br>
HLEN: 6<br>
HOPS: 1<br>
SECS: 0<br>
FLAGS: 0<br>
CIADDR: 0.0.0.0<br>
YIADDR: CPE_PUBLIC_IP<br>
SIADDR: RADIUS_IP<br>
<b>GIADDR: </b><b>$RAD_REPLY{'DHCP-Gateway-IP-Address'}</b><br>
CHADDR: **:**:**:**:**:**:00:00:00:00:00:00:00:00:00:00<br>
SNAME: .<br>
FNAME: .<br>
OPTION: 53 ( 1) DHCP message type 2 (DHCPOFFER)<br>
OPTION: 1 ( 4) Subnet mask 255.255.255.240<br>
OPTION: 2 ( 4) Time offset 7200 (2h)<br>
OPTION: 3 ( 4) Routers RELAY_PRIVATE_IP<br>
OPTION: 6 ( 4) DNS server DNS_IP<br>
OPTION: 12 ( 17) Host name HOST_MAC_ADDRESS<br>
OPTION: 15 ( 8) Domainname DOMAIN<br>
OPTION: 51 ( 4) IP address leasetime 7200 (2h)<br>
OPTION: 54 ( 4) Server identifier RADIUS_IP<br>
OPTION: 57 ( 2) Maximum DHCP message size 1500<br>
<br>
So, when freeradius sees <b>DHCP-Gateway-IP-Address </b>inside
reply offer he uses it as destination where to send reply which is
wrong. He should use RELAY IP instead no matter what's inside
BOOTREPLY.<b><br>
<br>
<br>
<br>
</b>
</body>
</html>