<div dir="ltr"><div><div><div><span style="font-family:monospace,monospace">Hi.<br><br></span></div><span style="font-family:monospace,monospace">This is a tcpdump on the mdl0 interface(192.168.192.2) on the client<br>machine with eth0(192.168.1.12):<br><br>192.168.1.12.bootpc > 192.168.0.27.bootps: BOOTP/DHCP, Request from 6c:ec:eb:b5:87:cd (oui Unknown), length 300<br>192.168.0.27.bootps > 192.168.1.12.bootpc: BOOTP/DHCP, Reply, length 327<br>192.168.1.12.bootpc > 192.168.0.27.bootps: BOOTP/DHCP, Request from 6c:ec:eb:b5:87:cd (oui Unknown), length 300<br>192.168.0.27.bootps > 192.168.1.12.bootpc: BOOTP/DHCP, Reply, length 327<br>192.168.1.12.bootpc > 192.168.0.27.bootps: BOOTP/DHCP, Request from 6c:ec:eb:b5:87:cd (oui Unknown), length 300<br>192.168.0.27.bootps > 192.168.1.12.bootpc: BOOTP/DHCP, Reply, length 327<br>192.168.1.12.bootps > 192.168.0.27.bootps: BOOTP/DHCP, Request from 6c:ec:eb:b5:87:cd (oui Unknown), length 300<br>192.168.0.27.bootps > 192.168.1.12.bootps: BOOTP/DHCP, Reply, length 341<br>192.168.1.12.bootps > 192.168.0.27.bootps: BOOTP/DHCP, Request from 6c:ec:eb:b5:87:cd (oui Unknown), length 300<br>192.168.0.27.bootps > 192.168.1.12.bootps: BOOTP/DHCP, Reply, length 341<br><br></span></div><span style="font-family:monospace,monospace">So it looks like ACKs are comming back.<br></span></div><span style="font-family:monospace,monospace">Running the relay with -d, I get:<br><br>Dropping request received on mdl0<br>Dropping request received on mdl0<br>Dropping request received on mdl0<br>Adding 15-byte relay agent option<br>Adding link selection suboption with addr: 192.168.1.12<br>Forwarded BOOTREQUEST for 6c:ec:eb:b5:87:cd to 192.168.0.27<br>Forwarded BOOTREPLY for 6c:ec:eb:b5:87:cd to 192.168.1.12<br>Adding 15-byte relay agent option<br>Adding link selection suboption with addr: 192.168.1.12<br>Forwarded BOOTREQUEST for 6c:ec:eb:b5:87:cd to 192.168.0.27<br>Forwarded BOOTREPLY for 6c:ec:eb:b5:87:cd to 192.168.1.12<br></span><div><div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">It is probably ok it is dropping unicast packets, though.<br></span></div><div><span style="font-family:monospace,monospace">But why they don't reach the et0?<br><br></span></div><div><span style="font-family:monospace,monospace">Forwarding is enabled on both ports, and I can ping the server,<br>so unicast connection works.<br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">Thank you very much for any assistance on this ;)<br><br></span></div><div><span style="font-family:monospace,monospace">RegK<br></span></div><div><span style="font-family:monospace,monospace"><br><br></span></div><div><span style="font-family:monospace,monospace"><br></span><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 3, 2017 at 2:19 PM, Michael Lanski <span dir="ltr"><<a href="mailto:mlanski@comcast.net" target="_blank">mlanski@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div>One note:  DHCP renews, as you mentioned, are unicast, so the communication path is between the client and server.  No relay would be in use here.  The fact that syslog shows “via usb1” proves it’s not trying to send it via the relay, but out the “usb1” interface, as a unicast to the client.</div><div><br></div><div>Since the DHCP server must be able to communicate with all the clients directly, my first guess is that you have a firewall/router access-list in the way so that the UDP/DHCP packets can’t make it from the DHCP server to the client?  Have you verified your access-lists?  Have you traced the packet to see what it does get to?  Does your router forward it, or drop it?</div><div><br></div><div>Michael Lanski</div><div>Director of Educational Services</div><div>DeepDive Networking, Inc</div><div><a href="http://www.deepdivenetworking.com" target="_blank">www.deepdivenetworking.com</a></div>


<br><div><blockquote type="cite"><div><div class="gmail-h5"><div>On Aug 2, 2017, at 7:59 PM, Klemen Sladic <<a href="mailto:gosturnca@gmail.com" target="_blank">gosturnca@gmail.com</a>> wrote:</div><br class="gmail-m_7698689031253742363Apple-interchange-newline"></div></div><div><div><div class="gmail-h5"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><span style="font-family:monospace,monospace">Hi.<br><br></span></div><span style="font-family:monospace,monospace">I am trying to relay DHCP requests. When the client broadcasts<br>DISCOVER everything looks ok.</span><span style="font-family:monospace,monospace"> It gets the IP etc.</span><br><span style="font-family:monospace,monospace"></span></div></div><span style="font-family:monospace,monospace">But on RENEW, when unicast DISCOVER is sent, it is received by the<br>server, the server replies with ACK, but the ACK does not get back<br>to the client, it get dropped by the relay.<br></span></div><div><span style="font-family:monospace,monospace">I have tried lots of different interface switches with no success.<br><br></span></div></div><span style="font-family:monospace,monospace">My setup:</span><span style="font-family:monospace,monospace"> ISC DHCP 4.3.5 on Linux.<br></span></div><div><span style="font-family:monospace,monospace">Network looks like:<br></span></div><div><span style="font-family:monospace,monospace"><Machine1>---wireless---<<wbr>Machine2>---Eth---<DHCP server><br></span></div><div><span style="font-family:monospace,monospace"></span></div><span style="font-family:monospace,monospace"><br></span></div><span style="font-family:monospace,monospace"></span></div><span style="font-family:monospace,monospace">eth0 192.168.1.12 - DHCP obtained IP<br></span></div><div><span style="font-family:monospace,monospace">| Machine1<br>|DHCP client unit - it has a direct route to the DHCP server!<br></span></div><div><span style="font-family:monospace,monospace">| running: dhcrelay -U eth0 -iu mdl0 192.168.0.27<br></span></div><span style="font-family:monospace,monospace">mdl0 192.168.192.2 - wireless interface<br>|<br>...<br></span></div><span style="font-family:monospace,monospace">wireless connection<br>...<br>|<br></span></div><span style="font-family:monospace,monospace">mdl0 192.168.192.1 - wireless interface<br></span></div><div><span style="font-family:monospace,monospace">| Machine2<br></span></div><div><span style="font-family:monospace,monospace">| Unit just routing the traffic - NO RELAY here.<br></span></div><span style="font-family:monospace,monospace">eth0 192.168.0.1<br>|<br></span></div><span style="font-family:monospace,monospace">Eth cable connection to DHCP server<br>|<br></span></div><span style="font-family:monospace,monospace">eth0 192.168.0.27 DHCP server<br><br><br></span></div><span style="font-family:monospace,monospace">On RENEW I see:<br><br></span></div><span style="font-family:monospace,monospace">CLIENT (NOTHING IS HAPPENING ON UNICAST REQUESTS!):<br>dhclient: DHCPREQUEST on eth0 to 192.168.0.27 port 67<br>dhclient: DHCPREQUEST on eth0 to 192.168.0.27 port 67<br>dhclient: DHCPREQUEST on eth0 to 192.168.0.27 port 67<br>dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67<br>dhclient: DHCPACK from 192.168.1.12<br>dhclient: bound to 192.168.1.12 -- renewal in 17 seconds.<br><br></span></div><span style="font-family:monospace,monospace">SERVER:<br>dhcpd[3853]: DHCPREQUEST for 192.168.1.12 from 6c:ec:eb:b5:87:cd via usb1<br>dhcpd[3853]: DHCPACK on 192.168.1.12 to 6c:ec:eb:b5:87:cd via usb1<br>dhcpd[3853]: DHCPREQUEST for 192.168.1.12 from 6c:ec:eb:b5:87:cd via usb1<br>dhcpd[3853]: DHCPACK on 192.168.1.12 to 6c:ec:eb:b5:87:cd via usb1<br>dhcpd[3853]: DHCPREQUEST for 192.168.1.12 from 6c:ec:eb:b5:87:cd via usb1<br>dhcpd[3853]: DHCPACK on 192.168.1.12 to 6c:ec:eb:b5:87:cd via usb1<br>dhcpd[3853]: DHCPDISCOVER from 6c:ec:eb:b5:87:cd via 192.168.1.12<br>dhcpd[3853]: DHCPOFFER on 192.168.1.12 to 6c:ec:eb:b5:87:cd via 192.168.1.12<br>dhcpd[3853]: DHCPREQUEST for 192.168.1.12 (192.168.0.27) from 6c:ec:eb:b5:87:cd via 192.168.1.12<br>dhcpd[3853]: DHCPACK on 192.168.1.12 to 6c:ec:eb:b5:87:cd via 192.168.1.12<br><br></span><div><div><div><span style="font-family:monospace,monospace">Does anyone has any idea why this is happening?<br><br></span></div><div><span style="font-family:monospace,monospace">RegK<br></span></div></div></div></div></div></div>
______________________________<wbr>_________________<br>dhcp-users mailing list<br><a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a></div></blockquote></div><br></div><br>______________________________<wbr>_________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><br></blockquote></div><br></div></div></div></div></div>