大网数据广告活动
服务器运维问答

Adding a public IPv6 address to a Linux VM in Azure

· 52CE 我爱测

I have a Centos7 VM instance running in Azure. It has a public IPv4 address reachable from the internet. I would like to add a public IPv6 address to this instance's network interface but I cannot figure out how to do this. There…

问题原文

原帖链接 · EmToro · CC BY-SA 4.0

I have a Centos7 VM instance running in Azure. It has a public IPv4 address reachable from the internet. I would like to add a public IPv6 address to this instance's network interface but I cannot figure out how to do this. There does not seem to be a way to add it to the interface from the portal. I have consulted the documentation but it seems to have conflicting information that suggests it is not possible, or that it can only be achieved by creating a new VM. I have attempted this also but again could not get it to work. Information I have found on Google appears to be outdated.

I would appreciate it very much if someone could advise on whether it is possible to have both public IPv4 and IPv6 addresses allocated to the same VM, and if so how this might be acheived. Thanks!

已采纳解答

原帖链接 · Taguada · CC BY-SA 4.0

I believe that you are not able to change your current NIC to allow IPv6, so you must either redeploy your VM or attach a new NIC IPv6 and delete the old one. Also all SKUs for public IP (IPv4 and IPv6) must be the same (Dynamic or Standard). Don't forget to keep save your VM's disks to avoid any mistake. All steps to achieve this configuration are below.

I suggest you to test it in staging before changing your production.

1 - configure an address space IPv6 for your VNet

2 - configure your current subnet where this VM lives to allow IPv6

3 - Your NIC looks like as this picture. Configure both IPv4 and IPv6 for this NiC.

4 - Your VM shows up both IP (IPv4 and IPv6)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-04-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。