V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ymgswx
V2EX  ›  宽带症候群

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

  •  1
     
  •   ymgswx · 182 天前 · 1065 次点击
    这是一个创建于 182 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    这是爱快的 IPV6 配置 Snipaste_2024-06-12_13-12-15.jpg 这是 LXC 的情况,获取到了 2 个 IPV6 地址,网路正常 Snipaste_2024-06-12_13-14-11.jpg KVM ,获取到了一个 ipv6 地址,网络不通 Snipaste_2024-06-12_13-14-59.jpg

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

    3 条回复    2024-06-12 16:29:45 +08:00
    wcloudme
        1
    wcloudme  
       182 天前
    proxmox 吗? 在 sysctl.conf 里要开启 ipv6 转发。
    echo "net.ipv6.conf.all.forwarding = 1" >> /etc/sysctl.conf && sysctl -p
    ymgswx
        2
    ymgswx  
    OP
       182 天前
    @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
        3
    wcloudme  
       182 天前
    可以留个联系方式,远程帮你看看。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4846 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 03:44 · PVG 11:44 · LAX 19:44 · JFK 22:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.