howtos:get_all_danish_ip_subenets
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:get_all_danish_ip_subenets [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Get the whole list: | ||
+ | < | ||
+ | wget ftp:// | ||
+ | </ | ||
+ | |||
+ | Parse it with the following script: | ||
+ | |||
+ | < | ||
+ | grep DK.ipv4 delegated-ripencc-latest | awk -F' | ||
+ | </ | ||
+ | |||
+ | Now extract the IP subents: | ||
+ | |||
+ | < | ||
+ | cat danske_netblokke |grep route: | cut -d: -f2| sed ' | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | One-liner for DK: | ||
+ | < | ||
+ | curl --silent https:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | Change the resource=xx to the country you would like to extract (https:// | ||
+ | |||
+ | The last part " |
howtos/get_all_danish_ip_subenets.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1