Skip to content

Get routable prefix list from RIPE route objects

License

Notifications You must be signed in to change notification settings

Urlandi/prefgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Make prefix list from RIPE route objects

  • ckpr.tcl - make prefix list from ASnum or AS-SET
  • ckas.tcl - expand AS-SET to ASnum list

All incoming data are reading from stdin. Result is fetching from RIPE DB route objects by origin field. Needing the whois utility.

For aggregate prefixes may use an utility in bgptablehole.

For example:

  • echo AS64500 | tclsh ckpr.pl - will return all prefixes from RIPE DB route objects where is origin fields match AS65500
  • echo AS-64500 | tclsh ckpr.pl - will return all prefixes from RIPE DB route objects where is origin fields match all ASn from AS-AS65500 as-set object
  • echo AS-64500 | tclsh ckas.pl - will return all ASn from AS-AS65500 as-set object
  • echo AS64500 | tclsh ckpr.pl | sort -gst. -k1,1 -k2,2 -k3,3 -k4,4 | python ipv4full.py -sgpd - will return all AGGREGATED prefixes from RIPE DB route objects where is origin fields match AS65500

About

Get routable prefix list from RIPE route objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published