<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">The VLAN setup is pretty basic:</div><div class=""><br class=""></div><div class=""><div class=""><br class=""></div><div class="">interface Vlan1001</div><div class="">  no shutdown</div><div class="">  mtu 9216</div><div class="">  no ip redirects</div><div class="">  ip address 10.168.101.1/24 </div><div class=""><br class=""></div><div class="">interface Vlan1002</div><div class="">  no shutdown</div><div class="">  mtu 9216</div><div class="">  no ip redirects</div><div class="">  ip address 10.168.102.1/24 </div><div class="">  ip dhcp relay address 10.168.101.20</div><div class="">  ip dhcp relay source-interface Vlan1002</div><div class=""><br class=""></div><div class="">Single host running ESXi connected to single router.</div><div class=""><br class=""></div><div class="">Take Care</div><div class="">Jason</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Apr 28, 2017, at 5:36 PM, Simon Kelley <<a href="mailto:simon@thekelleys.org.uk" class="">simon@thekelleys.org.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On 27/04/17 22:02, Jason Kary wrote:</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Hi Folks,<br class=""><br class="">I have a basic setup for DHCP relay across VLANS in DNSMASQ.  <br class=""><br class="">My configuration file looks like:<span class="Apple-converted-space"> </span><br class=""><br class=""><br class="">   bogus-priv<br class="">   interface=ens160<br class="">   log-dhcp<br class="">   dhcp-range=10.168.102.100,10.168.102.150,255.255.255.0,12h<br class=""><br class=""><br class="">The client and server are running on a VMs in separate VLANS.  DHCP<br class="">requests appear to be coming across:<br class=""><br class=""><br class="">   root@DHCP-UBUNTU-SERVER:~# tcpdump -i ens160 port 67 or port 68 -n<br class="">   tcpdump: verbose output suppressed, use -v or -vv for full protocol<br class="">   decode<br class="">   listening on ens160, link-type EN10MB (Ethernet), capture size<br class="">   262144 bytes<br class="">   03:58:40.966944 IP 10.168.102.1.67 > 10.168.101.20.67: BOOTP/DHCP,<br class="">   Request from 00:0c:29:65:e0:ea, length 322<br class="">   03:58:46.487767 IP 10.168.102.1.67 > 10.168.101.20.67: BOOTP/DHCP,<br class="">   Request from 00:0c:29:65:e0:ea, length 322<br class="">   03:58:54.424895 IP 10.168.102.1.67 > 10.168.101.20.67: BOOTP/DHCP,<br class="">   Request from 00:0c:29:65:e0:ea, length 322<br class="">   03:59:07.795712 IP 10.168.102.1.67 > 10.168.101.20.67: BOOTP/DHCP,<br class="">   Request from 00:0c:29:65:e0:ea, length 322<br class="">   03:59:19.196022 IP 10.168.102.1.67 > 10.168.101.20.67: BOOTP/DHCP,<br class="">   Request from 00:0c:29:65:e0:ea, length 322<br class=""><br class="">   root@DHCP-UBUNTU-SERVER:~# iptables -L<br class="">   Chain INPUT (policy ACCEPT)<br class="">   target     prot opt source               destination<br class=""><br class="">   Chain FORWARD (policy ACCEPT)<br class="">   target     prot opt source               destination<br class=""><br class="">   Chain OUTPUT (policy ACCEPT)<br class="">   target     prot opt source               destination<br class="">   root@DHCP-UBUNTU-SERVER:~#<br class=""><br class=""><br class="">The syslog log indicates the DCHP OFFERS are ‘supposed’ to be going out<br class="">however nothing is seen on the wire.<br class=""><br class=""><br class="">   Apr 27 04:03:26 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   available DHCP range: 10.168.102.100 -- 10.168.102.150<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   DHCPDISCOVER(ens160) 00:0c:29:65:e0:ea<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   tags: ens160<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   DHCPOFFER(ens160) 10.168.102.128 00:0c:29:65:e0:ea<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   requested options: 1:netmask, 28:broadcast, 2:time-offset,<br class="">   121:classless-static-route,<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   requested options: 15:domain-name, 6:dns-server, 12:hostname,<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   requested options: 40:nis-domain, 41:nis-server, 42:ntp-server,<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   requested options: 26:mtu, 119:domain-search, 3:router,<br class="">   121:classless-static-route,<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   requested options: 249, 33:static-route, 252, 42:ntp-server<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   next server: 10.168.101.20<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size:  1 option: 53 message-type  2<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size:  4 option: 54 server-identifier  10.168.101.20<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size:  4 option: 51 lease-time  12h<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size:  4 option: 58 T1  6h<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size:  4 option: 59 T2  10h30m<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size:  4 option:  1 netmask  255.255.255.0<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size:  4 option: 28 broadcast  10.168.102.255<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size:  4 option:  3 router  10.168.102.1<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size:  4 option:  6 dns-server  10.168.101.20<br class="">   Apr 27 04:03:29 DHCP-UBUNTU-SERVER dnsmasq-dhcp[17767]: 1121794364<br class="">   sent size: 20 option: 82 agent-id<br class="">    01:0a:01:08:00:06:00:4c:4f:2a:00:2f:02:06…<br class=""><br class=""><br class="">I’ve been trying to trace this issue and it is like the sendmsg system<br class="">call is not working properly.  I believe routing is setup properly on<br class="">the DHCP server.<br class=""><br class="">   root@DHCP-UBUNTU-SERVER:~# netstat -nr<br class="">   Kernel IP routing table<br class="">   Destination     Gateway         Genmask         Flags   MSS Window<br class="">    irtt Iface<br class="">   0.0.0.0         172.31.13.1     0.0.0.0         UG        0 0      <br class="">      0 ens192<br class="">   10.168.101.0    0.0.0.0         255.255.255.0   U         0 0      <br class="">      0 ens160<br class="">   10.168.102.0    0.0.0.0         255.255.255.0   U         0 0      <br class="">      0 ens160<br class="">   172.31.13.0     0.0.0.0         255.255.255.0   U         0 0      <br class="">      0 ens192<br class="">   root@DHCP-UBUNTU-SERVER:~#<br class=""><br class="">Can anyone seen something obvious that I am doing wrong?<br class=""><br class=""><br class=""></blockquote><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">What's the interface/vlan configuration?</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Where is the DHCP relay running and how is it configured?</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Cheers,</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Simon.</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Dnsmasq-discuss mailing list</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a></div></blockquote></div><br class=""></div></body></html>