前言

今天为自己的阿里云香港主机增加IPV6功能

按照教程在HE在创建了tunnel

然后在系统中配置时报SIOCSIFADDR: Permission denied错误

解决

首先运行

sysctl -a |grep disable_ipv6

看看是哪些接口关闭了IPV6设置

如图所示
如图所示
然后编辑sysctl

vi /etc/sysctl.conf

在里面把

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

改为

net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0

注意,有几个接口就改几个

然后执行

sysctl -p

然后再执行增加隧道,OK了~

Last modification:June 30, 2020
如果觉得我的文章对你有用,请随意赞赏