openwrt配置ipv6添加的内容
路径/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’
option localuse ‘1’
option noresolv ‘0’
option port ‘53’
config dhcp ‘lan’
option interface ‘lan’
option start ‘100’
option limit ‘150’
option leasetime ‘12h’
option dhcpv4 ‘server’
option ra_slaac ‘1’
list ra_flags ‘managed-config’
list ra_flags ‘other-config’
option ra ‘server’
option dhcpv6 ‘server’
####################添加内容add#########################
option ra_management ‘1’
option ndp ‘relay’
option ra ‘relay’
option dhcpv6 ‘relay’
config dhcp ‘rndis6’
option interface ‘rndiswan’
option ra ‘relay’
option dhcpv6 ‘relay’
option ndp ‘relay’
option master ‘1’
####################end################################
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 srvhost
option srv ‘_vlmcs._tcp’
option target ‘FusionWrt’
option port ‘1688’
option class ‘0’
option weight ‘100’