-
Notifications
You must be signed in to change notification settings - Fork 44
开启双栈支持
Huanyu He edited this page Jul 5, 2022
·
7 revisions
v0.6.0 版本之前,hybridnet 默认只支持 IPv4 容器网络环境的创建,如果要支持 IPv6 或者双栈,需要开启 hybridnet 双栈 feature
helm upgrade hybridnet hybridnet/hybridnet -n kube-system --set dualStack=true
对于 >=
v0.6.0版本的 hybridnet,双栈作为内置的功能默认开启,不再提供 开启/关闭 的参数
因为 Policy Routing 以及 vxlan 虚拟设备在低版本 Linux 内核存在 ipv6 的兼容性问题,使用 ipv6 功能时宿主机的内核版本需要 >= 4.18,相关的内核修改如下:
- linux 3.12,vxlan: add ipv6 support,https://kernelnewbies.org/Linux_3.12
- linux 3.14,add IFA_F_NOPREFIXROUTE flag to suppress creation of IP6 routes,https://kernelnewbies.org/Linux_3.14
- linux 4.4,support both IPv4 and IPv6 sockets in a single vxlan device,https://kernelnewbies.org/Linux_4.4
- linux 4.16,Align nexthop behaviour with IPv4,Add support for onlink flag (RTNH_F_ONLINK) on routes,https://kernelnewbies.org/Linux_4.16
- linux 4.18,IPv6: send netlink notifications for manually configured addresses,https://kernelnewbies.org/Linux_4.18