目录

配置

vi /etc/config/dhcp
config dhcp 'lan'
     ...
    option dhcpv6 'server'
    option ra 'server'

dchpv6和ra(Router Advertisement)配置,保持不变,均为’server’


vi /etc/config/firewall
config defaults
    ...
    # Uncomment this line to disable ipv6 rules
    option disable_ipv6     1

关闭IPV6防火墙,否则本机的一些端口无法暴露到公网


vi /etc/config/network

关闭global prefix

#config globals 'globals'
#   option ula_prefix 'fdca:59d7:4008::/48'

配置pppoe(加自动ipv6)

config interface 'wan'
    option ifname 'eth5'
    option proto 'pppoe'
    option username '...'
    option password '...'
    option ipv6 'auto'

关闭wan6

#config interface 'wan6'
#       option ifname 'eth5'
#       option proto 'dhcpv6

因为上面lan的ipv6设置了auto, 所以ipv6 从 ppp-wan口 获取 ,而不是 eth5