<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I'm trying to make <b>dnsmasq</b> work on my Debian Virtualbox guest but I keep getting reply from my VBox host DHCP first.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have configured bridge ( br0 ) using openvswitch:</div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></blockquote><blockquote class="gmail_quote" style="font-size:12.8px;margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">$ ovs-vsctl show<br>cbda5c6b-c9ba-4fb4-8143-<wbr>a1f0683e1e96<br>    Manager "ptcp:6640"<br>    Bridge "br0"<br>        Port "eth0"<br>            Interface "eth0"<br>        Port "vport1"<br>            Interface "vport1"<br>        Port "br0"<br>            Interface "br0"<br>                type: internal<br>    ovs_version: "2.4.0"</blockquote><div style="font-size:12.8px"> </div><div style="font-size:12.8px">And have <b>dnsmasq</b> running on <b>br0</b></div><div style="font-size:12.8px">I have also removed configuration from <b>eth0</b></div><div style="font-size:12.8px"><b>ifconfig eth0 0 </b>and set default gateway to b<b>r0</b></div><div style="font-size:12.8px"><b>route add default gateway 192.168.1.129</b></div><div style="font-size:12.8px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">$ route -n<br>Kernel IP routing table<br>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br>0.0.0.0         192.168.1.129   0.0.0.0         UG    0      0        0 br0<br>172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0<br>192.168.1.128   0.0.0.0         255.255.255.128 U     0      0        0 br0<br>192.168.56.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1</blockquote><div><br></div><div>But when I'm running <b>nmap --script broadcast-dhcp-discover -e br0</b></div></div><div style="font-size:12.8px">the tdpdump process show response/OFFER from VBox DHCP comes first.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b>tcpdump -i br0 -nev udp port 68</b><br></div><div style="font-size:12.8px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">tcpdump: listening on br0, link-type EN10MB (Ethernet), capture size 262144 bytes<br>01:29:51.031925 08:00:27:b6:c1:90 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 355: (tos 0x0, ttl 64, id 23681, offset 0, flags [DF], proto UDP (17), length 341)<br>    192.168.1.129.68 > 255.255.255.255.67: BOOTP/DHCP, Request from de:ad:c0:de:ca:fe, length 313, xid 0x514a3f0c, Flags [Broadcast]<br>          Client-Ethernet-Address de:ad:c0:de:ca:fe<br>          Vendor-rfc1048 Extensions<br>            Magic Cookie 0x63825363<br>            DHCP-Message Option 53, length 1: Discover<br>            Parameter-Request Option 55, length 61:<br>              Subnet-Mask, Time-Zone, Default-Gateway, Time-Server<br>              IEN-Name-Server, Domain-Name-Server, LOG, CS<br>              LPR-Server, IM, RL, Hostname<br>              BS, DP, Domain-Name, SS<br>              RP, EP, IPF, SRT<br>              PF, RSZ, TTL, MTU-Timeout<br>              MTU-Table, MTU, LSN, BR<br>              MD, MS, Router-Discovery, RSA<br>              Static-Route, UT, AT, IE<br>              TT, KI, KG, YD<br>              YS, NTP, Vendor-Option, Netbios-Name-Server<br>              WDD, Netbios-Node, Netbios-Scope, XFS<br>              XDM, Requested-IP, Lease-Time, OO<br>              DHCP-Message, Server-ID, Parameter-Request, MSG<br>              MSZ, RN, RB, Vendor-Class<br>              Client-ID<br>            Lease-Time Option 51, length 4: 1<br>01:29:51.034866 52:54:00:12:35:02 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 590: (tos 0x10, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 576)<br>    10.0.2.2.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 548, xid 0x514a3f0c, Flags [Broadcast]<br>          Your-IP 10.0.2.15<br>          Server-IP 10.0.2.4<br>          Client-Ethernet-Address de:ad:c0:de:ca:fe<br>          file "debian8.pxe"<br>          Vendor-rfc1048 Extensions<br>            Magic Cookie 0x63825363<br>            DHCP-Message Option 53, length 1: Offer<br>            Subnet-Mask Option 1, length 4: 255.255.255.0<br>            Default-Gateway Option 3, length 4: 10.0.2.2<br>            Domain-Name-Server Option 6, length 8: 192.168.1.1,192.168.1.1<br>            Domain-Name Option 15, length 4: "home"<br>            Lease-Time Option 51, length 4: 86400<br>            Server-ID Option 54, length 4: 10.0.2.2<br>01:29:54.031972 08:00:27:b6:c1:90 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 347: (tos 0xc0, ttl 64, id 24077, offset 0, flags [none], proto UDP (17), length 333)<br>    192.168.1.129.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 305, xid 0x514a3f0c, Flags [Broadcast]<br>          Your-IP 192.168.1.176<br>          Server-IP 192.168.1.129<br>          Client-Ethernet-Address de:ad:c0:de:ca:fe<br>          Vendor-rfc1048 Extensions<br>            Magic Cookie 0x63825363<br>            DHCP-Message Option 53, length 1: Offer<br>            Server-ID Option 54, length 4: 192.168.1.129<br>            Lease-Time Option 51, length 4: 120<br>            RN Option 58, length 4: 60<br>            RB Option 59, length 4: 105<br>            Subnet-Mask Option 1, length 4: 255.255.255.128<br>            BR Option 28, length 4: 192.168.1.255<br>            Domain-Name-Server Option 6, length 4: 192.168.1.129<br>            Domain-Name Option 15, length 11: "<a href="http://mydomain.io/" target="_blank">mydomain.io</a>"<br>            Default-Gateway Option 3, length 4: 192.168.1.129</blockquote><div><br></div><div>What did I do wrong?</div><div>~Thanks</div><div><br></div><div>My dnsmasq.conf file:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">interface=br0<br>domain-needed<br>bogus-priv<br>no-resolv<br>local=/<a href="http://mydomain.io/" target="_blank">mydomain.io/</a><br>no-poll<br>no-hosts<br>domain=<a href="http://mydomain.io/" target="_blank">mydomain.io</a><br>dhcp-range=192.168.1.129,192.<wbr>168.1.254,255.255.255.128,192.<wbr>168.1.255,12h<br>dhcp-option=3,192.168.1.129<br>log-queries<br>log-dhcp<br>dhcp-authoritative </blockquote></div></div>