Portal Home > Knowledgebase > Articles Database > ipv6 ip addresses.


ipv6 ip addresses.




Posted by relichost, 08-20-2011, 11:41 AM
Hi Does anyone have a PHP or Perl script to generate Ipv6 addresses ? I could write one but just wondered if anyone had one. Thanks

Posted by iTom, 08-20-2011, 05:03 PM
What do you mean by generate them? If your talking about public IP's you need to be allocated them... Private ones you just need to use a DHCP server etc...

Posted by lynxus, 08-20-2011, 05:11 PM
NO SUCH THING AS PRIVATE! ipv6 addresses The "documentation" block is the closest thing. "private" blocks were deprecated. FEC0::/10 is the "site local" range however as i mentioned its been deprecated so i wouldnt use it.

Posted by relichost, 08-20-2011, 05:40 PM
Hi I have a block assigned. I want a script to iterate through the range and display them so i can easily add (say 100 ipv6 ip's) to a server. ipv6gen 2000:4:56:1::/64 then it will display 2000:4:56:1::1 2000:4:56:1::2 .... etc Thanks

Posted by lynxus, 08-21-2011, 05:30 AM
You can always try sipcalc for linux.. simply type sipcalc 2000:4:56:1::/64 and it will show your network and broadcast addresses, So you can simply figure out what addresses you have.. 2000:4:56:1::1 2000:4:56:1::2 2000:4:56:1::3 2000:4:56:1::4 2000:4:56:1::5 2000:4:56:1::6 2000:4:56:1::7 2000:4:56:1::8 2000:4:56:1::9 2000:4:56:1::a 2000:4:56:1::b 2000:4:56:1::c 2000:4:56:1::d 2000:4:56:1::e 2000:4:56:1::f 2000:4:56:1::10 2000:4:56:1::11 2000:4:56:1::12 2000:4:56:1::13 2000:4:56:1::14 etc. Simple counting...

Posted by relichost, 08-21-2011, 04:13 PM
Hi I know the addresses that are available, but what i lack is something to list them all.I want to automate so the few hundred servers can then be allocated them didnt know about sipcalc, but it doesnt help with what i wanted. Thanks

Posted by lynxus, 08-21-2011, 06:01 PM
LISTING every IP wont help you in any way ( unless you fancy a few billion rows? ) Anyway, Quick two minute script to output a count for ya.. 2000:4:56:1::0 2000:4:56:1::1 2000:4:56:1::2 2000:4:56:1::3 2000:4:56:1::4 2000:4:56:1::5 2000:4:56:1::6 2000:4:56:1::7 2000:4:56:1::8 2000:4:56:1::9 2000:4:56:1::a 2000:4:56:1::b 2000:4:56:1::c 2000:4:56:1::d 2000:4:56:1::e 2000:4:56:1::f 2000:4:56:1::10 2000:4:56:1::11 2000:4:56:1::12 2000:4:56:1::13 2000:4:56:1::14 2000:4:56:1::15 2000:4:56:1::16 2000:4:56:1::17 2000:4:56:1::18 2000:4:56:1::19 2000:4:56:1::1a 2000:4:56:1::1b 2000:4:56:1::1c 2000:4:56:1::1d 2000:4:56:1::1e 2000:4:56:1::1f 2000:4:56:1::20 2000:4:56:1::21 2000:4:56:1::22

Posted by relichost, 08-22-2011, 03:54 AM
Thanks. for the script.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
sync hosting (Views: 687)
Get more leads (Views: 683)
Forum User Limits (Views: 691)
window.onload Issue (Views: 658)


Language: