The thing is:
If I use dhcp ia-na the default gateway is not advertised. I think that protocol just is able to advertise address and dns.
set system services dhcp-local-server dhcpv6 group group-pppoe overrides multi-address-embedded-option-response
set system services dhcp-local-server dhcpv6 group group-pppoe interface pp0.0
So I enabled router advertisement.
set dynamic-profiles PPPOE-PROFILE protocols router-advertisement interface "$junos-interface-name" managed-configuration
set dynamic-profiles PPPOE-PROFILE protocols router-advertisement interface "$junos-interface-name" other-stateful-configuration
Now I get a default gateway but after I get a dhcp address from ia-na the default gateway continues but I can't ping any ipv6 anymore neither the junos lo0 inet6.
set access address-assignment pool v6-ia-na-pool family inet6 prefix 2001:db8:1000:0000::/64
set access address-assignment pool v6-ia-na-pool family inet6 range v6-range-0 low 2001:db8:1000::2/128
set access address-assignment pool v6-ia-na-pool family inet6 range v6-range-0 high 2001:db8:1000::ffff:ffff/128
set interfaces lo0 unit 0 family inet6 address 2001:db8:1000::1/128 primary
set interfaces lo0 unit 0 family inet6 address 2001:db8:1000::1/128 preferred
show route 2001:db8:1000::17/128
2001:db8:1000::17/128
*[Access-internal/12] 00:01:56
Private unicast
I capture packets and CPE receives juniper ping echo request but can't send back the echo reply.