Re为阿里云ECS(CentOS7)配置IPv6隧道地址
1. 编辑 /etc/sysctl.conf 文件,将其中三条禁用IPv6的设置更改为:
- net.ipv6.conf.all.disable_ipv6 = 0
- net.ipv6.conf.default.disable_ipv6 = 0
- net.ipv6.conf.lo.disable_ipv6 = 0
你好我在
/etc/sysctl.conf里面找不到这三行代码,怎么办
-------------------------
回 67楼dongshan8的帖子
CentOS 6.5的,找不到那三行代码,然后我加在后面[root@iZbp12vq0s1w6v3gn9v7dkZ etc]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
vm.swappiness = 0
net.ipv4.neigh.default.gc_stale_time = 120
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.default.arp_announce = 2
net.ipv4.conf.all.arp_announce = 2
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 1024
net.ipv4.tcp_synack_retries = 2
error: "net.ipv6.conf.all.disable_ipv6" is an unknown key
error: "net.ipv6.conf.default.disable_ipv6" is an unknown key
error: "net.ipv6.conf.lo.disable_ipv6" is an unknown key
net.ipv4.conf.lo.arp_announce = 2
fs.file-max = 65535
[root@iZbp12vq0s1w6v3gn9v7dkZ etc]# modprobe ipv6
-------------------------
回 70楼dongshan8的帖子
那太感谢了,现在就是还没有搞通,您能现在帮我试一试吗
-------------------------
回 72楼dongshan8的帖子
好的,感谢版主
-------------------------
回 72楼dongshan8的帖子
版主您好,试出结果了吗
-------------------------
回 75楼dongshan8的帖子
真的太感谢版主,版主大大的好人