Community discussions

MikroTik App
 
PLACEOFTHESKULL
just joined
Topic Author
Posts: 1
Joined: Thu Jul 15, 2021 4:35 am

Adding Multiple IP blocks to IP-->Addresses

Thu Jul 15, 2021 4:43 am

Hi, I am looking for a way to add an entire IP block to IP-->Addresses. I need to add 254 and was hoping I do not need to input one at a time.

Attached a screenshot. Thanks!!
You do not have the required permissions to view the files attached to this post.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Adding Multiple IP blocks to IP-->Addresses

Thu Jul 15, 2021 3:56 pm

What's the reason?

Try explaining,
probably,
for to do the same thing that forces you to do this,
there is a better way to do it ...
 
ferrets
just joined
Posts: 16
Joined: Thu Oct 01, 2015 7:39 pm

Re: Adding Multiple IP blocks to IP-->Addresses

Thu Jul 15, 2021 4:30 pm

using scripts maybe much more easier
 
pe1chl
Forum Guru
Forum Guru
Posts: 10195
Joined: Mon Jun 08, 2015 12:09 pm

Re: Adding Multiple IP blocks to IP-->Addresses

Thu Jul 15, 2021 5:30 pm

Normally for such a thing I would use a script on my computer to generate the proper commandline config, and then import or paste that into the router.
It would also be possible to make a script on the router but that is extremely difficult to debug and likely not worth the trouble.

E.g. in bash one would do something like:
for (( i = 1; i < 255; i++ ))
do
    echo "/ip address add address=192.168.1.$i interface=bridge1"
done
and the copy/paste the output into a telnet/ssh session to the router.

Who is online

Users browsing this forum: Amazon [Bot], Guntis, mogiretony, Semrush [Bot] and 99 guests