OpenWRT IPv6: Konfigurasi OLSR 6and4

From OnnoWiki
Revision as of 20:59, 6 September 2014 by Onnowpurbo (talk | contribs) (New page: Sumber: https://dev.openwrt.org/ticket/4803 I'm testing the olsr 6and4 configuration. I'm using OpenWRT 8.09 branch with latest packages as 19/03/09 Looks like there is a bug when the...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sumber: https://dev.openwrt.org/ticket/4803


I'm testing the olsr 6and4 configuration.

I'm using OpenWRT 8.09 branch with latest packages as 19/03/09

Looks like there is a bug when the configuration has HNA entries. The problem is that both the generated /var/etc/olsrd.conf and /var/etc/olsrd.conf.ipv4 contain hna4 and hna6 entries.

If you have a hna4 entry this will result in the IPv6 olsr daemon not working, with the following error printed:

IPv4 addresses can only be used if "IpVersion" == 4 No interfaces configured! Bad configuration! No interfaces detected! This might be intentional, but it also might mean that your configuration is fubar. I will continue after 5 seconds...

If you have a hna6 entry this will result in the IPv4 olsr daemon not working.

IPv6 addresses can only be used if "IpVersion" == 6 No interfaces configured! Bad configuration! No interfaces detected! This might be intentional, but it also might mean that your configuration is fubar. I will continue after 5 seconds...

If you have both hna4 and hna6 entries this will result in both IPv4 and IPv6 olsr not working.

The not working olsr will keep running but with no interface configured.

To solve the problem you should have only hna4 entries in /var/etc/olsrd.conf.ipv4 and only hna6 entries in /var/etc/olsrd.conf

Here is my uci configuration. Let me know if you can reproduce the bug.

config olsrd

      # uncomment the following line to use a custom config file instead:
      #option config_file '/etc/olsrd.conf'
      option IpVersion '6and4'

config Interface

      list interface 'ninuxif'

config 'Hna4'

      option 'netaddr' '192.168.1.0'
      option 'netmask' '255.255.255.0'

config 'Hna6'

      option 'netaddr' '2002::'
      option 'prefix' '64'



Referensi