How to - DHCP Relay and Server on same machine (FreeBSD)

Simon Hobson dhcp1 at thehobsons.co.uk
Wed Jun 17 13:31:57 UTC 2015


test24 <test24 at mail.ru> wrote:

> 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.
> 
> But how to compile with right options
> 
> Setup:
> Freebsd 9.x
> CLIENTS <---> [ Multi igb0,1,2,3,4, em0,1, multiple vlans] (relay agent) <---> DHCP Server ]
> 
> The relay agent *runs on ALL interfaces that faces the client and DHCP server runs and listen other port such as 77 and
> 
> rc.conf
> 
> dhcpd_enable="YES"
> dhcpd_flags="-p 77"
> dhcpd_ifaces="igb1"
> 
> dhcrelay_enable="YES"
> dhcrelay_flags="-a -d -D"
> dhcrelay_servers="10.10.10.1"  # DHCPD IP on igb1 iface
> dhcrelay_ifaces=""

Is the relay agent configured to send out to, and listen for replies from, the alternate server port ? I don't know enough about the relay agent to know if this configuration is possible.

If it's not configured to do that, then the relay agent may try and send the packet - but it'll find itself listening on the port. I suspect you might not see the packets on the wire since they would be routed internally as local to the host.



More information about the dhcp-users mailing list