Re[3]: How to - DHCP Relay and Server on same machine (FreeBSD)
test24
test24 at mail.ru
Wed Jun 17 15:18:45 UTC 2015
dhcpd and relay cannot work on same socket on same machine, than i need to
say dhcpd to listen another port such as 77. and dchp relay forward all requests from 67 port to 77 port dhcpd
and shema is next:
clients ip*:67/68 port <-> all ifaces *:68/68 dhcp relay send/receive 77port <-> 10.10.10.1:77 port dhcpd
But this shema do not work on relay <-> dhcpd side - no any info in logs and any packets by dumping 10.10.10.1:77
config is next:
dhcpd_enable="YES"
dhcpd_flags="-p 77"
dhcpd_ifaces=""
dhcrelay_enable="YES"
dhcrelay_flags="-a -d -D" # command option(s)
dhcrelay_servers="10.10.10.1" # v4 dhcrelay server(s)
dhcrelay_ifaces=""
sockstat
dhcpd dhcpd 91416 3 dgram -> /var/run/logpriv
dhcpd dhcpd 91416 20 udp4 *:30026 *:*
dhcpd dhcpd 91416 21 udp6 *:56949 *:*
dhcpd dhcpd 91416 46 udp4 10.10.10.1:77 *:*
root dhcrelay 91426 3 dgram -> /var/run/logpriv
root dhcrelay 91426 20 udp4 *:55611 *:*
root dhcrelay 91426 21 udp6 *:13530 *:*
root dhcrelay 91426 45 udp4 *:67 *:*
dhcpd Sending on Socket/fallback/fallback-net
dhcp relay sockstat dhcrelay listen udp4 *:67 *:*
dhcp relay log file:
Adding 9-byte relay agent option
Forwarded BOOTREQUEST for 00:11:11:09:dd:f7 to 10.10.10.1
Adding 9-byte relay agent option
Forwarded BOOTREQUEST for 2c:76:8a:dd:64:9e to 10.10.10.1
Adding 9-byte relay agent option
Forwarded BOOTREQUEST for b8:70:f4:8c:b7:0b to 10.10.10.1
and dhcpd log file is empty ..... and no reply from dhcpd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20150617/2916ea6b/attachment.html>
More information about the dhcp-users
mailing list