|
本帖最后由 myjinn 于 2021-11-24 19:49 编辑
Openwrt 应该没有 passthrough 功能,但是有中继功能.
在Openwrt 21.02 版本上可以通过修改参数达到你说的目的
设定方法:
修改内容:
接口->WAN6->DHCP服务器
1. 忽略此接口 -> 取消打勾.
2. 指定的主接口 -> 打勾
3. RA服务;DHCPV6服务;ndp代理 -> 中继模式.
接口 ->LAN -> DHCP
1. IPV6 设置 RA服务;DHCPV6服务;ndp代理 ->中继模式.
--设定完毕--
也可以SSH root@OpenWrt:~# vi /etc/config/dhcp
修改成如下:
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option ra 'relay'
list ra_flags 'none'
option dhcpv6 'relay'
option ndp 'relay'
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'
config dhcp 'wan6'
option interface 'wan6'
option master '1'
option ra 'relay'
list ra_flags 'none'
option dhcpv6 'relay'
option ndp 'relay'
----完毕----
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|