Hello! I need to lease /32 IP address via dhcp. I don't want static lease. Topology is like:
198.51.100.1/32 with gw 192.0.2.226 on eth2, and i need to lease 192.0.2.226/32 gw 198.51.100.1 to the first client on eth2. How can i achieve this?
Hello! I need to lease /32 IP address via dhcp. I don't want static lease. Topology is like:
198.51.100.1/32 with gw 192.0.2.226 on eth2, and i need to lease 192.0.2.226/32 gw 198.51.100.1 to the first client on eth2. How can i achieve this?
When the gateway is outside of layer 3 subnet, you will need a dedicated route on the client with the flag "on link".
I'm not quite sure if this works with dhcp...
If you send routes via dhcp then a client should not add a default route but i.e. network manager from systemd will add the extra routes and a default route but iirc android and windows will be left without a default gateway.
May I ask why you need to lease /32 addresses?
A workaround could be to use one /30 for each client.
I don't recall all dnsmasq options but I think you can declare individual pools and using client tags to select a pool for each client....
But I avoid usually these kinds of configs.
Did you read the dnsmasq documentation?
Most if not all dnsmasq options can be declared via UCI too or as native dnsmasq config in /etc/dnsmasq.conf
Yes, but i don't understand, how to switch off the default logic, where IP pool is inherited from the ip and netmask on the interface
Did you tried limit 0
?
I would need to test and check too and I'm currently not near an OpenWrt shell