找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2295|回复: 12

桥接虚拟wan v6到lan失败

[复制链接]
发表于 2018-11-17 14:06 | 显示全部楼层 |阅读模式
本帖最后由 237176253 于 2018-11-17 14:07 编辑

创建了虚拟wan口,设置dhcp v6协议。用brctl addif br-lan macvlan1桥接,已经关闭br-lan里的dhcp v6,仍无法获取到全球v6地址.不过网关的fe80地址正常获取了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2018-11-17 14:28 | 显示全部楼层
有人可以指点下吗。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-11-17 16:55 | 显示全部楼层
@LGA1150 求大佬指教
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-11-17 18:46 来自手机 | 显示全部楼层
你是想做什么
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-11-17 19:12 | 显示全部楼层

想在openwrt下做ipv6穿透,让lan口直接获得公网v6 ip,同时不影响路由器wan的v6 ip获取
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-11-17 19:17 来自手机 | 显示全部楼层
237176253 发表于 2018-11-17 19:12
想在openwrt下做ipv6穿透,让lan口直接获得公网v6 ip,同时不影响路由器wan的v6 ip获取

odhcpd 中继不就行了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-11-17 19:22 | 显示全部楼层
LGA1150 发表于 2018-11-17 19:17
odhcpd 中继不就行了

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

使用道具 举报

发表于 2018-11-17 21:14 来自手机 | 显示全部楼层
237176253 发表于 2018-11-17 19:22
dhcp128.。。。

odhcpd 不是也可以 relay dhcpv6?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-11-17 22:03 | 显示全部楼层
LGA1150 发表于 2018-11-17 21:14
odhcpd 不是也可以 relay dhcpv6?

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

使用道具 举报

发表于 2018-11-17 22:08 | 显示全部楼层
我是这样解决基于LAN的虚拟WAN6接口
ip link add link br-lan eth2 type macvlan
ifconfig eth2 hw ether 00:11:22:33:44:55
ifconfig eth2 up
然后再根据需要修改/etc/config/dhcp。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-11-17 22:14 来自手机 | 显示全部楼层
237176253 发表于 2018-11-17 22:03
128实测无效

这种情况建议 NAT6,毕竟 Android 不支持 DHCPv6
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-11-17 22:18 | 显示全部楼层
cdhua2010 发表于 2018-11-17 22:08
我是这样解决基于LAN的虚拟WAN6接口
ip link add link br-lan eth2 type macvlan
ifconfig eth2 hw ether ...

00:11:22:33:44:55是macvlan的mac地址吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-11-17 22:28 | 显示全部楼层
cdhua2010 发表于 2018-11-17 22:08
我是这样解决基于LAN的虚拟WAN6接口
ip link add link br-lan eth2 type macvlan
ifconfig eth2 hw ether ...

我现在将dhcp下的v6全禁用了 这是我的dhcp。我按照你这样操作后,lan下的设备就可以直接获取v6地址了嘛?现在有点不方便试。。。
config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'

config dhcp 'wan'
        option interface 'wan'
        option ignore '1'

config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'
        option loglevel '4'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-19 09:56

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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