This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Thread border router - IPV6 DHCPv6 problem

Hi there,

I'm using ASUS RT-AC1900P router with IPv6 DHCPv6 on. RPi gest its own IP with prefix specified in router but interface wpan0 (wpantund) not. I have configured the Router properly, the static IPv6 with /62 prefix. My RPI seems to get the prefix successfully, But my Thread nodes don't have an IPv6 address created using /62 prefix. My border router works on v0.11.0-1.alpha firmware. How can I solve this problem in this case?

eth0      Link encap:Ethernet  HWaddr B8:27:EB:F7:52:E6  
          inet addr:192.168.2.204  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: 2001:250:4000:1230::1bec/128 Scope:Global
          inet6 addr: fdb3:867c:4acf::1/64 Scope:Global
          inet6 addr: fe80::ba27:ebff:fef7:52e6/64 Scope:Link
wpan0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet6 addr: fdff:cafe:cafe:cafe:38b0:d362:515:aa91/64 Scope:Global
          inet6 addr: fe80::38b0:d362:515:aa91/64 Scope:Link
          inet6 addr: fdde:ad00:beef::98e0:3f4c:428b:abc4/64 Scope:Global

> ipaddr
fdde:ad00:beef:0:0:ff:fe00:c000 
fdff:cafe:cafe:cafe:df20:60c:6f0a:de9c 
fdde:ad00:beef:0:8625:f5f0:b3df:6f10
fe80:0:0:0:d4ed:2599:a745:c938
Done

Thanks. xiangcai

Parents
  • Hi,

    From your ifconfig output, it is clear that your border router have not been assigned a /62 or lower prefix address for eth0:

    inet6 addr: 2001:250:4000:1230::1bec /128 Scope:Global

    Are you running stock firmware on your ASUS router? I see you have seen my comment in this thread. As I said, on many routers DHCPv6 does not work correctly and they are only providing /6 4 prefix or higher addresses. You should try OpenWRT on your router (if supported), or try with a router that correctly assigns IPv6 addresses with /62 or lower prefix.

    Best regards,

    Jørgen

  • Hi,

    Does it work if I assign a specific static ipv6 address with prefix length to that interface? Such as modify the file `/etc/config/network` like the following shows:

    config interface 'wan6'
            option ifname 'eth0'
            option _orig_ifname 'eth0'
            option _orig_bridge 'false'
            option proto 'static'
            option ip6addr '2001:1234:4567::2/48'
            option ip6assign '62'

    root@OpenWrt:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr xxxx
              inet6 addr: 2001:1234:4567::2/48 Scope:Global

    I had tried it, but Thread Nodes didn't have an IPv6 address created using /62 prefix. Why?

    Thanks~

Reply
  • Hi,

    Does it work if I assign a specific static ipv6 address with prefix length to that interface? Such as modify the file `/etc/config/network` like the following shows:

    config interface 'wan6'
            option ifname 'eth0'
            option _orig_ifname 'eth0'
            option _orig_bridge 'false'
            option proto 'static'
            option ip6addr '2001:1234:4567::2/48'
            option ip6assign '62'

    root@OpenWrt:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr xxxx
              inet6 addr: 2001:1234:4567::2/48 Scope:Global

    I had tried it, but Thread Nodes didn't have an IPv6 address created using /62 prefix. Why?

    Thanks~

Children
Related