<div dir="ltr">On Fri, Mar 8, 2013 at 6:14 PM, Simon Kelley <span dir="ltr"><<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 07/03/13 14:34, hansen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi dnsmasq'ueraders :)<br>
<br>
I have a small network, where I am trying to split my network into to<br>
ranges.<br>
One range for local machines and another range for guests. On two<br>
different interfaces connected to dnsmasq.<br>
<br>
Usually I don't have any problems, but sometimes my local machines end<br>
up on the guest range network.<br>
If I release the DHCP on the machine and reboot it, then it is 50/50 if<br>
the go back to local network or end up on guest network again.<br>
<br>
Is this network setup just bad and not possible to behave as I expect -<br>
or is it just a configuration mistake?<br>
I am running dnsmasq 2.65 on FreeBSD 7.4.<br>
Looking at the changelog it seems like the feature I'm looking for was<br>
removed in 2.63 (Remove the interface:<interface> argument in --dhcp-range)<br>
</blockquote></div>
No that feature won't fix the problem.<br>
<br>
The problem is that you have two interfaces (em1 and em2) connected to the same broadcast domain. That's not something that dnsmasq knows how to deal with, and it gets confused when is gives a client an address associated with one interface, and then it turns up on a different interface.<br>
<br>
Can you use one physical interface on the machine running dnsmasq, and give it two addresses?<br></blockquote><div><br></div><div style>Hi Simon,</div><div style><br></div><div style>Thanks for replying. I do think it's possible to create virtual IPs on one physical interface. So you don't think it would be a problem if two VIPs broadcasts?</div>
<div style><br></div><div style>Not sure how the ideal setup would be, but probably something with VLAN - the switch doesn't do that and don't have the funds right now.</div><div style><br></div><div style>-hansen</div>
<div style><br></div></div></div></div>