<HTML><BODY>Hello!<br><br>I need to use DHCP Relay and DHCP Server  on same machine, but while compile and try to use with lot of options - no positive result.<br><br>But how to compile with right options<br><br>Setup:<br>Freebsd 9.x<br>CLIENTS <---> [ Multi igb0,1,2,3,4, em0,1, multiple vlans] (relay agent) <---> DHCP Server ]<br><br> The relay agent *runs on ALL interfaces that faces the client and DHCP server runs and listen other port such as 77 and<br><br>rc.conf<br><br>dhcpd_enable="YES"<br>dhcpd_flags="-p 77"<br>dhcpd_ifaces="igb1"<br><br>dhcrelay_enable="YES"<br>dhcrelay_flags="-a -d -D"<br>dhcrelay_servers="10.10.10.1"  # DHCPD IP on igb1 iface<br>dhcrelay_ifaces=""<br><br>dhcpd.conf<br><br>local-address 10.10.10.1;<br><br>stash-agent-options true;<br># for debug<br>allow unknown-clients;<br><br>if exists agent.circuit-id<br><br>{<br>log (<br>info, concat( " Lease for ", binary-to-ascii (10, 8, ".", leased-address),<br> " Swith port: ", binary-to-ascii (10, 8, ".", option agent.circuit-id),<br> " Switch MAC: ", binary-to-ascii (16, 8, ":", suffix ( option agent.remote-id, 6)),<br> " Switch IP: ", binary-to-ascii(10, 8, ".", packet(24, 4)),<br> " VLAN: ", binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2)),<br> " MAC on the port: ", binary-to-ascii (16, 8, ":", substring(hardware, 1, 6))<br>)<br>);<br><br><br>With classic dhcp server ONLY - all work ok<br><br>When dhcp relay and server starts both on same machine - no errors due to misconfiguration or <br>already socket listen - at that point all ok<br><br>I see incoming packets from clients on dhcp relay side but not see packets on dhcp server side<br>Where is mistake and how to ./configure and make dhcp relay and server with right options ?<br><br>Thanks<br></BODY></HTML>