分配给您的地址
每台服务器都有一个路由到本机的 /64 地址段(例如 2001:db8:1234:5678::/64),如有需要还可免费申请 /56。地址段及其网关显示在客户中心的服务器页面上。
Ubuntu(使用 netplan)
在 /etc/netplan/ 下现有的配置文件中添加地址和默认路由:
network:
version: 2
ethernets:
eno1:
addresses:
- "2001:db8:1234:5678::2/64"
routes:
- to: "::/0"
via: "fe80::1" # use the gateway shown in the client area
on-link: true$ netplan try # rolls back automatically if you lose accessDebian(使用 ifupdown)
iface eno1 inet6 static
address 2001:db8:1234:5678::2/64
gateway fe80::1$ ifup eno1 && ping -6 -c 3 2606:4700:4700::1111为虚拟机和容器分配地址
有了 /64 地址段,您可以为每台虚拟机分配独立的公网 IPv6 地址:将虚拟机桥接到宿主机的网络接口(Proxmox 通过 vmbr0 实现),再从地址段中分配地址。在服务器上请关闭隐私扩展(privacy extensions),以保持地址稳定。





