I'd like to give unknown clients an ip address in one range and known clients in another (that is a static one).
I tried quite a lot now and don't seem to get it working. All I get is an "no address available" error.
My network is 10.1.0.0/22 (<-!!!) Guests should be assigned an address in the range 10.1.3.1-10.1.3.254 Static addresses are in range 10.1.2.1-10.1.2.254
so this is my config:
iface eth0 inet static
address 10.1.0.2/22
gateway 10.1.0.1
eth0@if17: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether aa:bb:cc:dd:ee:ff brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.1.0.2/22 brd 10.1.3.255 scope global eth0
valid_lft forever preferred_lft forever
and
dhcp-range=tag:guests,10.1.3.1,10.1.3.254,255.255.252.0,12h
dhcp-range=tag:known,10.1.2.0,static,24h
dhcp-option=option:router,10.1.0.1
dhcp-option=option:dns-server,10.1.0.3
dhcp-option=option:ntp-server,10.1.0.1
dhcp-host=aa:bb:cc:dd:ee:ff,10.1.2.1
dhcp-host=11:22:33:44:55:66,10.1.3.2
Known hosts are given their addresses (regardless if its a .2. or .3. address) but unknown dont get anything.