Please advise me how can mikrotik script can calculate first address in subnet if he knows any IP from this subnet in dotted notification ?
I mean if address is ex. 10.255.192.227/28 then script showld return 10.255.192.224.
{
:local IP 10.255.192.227;
:local mask 255.255.255.240;
:put ($IP&$mask)
}
I'm sure there's a way to simply convert a CIDR notation to a dotted notation for the mask.
-Chris
Christopher Diedrich
MTCNA, MTCUME, MTCWE
Basel, Switzerland
Bremen, Germany
There are 10 types of people: Those who understand binary and those who don't.
There are two types of people: Those who can extrapolate from incomplete data