Difference between revisions of "OLSR - di Ubuntu IPv6"

From OnnoWiki
Jump to navigation Jump to search
(New page: Agar dapat jalan sekaligus IPv4 dan IPv6, lakukan: ifconfig wlan0 ip -6 addr add 2001:123:123::123/64 dev wlan0 ==/etc/olsrd4.conf== IpVersion 4 Hna4 { } LinkQualityFishEye ...)
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Agar dapat jalan sekaligus IPv4 dan IPv6, lakukan:
 
Agar dapat jalan sekaligus IPv4 dan IPv6, lakukan:
  
  ifconfig wlan0  
+
 
 +
iwconfig wlan0 mode ad-hoc
 +
iwconfig wlan0 essid MESH
 +
iwconfig wlan0 ap 02:ca:ff:ee:ba:be
 +
iwconfig wlan0 channel 1
 +
ifconfig wlan0 10.123.123.123
 +
  ifconfig wlan0 netmask 255.0.0.0
 
  ip -6 addr add 2001:123:123::123/64 dev wlan0
 
  ip -6 addr add 2001:123:123::123/64 dev wlan0
 +
 +
atau edit /etc/network/interfaces
 +
 +
auto wlan0
 +
allow-hot plug wlan0
 +
iface wlan0 inet static
 +
address 10.123.123.123
 +
broadcast 10.255.255.255
 +
netmask 255.0.0.0
 +
wireless-mode ad-hoc
 +
wireless-channel 1
 +
wireless-essid MESH
 +
wireless-bssid 02:ca:ff:ee:ba:be
 +
 +
  
 
==/etc/olsrd4.conf==
 
==/etc/olsrd4.conf==
Line 18: Line 39:
 
  }
 
  }
 
   
 
   
  InterfaceDefaults {
+
  InterfaceDefaults
 +
{
 
  }
 
  }
 
   
 
   
Line 27: Line 49:
 
==/etc/olsrd6.conf==
 
==/etc/olsrd6.conf==
  
AllowNoInt yes
+
 
 
  IpVersion 6
 
  IpVersion 6
FIBMetric "flat"
 
LinkQualityLevel 2
 
LinkQualityAlgorithm "etx_ff"
 
OlsrPort 698
 
Willingness 3
 
NatThreshold 1.0
 
SmartGateway yes
 
 
Hna4
 
{
 
}
 
 
Hna6
 
{
 
}
 
 
LoadPlugin "olsrd_arprefresh.so.0.1"
 
{
 
}
 
 
LoadPlugin "olsrd_dyn_gw.so.0.5"
 
{
 
}
 
 
LoadPlugin "olsrd_txtinfo.so.0.1"
 
{
 
}
 
 
   
 
   
 
  InterfaceDefaults
 
  InterfaceDefaults
 
  {
 
  {
Mode "mesh"
 
 
  }
 
  }
 
   
 
   
 
  Interface "wlan0"
 
  Interface "wlan0"
{
+
  {
Mode "mesh"
 
}
 
 
Interface "br-lan"
 
  {  
 
 
  Mode "mesh"
 
  Mode "mesh"
 
  }
 
  }
Line 74: Line 63:
 
==Jalankan==
 
==Jalankan==
  
 +
Harus jalankan terlebih dulu olsrd IPV6. Baru setelah beberapa lama jalankan olsrd IPv4. Lakukan pada window / terminal yang berbeda
 +
 +
olsrd -f /etc/olsrd6.conf -nofork
 +
 +
Pada terminal yang berbeda, lakukan
  
  olsrd -f /etc/olsrd4.conf -nofork &
+
  olsrd -f /etc/olsrd4.conf -nofork
olsrd -f /etc/olsrd6.conf -nofork &
 

Latest revision as of 05:50, 31 October 2014

Agar dapat jalan sekaligus IPv4 dan IPv6, lakukan:


iwconfig wlan0 mode ad-hoc
iwconfig wlan0 essid MESH
iwconfig wlan0 ap 02:ca:ff:ee:ba:be
iwconfig wlan0 channel 1
ifconfig wlan0 10.123.123.123
ifconfig wlan0 netmask 255.0.0.0 
ip -6 addr add 2001:123:123::123/64 dev wlan0

atau edit /etc/network/interfaces

auto wlan0
allow-hot plug wlan0
iface wlan0 inet static
address 10.123.123.123
broadcast 10.255.255.255
netmask 255.0.0.0
wireless-mode ad-hoc
wireless-channel 1
wireless-essid MESH
wireless-bssid 02:ca:ff:ee:ba:be


/etc/olsrd4.conf

IpVersion 4

Hna4
{
}

LinkQualityFishEye  0

LoadPlugin "olsrd_txtinfo.so.0.1"
{
}

InterfaceDefaults
{
}

Interface "wlan0"
{
}

/etc/olsrd6.conf

IpVersion 6

InterfaceDefaults
{
}

Interface "wlan0"
{
	Mode "mesh"
}

Jalankan

Harus jalankan terlebih dulu olsrd IPV6. Baru setelah beberapa lama jalankan olsrd IPv4. Lakukan pada window / terminal yang berbeda

olsrd -f /etc/olsrd6.conf -nofork

Pada terminal yang berbeda, lakukan

olsrd -f /etc/olsrd4.conf -nofork