Skip to main content

BGP figure out networks belonging to AS

BGP List prefixes

To list all prefixes originated on AS1759 against the Routing Assets Database (RADb), issue the command below.

whois -h whois.radb.net -- '-i origin AS1759' | grep -Eo "(route:|route6:).*"
route:      139.157.0.0/16
route:      147.44.0.0/16
route:          193.178.133.0/24
....
route6:         2001:2003::/32
route6:         2a00:8a00:4000::/35
route6:         2a03:62a0:3501::/48

Thanks to this Link: https://www.noction.com/knowledge-base/bgp-filtering