<div dir="auto"><div>Yes, machine2 is routing the traffic without any relay. Relay is on machine1 only.</div><div dir="auto">The DHCP server (Ubuntu) is directly connected to eth0 of machine2 ... with a cable.</div><div dir="auto">mdl0 is our wireless interface, and since relay on machine1 is dropping ACKs, I do not believe mdl0 is dropping anything.</div><div dir="auto"><br></div><div dir="auto">I wonder, should relay even see those ACKs since they can be directly routed?</div><div dir="auto">Is there maybe a problem with next router/gid setting in packets?h</div><div dir="auto"><br></div><div dir="auto">RegK</div><div dir="auto"><br></div><div dir="auto"><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Aug 3, 2017 15:47, "Michael Lanski" <<a href="mailto:mlanski@comcast.net">mlanski@comcast.net</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Ok, the traces prove (although we could already tell from syslog messages) that the server is not at fault.  It sends the ACK, and your machine receives it.</div><div><br></div><div>I’m a bit confused, however, by your original diagram, and the responses.  You list “machine 1” and “machine 2”.  Are you using one system to somehow route and/or bridge to the other?  You show some wireless in the middle of 2 systems, then the DHCP server.  Is there a router between 2 networks (192.168.0.x and 192.168.1.x)?  Is it the relay?  </div><div><br></div><div>What is the mdl0 interface, and how is it connected in this scenario?  If it’s dropping the packet, it is the issue.</div><div class="quoted-text"><div><br></div><div><br></div><br><div>
<div style="word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Michael Lanski<br>Director of Educational Services<br>DeepDive Networking, Inc<br><a href="http://www.deepdivenetworking.com" target="_blank">www.deepdivenetworking.com</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><br class="m_5882923251478738776Apple-interchange-newline"></div><br class="m_5882923251478738776Apple-interchange-newline">
</div>

<br></div><div class="elided-text"><div><blockquote type="cite"><div>On Aug 2, 2017, at 9:57 PM, Klemen Sladic <<a href="mailto:gosturnca@gmail.com" target="_blank">gosturnca@gmail.com</a>> wrote:</div><br class="m_5882923251478738776Apple-interchange-newline"><div><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><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="m_5882923251478738776gmail-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="m_5882923251478738776gmail-m_7698689031253742363Apple-interchange-newline"></div></div><div><div><div class="m_5882923251478738776gmail-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---<Machi<wbr>ne2>---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" target="_blank">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>
______________________________<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></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>