移动宽带使用 proxmox 分配内网虚拟机的 ipv6 问题

195 天前
 ymgswx

使用的爱快作为主路由,然后通过分配一个静态 ipv4 地址给虚拟机,虚拟机就能自动获取到 IPV6 地址,LXC 容器完全正常,但是 KVM 虚拟机的 IPV6 怎么都无法 ping 通外网,也无法 ping 通网关,看到 ip -6 neigh 里面是 probe 或者 state 或者 failed 状态。

折腾了两天无解呀,中途换了交换机和网卡等设备,感觉不是硬件的原因。

这是爱快的 IPV6 配置 这是 LXC 的情况,获取到了 2 个 IPV6 地址,网路正常 KVM ,获取到了一个 ipv6 地址,网络不通

有大神能解答下吗,或者除了爱快还有木有别的方案呀。

1082 次点击
所在节点    宽带症候群
3 条回复
wcloudme
195 天前
proxmox 吗? 在 sysctl.conf 里要开启 ipv6 转发。
echo "net.ipv6.conf.all.forwarding = 1" >> /etc/sysctl.conf && sysctl -p
ymgswx
195 天前
@wcloudme 都开了的,就很神奇,这个 KVM 机器 ping 外界时 tcpdump 没有反应,但是当从外界 ping 进来居然有反应,但是 ping 网关和其它同个内网的 ip 都是不通的。

tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
04:09:58.581732 IP6 fe80::94f1:4dff:fed9:ebe6 > ip6-allnodes: ICMP6, router advertisement, length 72
04:09:58.593846 IP6 fe80::216:3eff:fe2c:10b4 > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48
04:09:58.593846 IP6 fe80::216:3eff:fe89:f9c7 > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48
04:09:58.721851 IP6 fe80::216:3eff:fe2c:10b4 > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48
04:09:59.293867 IP6 fe80::216:3eff:fe89:f9c7 > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48
04:10:45.696347 IP6 fe80::94f1:4dff:fed9:ebe6 > ff02::1:fff7:d55: ICMP6, neighbor solicitation, who has 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:45.696373 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor advertisement, tgt is 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:46.699606 IP6 fe80::94f1:4dff:fed9:ebe6 > ff02::1:fff7:d55: ICMP6, neighbor solicitation, who has 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:46.699629 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor advertisement, tgt is 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:47.723576 IP6 fe80::94f1:4dff:fed9:ebe6 > ff02::1:fff7:d55: ICMP6, neighbor solicitation, who has 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:47.723599 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor advertisement, tgt is 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:48.747932 IP6 fe80::94f1:4dff:fed9:ebe6 > ff02::1:fff7:d55: ICMP6, neighbor solicitation, who has 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:48.747957 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor advertisement, tgt is 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:49.771669 IP6 fe80::94f1:4dff:fed9:ebe6 > ff02::1:fff7:d55: ICMP6, neighbor solicitation, who has 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:49.771692 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor advertisement, tgt is 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:50.795669 IP6 fe80::94f1:4dff:fed9:ebe6 > ff02::1:fff7:d55: ICMP6, neighbor solicitation, who has 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:50.795693 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor advertisement, tgt is 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:50.906757 IP6 fe80::98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor solicitation, who has fe80::94f1:4dff:fed9:ebe6, length 32
04:10:50.930790 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55.48356 > dns.google.domain: 65104+ PTR? 5.5.d.0.7.f.e.f.f.f.5.1.8.f.8.9.1.f.1.7.d.8.a.1.0.0.a.8.9.0.4.2.ip6.arpa. (90)
04:10:51.930755 IP6 fe80::98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor solicitation, who has fe80::94f1:4dff:fed9:ebe6, length 32
04:10:56.459972 IP6 fe80::94f1:4dff:fed9:ebe6 > ff02::1:fff7:d55: ICMP6, neighbor solicitation, who has 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:56.459994 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor advertisement, tgt is 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:57.483889 IP6 fe80::94f1:4dff:fed9:ebe6 > ff02::1:fff7:d55: ICMP6, neighbor solicitation, who has 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:57.483913 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor advertisement, tgt is 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:58.507849 IP6 fe80::94f1:4dff:fed9:ebe6 > ff02::1:fff7:d55: ICMP6, neighbor solicitation, who has 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
04:10:58.507872 IP6 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55 > fe80::94f1:4dff:fed9:ebe6: ICMP6, neighbor advertisement, tgt is 2406:8a55:1a8d:71f1:98f8:15ff:fef7:d55, length 32
^C
26 packets captured
33 packets received by filter
7 packets dropped by kernel
wcloudme
195 天前
可以留个联系方式,远程帮你看看。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1048874

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX