OpenWrt二级路由IPV6设置

主路由红米AX6000 :192.168.2.1
二级路由红米AX6S 刷的Openwrt:192.168.20.1

FinalShell 登陆二级路由,输入以下命令

1
vi /etc/config/dhcp

然后修改为以下设置:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
config dhcp 'lan'
option interface 'lan'
option start '50'
option limit '200'
option leasetime '12h'
option ra 'relay'
option dhcpv6 'relay'
option ndp 'relay'
option ra_management '1'

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

config dhcp 'wan6'
option interface 'wan'
option ra 'relay'
option dhcpv6 'relay'
option ndp 'relay'
option master '1'

修改后重启路由器,然后进入路由器接口再设置lan口IPV6路由通告模式“服务器模式”就可以正常IPV6了