Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to change a IPv6 address without deleting the instance

When I create a double-stack VPC and launch an instance using this double-stack VPC, I get an IPv6 /64 CIDR for the instance. But after I launch the instance I find out that it only has an IPv6 address such as 2600:1000:41af:1234:0:0:0:0/128. How can I reassign a new IPv6 address and release the old one?

We all know that an ephemeral IPv4 address attached to an instance will change as long as I stop the instance and launch it again, but that doesn't work on IPv6 address when I reboot the instance. It is still the original address (2600:1000:41af:1234:0:0:0:0 to 2600:1000:41af:1234:0:0:0:0, etc.).

Can anyone tell me how to solve it? Thanks 

Solved Solved
0 2 536
1 ACCEPTED SOLUTION

Hi @Legend307 

Please use below steps

1) Stop VM

2) Click on Edit VM and Change IP stack to "IPV4 Single Stack" for VM only as shown in below and start VM.

VishalBulbule_1-1672038944715.png

3) Again stop VM and change stack to Dual Stack and start VM , it will started with new IP.

View solution in original post

2 REPLIES 2

Hi @Legend307 

Please use below steps

1) Stop VM

2) Click on Edit VM and Change IP stack to "IPV4 Single Stack" for VM only as shown in below and start VM.

VishalBulbule_1-1672038944715.png

3) Again stop VM and change stack to Dual Stack and start VM , it will started with new IP.

Wow thanks!!!!

You suggestion really worked and the public IPv6 address successfully changed!