[nsp] generating prefix-lists based on AS-Sets - how-to?

Nipper, Arnold arnold at nipper.de
Thu Nov 20 10:22:29 EST 2003

On Thursday, November 20, 2003 3:50 PM, matthew zeier <mrz at intelenet.net>
> I'm missing some nugget of info on how to automatically create BGP
> prefix-lists given a particular AS-Set.  I can generate a config for a
> AS.

Use RADB's extended DB feature (Appendix B of
http://www.irrd.net/irrd-user.pdf). You can throw an AS-set an the server
(whois.radb.net) and get back a list of ASN. Then you open a new connection
to that server and throw all of the ASN at it while leaving the connection
all the time and get back a list of prefixes. Sort -u and aggregate
(http://software.freshmeat.net/projects/aggregate/) and you're done.

Regards, Arnold

More information about the cisco-nsp mailing list