Compute IPv4 addresses in script

Hello,

I’m currently developing a script that starts with:
:global IP1 25.74.135.17
:global CIDR1 255.255.255.248
:global NET1 25.74.135.16
:global LEN1 29

As you may see, all four values could be computed from a single 25.74.135.17/29 value.
How can this done, efficiently on 6.4X ?

Best regards

A quick google search:
http://forum.mikrotik.com/t/ipcalc/104727/1

PS I have not tested it.

Thanks for replying.

I haven’t tested the above linked solution, yet but it seems to fit.