So the next best thing would be the subnet ID since the gateways are available on each of the subnets involved at the same respective address per subnet, e.g; x.x.x.2, x.x.x.4—none on the same device of the DHCP server. So according to the documentation it should be relatively easily to script it so it's adapter per subnet automatically removing a zero and adding a number in its place or if it happens to use only the significant bits of the addresss, even easier… something like
Code: Select all
0x'8''10'$(SUBNET_ID)0200$(SUBNET_ID)4
( hopefully, it's not clear if "0x" is added automatically )
# or: or if it needs to be added at all or it's just indicating hex
10/8via10.0.0.2, 0/0via10.0.0.4
# source: https://help.mikrotik.com/docs/display/ROS/DHCP#DHCP-DHCPOptions.1