New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
IPv6 address extractor
I'm looking for any utilities that could help to extract a range of IPv6 addresses from a block. For example, if my block looks like this 2607:5300:60:62ac::/64, I'm hoping I can get a list of extracted addresses like:
2607:5300:60:62ac::1
2607:5300:60:62ac::2
2607:5300:60:62ac::3
...
Any utility or script will be greatly appreciated.
Comments
https://code.google.com/p/ipv6gen/
Well, a list for a whole /64 would contain 18446744073709551616 entries.
Not very practical.
Here is for a shorter list:
IPv6gen (perl script):
https://code.google.com/p/ipv6gen/
Then:
./ipv6gen.pl 2607:5300:60:62ac::/64 128
Not sure if this might be helpful, but we use something like this to accomplish a similar task: https://gist.github.com/click0/939739
Yes, that's true. I may want a range from the whole block, like 1000 or so.
This has no problem until the 10th address generated. Thanks anyway.
Thanks. I believe that is the way to go. Not sure how likely collision could happen in multiple generations. Maybe I need to try to modify it a little bit to make it generate addresses sequentially. Thanks, the code is quite useful.
Thanks. This perl script works exactly the same as what I expected.