Openwrt barrier breaker (14.07) has issue with Unifi IPV6, it's not able to get ipv6 prefix delegation, I have tried it countlessly and I flashed back to attitude adjustment (12.09).
To enable IPV6 on attitude adjustment (12.09), you need to install following packages
1. ip6tables
2. kmod-ip6tables
3. radvd
4. wide-dhcpv6-client
use the following command to install
CODE
opkg update && opkg install ip6tables kmod-ip6tables radvd wide-dhcpv6-client && fw restart
Edit the /etc/config/network
CODE
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.1.1'
option gateway '192.168.1.1'
option stp '1'
option mtu '1452'
config interface 'wan'
option ifname 'eth1'
option _orig_ifname 'eth1'
option _orig_bridge 'false'
option proto 'pppoe'
option username '*********'
option password '********'
option mtu '1452'
option ipv6 '1'
option peerdns '0'
option dns '8.8.8.8 8.8.4.4'
Edit the /etc/config/radvd
CODE
onfig interface
option interface 'lan'
option AdvSendAdvert '1'
list client ''
option ignore '0'
option IgnoreIfMissing '1'
option AdvSourceLLAddress '1'
option AdvLinkMTU '1452'
option AdvDefaultPreference 'medium'
config prefix
option interface 'lan'
list prefix ''
option AdvOnLink '1'
option AdvAutonomous '1'
option ignore '0'
config route
option interface 'lan'
list prefix ''
option ignore '0'
config rdnss
option interface 'lan'
list addr '2001:4860:4860::8888'
list addr '2001:4860:4860::8844'
option ignore '0'
config dnssl
option interface 'lan'
list suffix ''
option ignore '1'
Edit the /etc/config/dhcp6c
CODE
config 'dhcp6c' 'basic'
option 'enabled' '1' # 1 = enabled; 0 = disabled
option 'interface' 'wan' # This is the interface the DHCPv6 client will run on
option 'dns' 'dnsmasq' # Which DNS server you run (only dnsmasq currently supported)
option 'debug' '0' # 1 = enable debugging; 0 = disable debugging
# Send options (1 = send; 0 = do not send)
option 'pd' '1' # Prefix Delegation
option 'na' '0' # Non-Temporary Address
option 'rapid_commit' '1' # Rapid Commit
# Request options (1 = request; 0 = do not request)
option 'domain_name_servers' '1'
option 'domain_name' '0'
option 'ntp_servers' '0'
option 'sip_server_address' '0'
option 'sip_server_domain_name' '0'
option 'nis_server_address' '0'
option 'nis_domain_name' '0'
option 'nisp_server_address' '0'
option 'nisp_domain_name' '0'
option 'bcmcs_server_address' '0'
option 'bcmcs_server_domain_name' '0'
# Override the used DUID, by default it is derived from the interface MAC
# The given value must be uppercase and globally unique!
#option 'duid' '00:03:00:06:D8:5D:4C:A5:03:F2'
# Script to run when a reply is received
option 'script' '/usr/bin/dhcp6c-state'
# Define one or more interfaces on which prefixes should be assigned
config 'interface' 'loopback'
option 'enabled' '0' # 1 = enabled; 0 = disabled
option 'sla_id' '0' # Site level aggregator identifier specified in decimal (subnet)
option 'sla_len' '0' # Site level aggregator length (64 - size of prefix being delegated)
# e.g. /60 from ISP -> 64 - 60 = 4
config 'interface' 'lan'
option 'enabled' '1'
option 'sla_id' '0'
option 'sla_len' '0'
and last but not least, reboot the router, you should be able to get ipv6 for your LAN
I don't think is a good idea to flash back to Attitude Adjustment since WDR3600 and WDR4300 included a WiFi patch which is critical to the wireless user. [without it, the WiFi Tx and Rx will not be sensitive] At least we understood that odhcp Barrier Breaker have some issue with TM users. but not with wide-dhcpv6-client. We should sound this problem to the OpenWRT forums and let the developer to review and solve it.