过了一段时间,桥接networking上的Ipv6停止工作(Ubuntu LXC)

我希望你能帮助我。 我在一个裸机服务器上运行了几个Linux Containers,这个裸机服务器提供了一个Global Ipv6地址以及一个由我的提供商提供的64位networking。

我已经使用主机提供的网桥在每个容器的configuration文件中configuration了IPv6设置。 当我重新启动整个系统时,我可以通过IPv6访问我的容器,反之亦然(例如ping6 google.de)。 经过一段时间(不知道多久)容器不能通过他们的ipv6地址访问,我不知道为什么(ping6 google.de也无法正常工作)。 有没有人有什么可能导致这种行为的线索?

这是我的configuration:

networking/接口(主)

iface br0 inet6 static pre-up modprobe ipv6 address 2a02:xxxx:1:1 :: 517:f79 gateway 2a02:xxxx:1:1 :: 1 netmask 64 bridge_stp on

sysctl.conf(主)

ipv6设置(无需自动configuration)

net.ipv6.conf.default.autoconf = 0 net.ipv6.conf.default.accept_ra = 0 net.ipv6.conf.default.accept_ra_defrtr = 0 net.ipv6.conf.default.accept_ra_rtr_pref = 0 net.ipv6.conf。 default.accept_ra_pinfo = 0 net.ipv6.conf.default.accept_source_route = 0 net.ipv6.conf.default.accept_redirects = 0 net.ipv6.conf.default.forwarding = 1 net.ipv6.conf.default.proxy_ndp = 1 net .ipv6.conf.all.autoconf = 0 net.ipv6.conf.all.accept_ra = 0 net.ipv6.conf.all.accept_ra_defrtr = 0 net.ipv6.conf.all.accept_ra_rtr_pref = 0 net.ipv6.conf.all .accept_ra_pinfo = 0 net.ipv6.conf.all.accept_source_route = 0 net.ipv6.conf.all.accept_redirects = 0 net.ipv6.conf.all.forwarding = 1 net.ipv6.conf.all.proxy_ndp = 1

networking/接口(容器)

环回networking接口

自动循环

auto eth0 iface eth0 inet手册iface eth0 inet6手册

LXC容器configuration

networkingconfiguration

  • lxc.network.type = veth
  • lxc.network.flags =向上
  • lxc.network.link = br0
  • lxc.network.hwaddr = 7e:7f:de:16:xx:xx
  • lxc.network.ipv4.gateway = 81.7.xx.1
  • lxc.network.ipv4 = 81.7.xx.xxx/24
  • lxc.network.ipv6 = 2a02:xxxx:a:77 :: 123/64

我会非常感谢任何意见。

最好,帕特里克

尝试禁用组播监听:

echo -n 0 > /sys/class/net/<brif>/bridge/multicast_snooping 

或者启用组播查询器(很早):

 echo -n 1 > /sys/class/net/<brif>/bridge/multicast_querier 

https://askubuntu.com/a/688854/11831