光猫拨号后 ISP PD 一个 /60 的前缀给光猫,OpenWRT 连接光猫后 PD 获取到一个 /64 的前缀,但由于它作为路由器的上一级,获取到 /64 前缀是无法再向路由器 PD 的(没有子网可以划分了)。
所以如何不动光猫的情况下,使 OpenWRT 请求一个 /60 /61 /62 /63 的前缀?
我尝试过设置:
$ cat /etc/config/network
...
config interface 'WAN6'
option proto 'dhcpv6'
option ifname 'eth1'
option reqaddress 'try'
option reqprefix '61'
option ip6prefix '62'
但这个 reqprefix 不起作用,最终仍然是 /64 的前缀。
看 RFC 3633 这段描述:
If the requesting router includes an IA_PD Prefix option in the IA_PD option in its Solicit message, the delegating router MAY choose to use the information in that option to select the prefix(es) or prefix size to be delegated to the requesting router.
也就是说 OpenWRT 的配置可以被光猫采纳,也可以不采纳。
所以最终还是要登录超级管理员密码去修改光猫,或者将光猫改成桥接才可以?