Converting a List of IP Addresses into an ACL

Have a question or want to start a discussion? Post it! No Registration Necessary.  Now with pictures!

Threaded View
Question:

Does anyone know of a programme/script to
convert a list of IP addreses into a Cisco ACL?


I have a list courtesy of ZBBlock

and would like to convert these 50000 IPs into
an ACL.

Also I would like to target the correct range as well.



--  
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising!  
http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism
We thought, because we had power, we had wisdom.  -Stephen Vincent Benet  

Re: Converting a List of IP Addresses into an ACL
 doctor@doctor.nl2k.ab.ca (The Doctor) wrote:

Quoted text here. Click to load it

Depending on how much effort you want to put in this might be of  
interest to you:
<http://ftp.fi.netbsd.org/pub/netinfo/old/cisco/masks.c

I once had to do something similar and munged the logic (slightly  
improved) into a Perl program.

Sam

--  
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

Site Timeline