RADVD Setup
I tried setting up a basic configuration of radvd as follows:
###### LAN Configuration Section ######
config 'interface'
option 'interface' 'lan' #The logical interface name this
#section applies to.
option 'AdvSendAdvert' '1' #Enable router advertisements and
#solicitations.
option 'AdvManagedFlag' '0' #Disables the additional stateful
#administered autoconfiguration
#protocol.
option 'AdvOtherConfigFlag' '0' #Disables the autoconfiguration of
#Additional non address information.
option 'ignore' '1' #Disables any advertisements on this
#interface. It must be set to 0 or
#removed in order to enable radvd for
#this interface.
option 'AdvLinkMTU' '1440' #Should fix large packet problem?
config 'prefix'
option 'interface' 'lan' #The logical interface name this
#section applies to.
option 'AdvOnLink' '1' #Specifies that the announced prefix can be
#used for on-link determination
option 'AdvAutonomous' '1' #Indicates that the announced prefix can be
#used for autonomous address configuration.
option 'AdvRouterAddr' '0' #Forced radvd to send the network prefix instead
#of sending the interface address.
option 'ignore' '0' #Disables this prefix declaration.
###### DMZ Configuration Section ######
config 'interface'
option 'interface' 'dmz' #The logical interface name this
#section applies to.
option 'AdvSendAdvert' '1' #Enable router advertisements and
#solicitations.
option 'AdvManagedFlag' '0' #Disables the additional stateful
#administered autoconfiguration
#protocol.
option 'AdvOtherConfigFlag' '0' #Disables the autoconfiguration of
#Additional non address information.
option 'ignore' '0' #Disables any advertisements on this
#interface. It must be set to 0 or
#removed in order to enable radvd for
#this interface.
option 'AdvLinkMTU' '1440' #Should fix large packet problem?
config 'prefix'
option 'interface' 'dmz' #The logical interface name this section
#applies to.
option 'AdvOnLink' '1' #Specifies that the announced prefix can
#be used for on-link determination.
option 'AdvAutonomous' '1' #Specifies that the announced prefix can
#be used for autonomous address configuration.
option 'AdvRouterAddr' '0' #Forced radvd to send the nework prefix
#instead of sending interface address.
option 'ignore' '0' #Disables prefix declaration.
To create the above /etc/config/radvd I followed the suggestion of the openwrt wiki page on radvd and only added one 'interface' section and one 'prefix' section for each interface.
I left out the prefixes as you suggested, and the wiki page does not suggest them either. I turned ignore on for the lan.
I turned ignore off for the dmz, since I had a laptop on it waiting to scan with Wireshark for router advertisements.
The advertisements of type 134 were picked up by Wireshark.
I then decided to change the laptop from having a static ipv6 ip, to obtaining it's ip from radvd.
It gets a global ip obtained from radvd:
ubuntu@ubuntu:~$ ip -6 addr show dev eth6
3: eth6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 2001:470:bc0e:2:222:b0ff:fecd:d25f/64 scope global dynamic
valid_lft 86304sec preferred_lft 14304sec
inet6 fe80::222:b0ff:fecd:d25f/64 scope link
valid_lft forever preferred_lft forever
Now I tested it, but I still can't ping6 anything further than my router with ipv6 just like the other machines on my network.
-----
I started looking at other options and here are some other things I've tried without success:
-----
Routes on the Client?
Below are my routes, and the default route doesn't appear to me like it's right...as the gateway/router's ip is 2001:470:bc0e:2::1
ubuntu@ubuntu:~$ ip -6 route show dev eth6
2001:470:bc0e:2::/64 proto kernel metric 256 expires 86285sec mtu 1440
fe80::/64 proto kernel metric 256 mtu 1440
default via fe80::224:a5ff:fed8:5395 proto kernel metric 1024 mtu 1440 hoplimit 255
ubuntu@ubuntu:~$
So I tried adding it with:
ubuntu@ubuntu:~$ sudo ip -6 route add default via 2001:470:bc0e:2::1
But that also didn't cause ping6 to work when pinging from my client laptop. Also I appear to have two default gateways now according to my laptop:
ubuntu@ubuntu:~$ ip -6 route show default
default via fe80::224:a5ff:fed8:5395 dev eth6 proto kernel metric 1024 mtu 1440 hoplimit 64
default via 2001:470:bc0e:2::1 dev eth6 metric 1024
-----
Router tunnel Prefix wrong?
Does this possibly have something to do with the way I've configured my tunnel? The tunnel is configured to be:
config 'interface' 'henet'
option 'proto' '6in4'
option 'tunnelid' '----'
option 'password' '---------'
option 'peeraddr' '216.218.224.42'
option 'username' '....'
option 'ip6addr' '2001:470:1f0e:ea7::2/64'
The ip6addr that my tunnel has is the Client IPv6 Address of 2001:470:1f0e:ea7::2/64 from my HE tunnelbroker.net IPv6 Tunnel Endpoint.
I allocated a /48 prefix, in my tunnel (2001:470:bc0e::/48), and it's in the list of Routed IPv6 Prefixes and that's what my two /64 subnets in the are based on.
But I'm a bit confused about why the (2001:470:bc0e::/48) prefix is not being routed.
----
Routes on the Router?
Could it be a problem with the ipv6 default routes on my router?
root@OpenWrt:~# ip -6 route show
2001:470:1f0e:ea7::/64 via :: dev 6in4-henet proto kernel metric 256 mtu 1280 advmss 1220 hoplimit 0
2001:470:bc0e:1::/64 dev br-lan proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
2001:470:bc0e:2::/64 dev eth0.2 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth0.1 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev br-lan proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth1 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 dev eth0.2 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0
fe80::/64 via :: dev 6in4-henet proto kernel metric 256 mtu 1280 advmss 1220 hoplimit 0
default dev 6in4-henet metric 1024 mtu 1280 advmss 1220 hoplimit 0
root@OpenWrt:~#