in reply to efficient IPv6 subnetting

I apologize. The code I wrote while with the ISP in the early days of IPv6 is protected by IP rights (before I forced an agreement that what code I wrote I could open-source), so I can't share it (it's much more efficient than what you're doing here, but it is still pretty clunky).

I don't have the time to play around right now, so what I can recommend is sipcalc command line utility. eg:

sipcalc -a 2001:db8::/40 -S /56

You can dump the output of that to a file, then write Perl code to read and manipulate it afterwards.

Replies are listed 'Best First'.
Re^2: efficient IPv6 subnetting
by stevieb (Canon) on Nov 25, 2015 at 01:26 UTC

    I have got -- only a few times in my time here, and that's because I spoke before I tested. Please speak up if you have a better suggestion. This isn't SO... I'd like to know what's bad about my post so I can improve what I do here.