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.
Adding multiple IPv6s to an OpenVZ VPS at once.. possible?
Hi guys,
I have an OpenVZ centOS VPS from a host with /64 IPv6s subnet. In the solusVM client side, I see that I can add IPv6s one by one...
Is there a way to assign many IPv6s to the VPS? For example, if I wanted to add 256 of them at once.
Doing this one by one seems very tedious.
Thanks in advance, Sj
Comments
"A little fire is quickly trodden out, Which, being suffer'd, rivers cannot quench."
Honestly, SolusVM's client API doesn't offer anything in terms of IP management. Unless the host is willing to setup a vETH device, it's one at a time baby.
for i in $(seq 1 5); do curl https://solus.vm.com/ipv6.php?_id=[......] --data "newip=%3A%3A${i}&addnewip=Add"
thanks! exactly what we did, works like a charm. thanks again!