|
本帖最后由 wenpo0755 于 2018-10-18 01:33 编辑
Padavan条件下可以获取到IPV6并且下发下级设备正常使用,换了openwrt不知道哪里设置出问题大佬们抽空看看,设备情况: YouHua WR1200JS,大雕 OpenWrt 18061 fix by Hzj app R8.1.7 By Lean / LuCI openwrt-18.06 branch (git-18.138.53009-80cb4fe)
手动软件包装了 odhcpd、odhcp6
目前情况,状态=》概况 下面IPV6 WAN状态可以看到ISP下发给我的公网IPV6 (两个、 /64 /60)
路由下级设备无法获取到公网V6,同样设备同样设置Padavan是可以的
==============================================
/etc/config/network 配置如下:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix '2409:8a55:7610:3130::/60'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.10.1'
option ip6hint '2409:8a55:7610:3130::/60'
option ip6assign '60'
config device 'lan_dev'
option name 'eth0.1'
option macaddr 'XXXXXXXXXX'
config interface 'wan'
option ifname 'eth0.2'
option proto 'pppoe'
option username 'XXXXXXXXX@139.gd'
option password 'XXXXXXXX'
option delegate '0'
option ipv6 'auto'
config device 'wan_dev'
option name 'eth0.2'
option macaddr 'd4:5f:25:eb:30:cd'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
option reqaddress 'force'
option reqprefix '64'
option delegate '0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 6t'
config interface 'cjdns'
option ifname 'tuncjdns'
option proto 'none'
=============================================================
/etc/config/dhcp/ 配置如下:
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option dnsforwardmax '500'
option noresolv '0'
option cachesize '1024'
list server '127.0.0.1#5333'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option ra 'relay'
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 'wan'
option ra 'relay'
option dhcpv6 'relay'
option ndp 'relay'
option master '1'
====================================
求教
|
|