[Dnsmasq-discuss] Serving DHCP requests from a subnet not matching the interface

Neil Jerram Neil.Jerram at metaswitch.com
Fri Jun 12 11:36:49 BST 2015


Hi Johannes,

Sorry, I've only just noticed this...

On 03/06/15 06:52, Johannes Martin wrote:
> Hi,
>
> I have the following network setup:
> - eth0: 192.168.1.254/24
> - br0: 192.168.10.254/24
>      bridging virtual interfaces eth0.10 and wlan0.10
>      (plain virtual interfaces, no vlan tagging)
>
> I have a dynamic dhcp range defined on the 192.168.1.0 subnet and a
> static dhcp range with static host entries (by mac address) defined on
> the 192.168.10.0 subnet.
>
> When a device connects through the wlan0 interface, dnsmasq properly
> serves the defined static addresses.
>
> However, when the devices connects through the eth0 interface, dnsmasq
> serves an address from the dynamic range even when a static address is
> defined for the device.
>
> So, dnsmasq does not realize that eth0 and eth0.10 are the same physical
> interface and that it is fine to serve an address that is valid only for
> eth0.10 on that physical interface.

I wonder if --bridge-interface=br0,eth0 would do what you want?

Except that I don't understand when you would actually _want_ a dynamic 
allocation from 192.168.1/24.  I think that using --bridge-interface 
would mean that you'd _never_ get an allocation from 192.168.1/24.

Regards,
	Neil



More information about the Dnsmasq-discuss mailing list