Community discussions

MikroTik App
 
olivier2831
Member Candidate
Member Candidate
Topic Author
Posts: 296
Joined: Fri Sep 08, 2017 6:53 pm

Compute IPv4 addresses in script

Thu Feb 10, 2022 5:39 pm

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
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Compute IPv4 addresses in script  [SOLVED]

Thu Feb 10, 2022 8:02 pm

A quick google search:
viewtopic.php?t=116253

PS I have not tested it.
 
olivier2831
Member Candidate
Member Candidate
Topic Author
Posts: 296
Joined: Fri Sep 08, 2017 6:53 pm

Re: Compute IPv4 addresses in script

Tue Feb 15, 2022 10:24 am

A quick google search:
viewtopic.php?t=116253

PS I have not tested it.
Thanks for replying.

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

Who is online

Users browsing this forum: No registered users and 25 guests