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

IPv6 on Azure VM

· 52CE 我爱测

I have an Azure VM and it works fine with IPv4 Tried to directly associate IPv6 to it, but couldn't connect to the outside world, a simple ping ipv6.google.com hung (according to Microsoft, it is impossible, but with a load balan…

问题原文

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

I have an Azure VM and it works fine with IPv4

Tried to directly associate IPv6 to it, but couldn't connect to the outside world, a simple ping ipv6.google.com hung (according to Microsoft, it is impossible, but with a load balancer is possible)

Then, with a load balancer (Standard), I have associated an IPv4 and IPv6 to it but the problem persists, maybe I don't know how to configure one properly. This is what I did:

  • Created inbound rules (for HTTP(S), SSH and 8080)
  • Created outbound rule with Fronted IP as my IPv6, pool as my IPv6 pool and default allocation of ports

Changed back to the setup where I have the VM with both IPv4 and IPv6 attached.

My VM needs to be able to connect to an IPv6 server, someone can give some help?

已采纳解答

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

I attached both IPv4 and IPv6 to the VM without a load balancer and created the rules in the NSG to allow traffic to get in and out (I allow everything in and everything out), and test with another server.

Because I wasn't able to ping anything, I used netcat.

On the server I wanted to test, I executed nc -6 -l 8080 and on the VM nc -6 IP 8080 and sent a message. The server got the message, so I know I could connect to IPv6.

I just had to change VNet and Network Interface to support IPv6 and attach the IPs to the network interface.

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

资料来源与适用范围

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

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

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