? That does not seem to make much sense to me (since the idea of a default gateway is that it is in the local subnet). OTOH, if using e. g. 255.255.255.0 as netmask, then the routes are already set up correctly by default. Can you please be a bit more specific what you want to achieve?
Can you please explain this with a little more detail? You mean you have a DHCP configuration like
subnet 172.16.0.2 netmask 255.255.255.255 {
range 172.16.0.2 172.16.0.2;
option routers 172.16.0.1;
}
? That does not seem to make much sense to me (since the idea of a default gateway is that it is in the local subnet). OTOH, if using e. g. 255.255.255.0 as netmask, then the routes are already set up correctly by default. Can you please be a bit more specific what you want to achieve?