找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 14075|回复: 14

openwrt如何设置ipv6

[复制链接]
发表于 2020-1-30 12:14 | 显示全部楼层 |阅读模式
k2p,刷的lean大的R9.12.3


openwrt诊断里面显示ping6: sendto: Permission denied

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2020-1-30 12:18 | 显示全部楼层
图片好像挂了...麻烦各位dalao啦XD
接口总览

lan口设置

ipv6test

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-1-30 16:12 | 显示全部楼层
我也是ipv6有问题,wan6显示没有运行,已经安装odhcpv6插件,没有ipv6连接

点评

我直接刷L大的包 没有dhcpv6接口 wan6有链接但是没法上纯ipv6的网 XD  详情 回复 发表于 2020-1-31 11:31
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-1-31 11:31 | 显示全部楼层
W264744926 发表于 2020-1-30 16:12
我也是ipv6有问题,wan6显示没有运行,已经安装odhcpv6插件,没有ipv6连接

我直接刷L大的包 没有dhcpv6接口 wan6有链接但是没法上纯ipv6的网 XD
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-1-31 17:21 来自手机 | 显示全部楼层
我的也是这个问题,通不过IPv6测试。以前刷潘多拉可以通过。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-1 13:56 | 显示全部楼层
啊忘记说了...家里的路由器是ppp拨号光猫不拨号...不知道有没有影响xxxx
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-2 09:10 | 显示全部楼层
在坛里找了半天没一个对的,我也是WAN6里没有IPV6  我换上R7000就能上IPV6  是24开头式的,哪个大神说说哪里设的不对
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-9 01:54 | 显示全部楼层
我的情况是ping6不通网关,有时显示denied、或者是unreachable,我的解决办法是在状态里的防火墙点击重启防火墙就可以了,或者直接关闭防火墙,在firewall配置文件中的defaults添加一行option disable_ipv6 '1'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-9 08:03 | 显示全部楼层
本帖最后由 akibou 于 2020-2-9 08:14 编辑

和楼主的情况不一样,不过我找到我的问题根源和解决办法了。
如果你同时安装了 6in4/6to4 之一与 mwan3 ,那么就会导致 IPv6 失效(原因是防火墙的阻断);
具体表现为 LAN 能获取公网 IPv6 地址,但 ping6 不通网关,提示 ping6: sendto: Permission denied 或者 ping6: sendto: Network is unreachable;
原因是 mwan3 的启动脚本里只检测 WAN6 中的 IPv6 ,如果使用如 6in4 隧道插件会导致 mwan3 没有识别到 IPv6 ,从而导致开机自动执行 mwan3.sh 时在 ip6tables 中的 mangle 表增加了部分规则阻断了 LAN 与网关的连通。

解决办法有几种,
一是如果有 mwan3 使用需求,就不要用 6in4/6to4 等隧道,再添加 WAN6 口拨号获取 IPv6 地址,这样就不会产生冲突;

二是修改 mwan3.sh 不让其修改 ip6tables,但是可能会影响到 mwan3 多拨的使用:
  1. root@OpenWrt:~# vi /lib/mwan3/mwan3.sh
  2. 把 IPT6="/usr/sbin/ip6tables -t mangle -w" 改为 IPT6="/bin/true"
  3. root@OpenWrt:~# reboot
复制代码
三是直接停用ipv6防火墙(不推荐):
  1. uci set firewall.@defaults["$(uci show firewall | grep 'firewall.@defaults' | cut -d'[' -f2 | cut -d']' -f1 | head -n 1)"].disable_ipv6='1'
  2. uci commit firewall
复制代码
以上参考了该 issue : https://github.com/openwrt/packages/issues/2429
======================================================================
For my 6in4 WAN6, i changed
/lib/mwan3/mwan3.sh

I found the line
IPT6="/usr/sbin/ip6tables -t mangle -w"
and changed to
#IPT6="/usr/sbin/ip6tables -t mangle -w"
IPT6="/bin/true"

For normal aiccu/6in4/6to4 wan6 connections, mwan3 should do nothing:
There aren't multiple wan6 connections to chose from but only one tunnel.
If mwan3 does its IPv4 job right the tunnel will re-appear on second or third IPv4-wan if the first/second goes down.

In case we really have multiple IP(v6) capable wan connections, simply switching the gateway is not enough, we would also need to modify all addresses when switching interfaces.
Announcing only an ULA prefix in LAN and replacing the ULA prefix with the interface's corresponding public prefix (and replacing our public prefixes with our ULA for incoming traffic ...) could be a solution, but I do not think mwan3 handles this yet, so just don't have mwan3 mess around with IPv6 at all for the moment.



我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-9 08:19 | 显示全部楼层
使用如下操作后,用ipv6 test可以显示ipv6地址,之前完全不能显示,但能否访问纯ipv6网站未知。

如果使用ipv6,需要做以下操作:
-- “网络” - “负载均衡” - “策略” - “备用成员”中选择了“不可达(拒绝)”
-- 将“不可达(拒绝)”更改为“默认(使用主路由表)”。

点评

就是这个就是这个就是这个  详情 回复 发表于 2021-3-27 21:29
怎么用命令行设置?大雕太坏了,网络里直接屏蔽《负载均衡》选项。我都没办法设置NND  详情 回复 发表于 2020-9-22 19:36
我草给跪了,设置了马上ok,谢谢大佬  发表于 2020-2-14 17:28
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-9-22 19:36 | 显示全部楼层
dondong 发表于 2020-2-9 08:19
使用如下操作后,用ipv6 test可以显示ipv6地址,之前完全不能显示,但能否访问纯ipv6网站未知。

如果使 ...

怎么用命令行设置?大雕太坏了,网络里直接屏蔽《负载均衡》选项。我都没办法设置NND

点评

也不会啊。。。  详情 回复 发表于 2020-9-23 16:18
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-9-23 16:18 | 显示全部楼层
_星之海洋○ 发表于 2020-9-22 19:36
怎么用命令行设置?大雕太坏了,网络里直接屏蔽《负载均衡》选项。我都没办法设置NND

也不会啊。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-3-27 21:29 | 显示全部楼层
dondong 发表于 2020-2-9 08:19
使用如下操作后,用ipv6 test可以显示ipv6地址,之前完全不能显示,但能否访问纯ipv6网站未知。

如果使 ...

就是这个就是这个,设置完直接ok
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 18:42

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表