Még a leírtnál is kicsit összetettebb a rendszerem, mert egy-egy interface-en akár több subnet is van, de remélem így még hasznosabb lesz a config:
Így néz ki az IP-kiosztás
eth0: x.x.x.x/255.255.255.0
eth1: 10.1.1.254/255.255.255.0
10.1.2.254/255.255.255.0
10.1.3.254/255.255.255.0
10.1.4.254/255.255.255.0
eth2: 10.2.1.254/255.255.255.0
eth3: 10.3.1.254/255.255.255.0
Így pedig a dnsmasq.conf idetartozó része:
dhcp-range=10.1.1.0,static,255.255.255.0
dhcp-range=10.1.2.0,static,255.255.255.0
dhcp-range=10.1.3.0,static,255.255.255.0
dhcp-range=interface:eth1,10.1.4.100,10.1.4.200,255.255.255.0,1h
dhcp-range=interface:eth2,10.2.1.100,10.2.1.200,255.255.255.0,1h
dhcp-range=10.3.1.0,static,255.255.255.0
dhcp-host=80:00:27:86:64:fd,lan01host01,10.1.1.5,net:eth1,12h
dhcp-host=80:00:27:86:64:fd,lan02host01,10.2.1.5,net:eth2,12h
dhcp-host=80:00:27:86:64:fd,lan03host01,10.3.1.8,net:eth3,12h
dhcp-host=80:00:27:86:64:fe,lan01host02,10.1.2.6,net:eth1,12h
dhcp-host=80:00:27:86:64:fe,lan02host02,10.2.1.6,net:eth2,12h
dhcp-host=80:00:27:86:64:fe,lan03host02,10.3.1.9,net:eth3,12h
dhcp-option=tag:eth1,option:dns-server,8.8.8.8
dhcp-option=tag:eth1,option:domain-name,"lan1.local"
dhcp-option=tag:eth2,option:dns-server,208.67.222.222
dhcp-option=tag:eth2,option:domain-name,"lan2.local"
dhcp-option=tag:eth3,option:dns-server,199.85.126.30
dhcp-option=tag:eth3,option:domain-name,"lan3.local"
dhcp-option=tag:eth3,option:router,10.3.1.2
Ezzel a konfiggal tesztelve mindkét ismert gép mindhárom lan-ban a neki fixen megadott címet kapja.
Ismeretlen gép a lan1-ben 10.1.4.100-200 tarományból kapott címet, a lan2-ben a 10.2.1.100-200 tartományból, a lan3-ban pedig nem kapott.