<div dir="ltr">Has anyone else ever run a DHCP server on the bridge or propagated DNS settings to devices connected to one side of the bridge ? I am unsure why this isn't working. <div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 30, 2015 at 4:25 AM, 五月 <span dir="ltr"><<a href="mailto:allfox@live.cn" target="_blank">allfox@live.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Greetings,<br><br>I did have Dnsmasq on a bridge in the past. It works.<br><br>Could you try editing your /etc/network/interfaces to:<br><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span class="">iface eth0 inet manual
iface eth1 inet manual
<br></span>allow-hotplug br0
iface br0 inet static
bridge_ports eth0 eth1
address 192.168.1.1<br> netmask 255.255.255.0<br> gateway 192.168.1.1<br></pre><br>For /etc/dnsmasq.conf:<br><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><pre style="white-space:pre-wrap">dhcp-range=lan,192.168.1.5,192.168.1.500,255.255.255.0,5m</pre></pre>Firstly, you couldn't have an address like 192.168.1.500, because IP only ranges from 1 to 255. And 1 is used by your gateway machine, 255 is for broardcast.<br><br>And I think 5 min is too short for DHCP lease.<br><br>Try edit this line to<br>dhcp-range=192.168.1.2,192.168.1.254,12h<br><br>I see you set a tag named "lan", I don't know this option, maybe someone else could help.<br><br>You don't need to mannually tell Dnsmasq those dhcp-options. By default, they're all pointing to the Dnsmasq machine.<br><br><br><div><hr>Date: Sat, 29 Aug 2015 10:03:59 -0700<br>From: <a href="mailto:johnpearson555@gmail.com" target="_blank">johnpearson555@gmail.com</a><br>To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>Subject: [Dnsmasq-discuss] DHCP server on Bridge<div><div class="h5"><br><br><div dir="ltr">Hi all, <span style="font-size:12.8000001907349px">I am trying to have Dnsmasq on a bridge ( br0 ) and also have it serve as the DHCP server. Traffic is going through the bridge but devices connected to eth1 don't have DHCP and DNS settings traversing. How to setup dnsmasq on a bridge so that it is transparent but still acts as a dhcp server and sets dns settings to all devices connected to eth1 ?</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Here is my current setup :</div><div style="font-size:12.8000001907349px"><br></div><span style="font-size:12.8000001907349px"># etc/network/interfaces</span><div style="font-size:12.8000001907349px"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">iface eth0 inet manual
iface eth1 inet manual
iface br0 inet static
bridge_ports eth0 eth1
address 192.168.1.1</pre><div><br></div><div><br></div><div>#dnsmasq.conf</div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">domain-needed
bogus-priv
no-resolv
no-poll
listen-address=127.0.0.1
listen-address=192.168.1.1
interface=br0
bind-interfaces</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><pre style="white-space:pre-wrap">dhcp-range=lan,192.168.1.5,192.168.1.500,255.255.255.0,5m
# broadcast address (28)
dhcp-option=lan,28,192.168.1.255
# gateway address (3)
dhcp-option=lan,3,192.168.1.1
# DNS server (6)
dhcp-option=lan,6,192.168.1.1
dhcp-authoritative</pre>
server=8.8.8.8
server=8.8.4.4</pre></div></div></div>
<br></div></div>_______________________________________________
Dnsmasq-discuss mailing list
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a></div> </div></div>
<br>_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
<br></blockquote></div><br></div>