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

Johannes Martin jmartin at notamusica.com
Wed Jun 3 06:52:59 BST 2015


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.

Is there any way to override this behaviour, i.e. make dnsmasq serve the 
defined static ip address, even if it does not seem to make sense?

In the end I would like to be able to logically separate groups of devices 
in different vlans which all use the same physical interfaces (I do 
realize there will be no physical separation between the networks and 
understand there is only little security gain in that separation).

Thanks
 	Johannes

---

Mit zwei Euro im Monat helfen:
 	http://www.2-euro-helfen.de/
Help to fight hunger and injustice in our world:
 	http://www.devp.org/
 	http://www.oxfam.org/



More information about the Dnsmasq-discuss mailing list