Hi guys,
I've just switched from OpenWRT Chaos Calmer to LEDE 17.01.2 (yay for frequent updates!!), and in the process IPv6 has imploded. With Chaos Calmer, I had stateful DHCPv6 working, and devices assigned addresses by the router from my /48 block. However, in LEDE 17, IPv6 only seems to work when it's set to stateless. I've tried hybrid, server and relay mode, and with anything but server mode and stateless I get no IPv6 addresses on the clients.
I have followed the configuration here to no avail. The router gets a v6 IP, but nothing more.
I suspected that something my ISP has done has broken v6, though they claim nothing's changed their end.
I was getting
A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
in the system log, though that seems to have vanished now. I noticed too that one of the compile-time options for dnsmasq is no-DHCPv6.
My /etc/config/network looks like this:
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 'fd64:xxx:xxx::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '10.0.0.1'
config interface 'wan'
option ifname 'eth0.2'
option _orig_ifname 'eth0.2'
option _orig_bridge 'false'
option proto 'pppoe'
option username 'xxx'
option password 'xxx'
option ipv6 'auto'
config interface 'wan6'
option proto 'dhcpv6'
option _orig_ifname 'eth0.2'
option _orig_bridge 'false'
option ifname '@wan'
option reqaddress 'try'
option reqprefix 'auto'
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 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 5t'
and /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.auto'
option localservice '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '1h'
option dhcpv6 'server'
option ra 'server'
option ra_management '2'
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'
br-lan looks like this:
br-lan Link encap:Ethernet HWaddr 64:70:02:40:8F:DA
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fd64:xxx:xxx::1/60 Scope:Global
inet6 addr: 2a02:xxx:xxx::1/60 Scope:Global
inet6 addr: fe80::6670:2ff:fe40:8fda/64 Scope:Link
and pppoe-wan:
pppoe-wan Link encap:Point-to-Point Protocol
inet addr:82.xx.xx.xx P-t-P:xxx Mask:255.255.255.255
inet6 addr: fe80::1/10 Scope:Link
inet6 addr: 2a02:xxxx:xxxx:7::1/64 Scope:Global
On a client Mac:
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether a4:5e:60:da:9c:93
inet6 fe80::188b:294e:9490:cea9%en0 prefixlen 64 secured scopeid 0x4
inet6 2a02:xxxx:xxxx::1081:612d:b52e:5f5a prefixlen 64 autoconf secured
inet6 2a02:xxxx:xxxx::d1b:c02a:6715:f854 prefixlen 64 autoconf temporary
inet6 fd64:xxxx:xxxx::140f:d90c:7384:5142 prefixlen 64 autoconf secured
inet6 fd64:xxxx:xxxx::24e8:b9be:5b6a:f932 prefixlen 64 autoconf temporary
inet 10.0.0.213 netmask 0xffffff00 broadcast 10.0.0.255
I'm experienced with v4, but v6 is fairly new to me. Any pointers would be much appreciated.
Many thanks!