Difference between revisions of "OpenWRT IPv6: Konfigurasi OLSR 6and4"

From OnnoWiki
Jump to navigation Jump to search
(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...)
 
Line 2: Line 2:
  
  
 +
Agar OLSR dapat beroperasi sekaligus untuk IPv4 & IPv6 kita harus menggunakan IpVersion '6and4'.
 +
Kita dapat mengedit file
  
I'm testing the olsr 6and4 configuration.
+
/etc/config/olsrd
  
I'm using OpenWRT 8.09 branch with latest packages as 19/03/09
+
Misalnya, sebagai berikut
 
 
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'
 
  
 +
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'
  
  
 +
cocokan dengan kondisi jaringan anda :)
  
 
==Referensi==
 
==Referensi==
  
 
* https://dev.openwrt.org/ticket/4803
 
* https://dev.openwrt.org/ticket/4803

Revision as of 13:07, 7 September 2014

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


Agar OLSR dapat beroperasi sekaligus untuk IPv4 & IPv6 kita harus menggunakan IpVersion '6and4'. Kita dapat mengedit file

/etc/config/olsrd

Misalnya, sebagai berikut

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'


cocokan dengan kondisi jaringan anda :)

Referensi