= phenomenon = BGP lookups from IPv6 clients returns no results
= reason = no IPv6 global BGP table is downloaded
= recommendation = commit 9db03a200ee35685500760b53847fb51367ff922 Author: Matt Domsch matt@domsch.com Date: Tue Sep 29 08:10:59 2009 -0500
get IPv6 global netblocks also
diff --git a/server/get_global_netblocks b/server/get_global_netblocks index bee9820..f2befda 100755 --- a/server/get_global_netblocks +++ b/server/get_global_netblocks @@ -9,14 +9,34 @@ tmpdir=$(mktemp -d /tmp/get_global_netblocks.XXXXXXXX) || exit 1 trap "rm -rf ${tmpdir}" EXIT QUIT HUP KILL TERM listfile=$tmpdir/list
+function last_rib() +{ + head -n 20 ${tmpdir}/index.html | grep rib. | head -n 1 | \ + awk -F 'href="' '{print $2}' | \ + sed -e 's/".*//' +} + +function get_ipv6_netblocks() +{ + local curdate=$(date +"%Y.%m") + URL="http://archive.routeviews.org/route-views6/bgpdata/$curdate/RIBS/" + wget -q -O ${tmpdir}/index.html "${URL}?C=M;O=D" + last=$(last_rib) + wget -O ${tmpdir}/$(basename $last) -q "${URL}/$last" + bzcat ${tmpdir}/$(basename $last) | perl internet2/zebra-dump-parser/zebra-dump-parser.pl | uniq > $tmpdir/ipv6.txt + # this prefix appears repeatedly for multiple ASs, which is nuts. + sed -e '/2001::\/32/d' $tmpdir/ipv6.txt >> ${listfile} +} + function get_global_netblocks() { URL='http://ftp.routeviews.org/dnszones/rib.bz2' wget -O ${tmpdir}/rib.bz2 -q "${URL}" - bzcat ${tmpdir}/rib.bz2 | perl internet2/zebra-dump-parser/zebra-dump-parser.pl | uniq > ${listfile} + bzcat ${tmpdir}/rib.bz2 | perl internet2/zebra-dump-parser/zebra-dump-parser.pl | uniq >> ${listfile} }
get_global_netblocks +get_ipv6_netblocks if [ -s ${listfile} ]; then cp -f ${listfile} "${outfile}" else
This if broken in 1.3.2, will be fixed with the above patch in 1.3.3, and is hotfixed on bapp1.
live now with released MM 1.3.3.
Login to comment on this ticket.