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 addresses generator?
MarshalChe
Member
in Help
Good day.
For the subnet planning i use http://www.gestioip.net/cgi-bin/subnet_calculator.cgi, which is very useful tool. But can you advise me IPv6 addresses generator? Where i can input subnet and get n of random addresses? Can't find it both online and as standalone software.
Thanks!
Thanked by 1licher70
Comments
Look here.
random-ipv6-addr.py
Source: wido/random-ipv6-addr.py on GitHub
Simply replace subnet with your wanted subnet.
Bulk generation of random IPv6 addresses isn't that easy by hand. Sometimes a script is really handy for this purpose.
or some very quick and nasty php..
Ohh, you don't mean like 10 addresses but hundreds. oki
Yes, i saw it, but the result returns only 1 address. IS it possible for you to explain how to get n addresses in one run? I have no skill to do this. Thanks.
Just add a simple loop. NOTE Possible duplication of addresses.
for i in {1..100}; do python random-ipv6-addr.py; done
or just look at the answer of Hotmarer
If you do need a large number use the version posted by @Hotmarer, for loop dose work but it's quite a bit slower since it need to start a new python process for each run.
This is what I use https://ip6.sh
Just use the random subnet section and /64 to /128 and generate as many address as you want.
Why not just use SLAAC? It's literally built in to the protocol and is probably what your home network is using for IPv6 configuration (if your internet provider has native IPv6)
Here is the start of your own simple script (on Linux):
while : ; do head /dev/urandom | md5sum | cut -c1-32 - ; done
Change 32 to how many ever digits you need, insert a prefix, separate each 4 characters by a colon to get pretty formatting, etc.
This is what i searched for. Much thanks.
Those who want find IPv6 addresses random generator should find it in this topic.