补充 Oracle Cloud 自动获取 IPv6 的方法 #81
IRN-Kawakaze
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
原因:
Oracle Cloud 在安装 Debian 之后会默认启用内核的IPv6转发功能(在其他服务器上未遇到过该现象),即:
net.ipv6.conf.default.forwarding = 1net.ipv6.conf.all.forwarding = 1并且 Oracle Cloud 的 IPv6 默认网关是通过RA获取。
根据Linux 内核文档,在启用IPv6转发时,accept_ra需要为2才会接受RA。
解决方法(二选一):
1、修改
/etc/network/interfaces,启用IPv6的同时自动将网卡的accept_ra改为2:(直接在
/etc/sysctl.conf改net.ipv6.conf.网卡名称.accept_ra的值可能会在重启networking时被覆盖,所以要在/etc/network/interfaces改)2、禁用IPv6转发:
Beta Was this translation helpful? Give feedback.
All reactions