Difference between revisions of "OpenWRT IPv6: Konfigurasi Sederhana"

From OnnoWiki
Jump to navigation Jump to search
(New page: Konfigurasi sederhana * Masuk ke Administration * Network > IPv6 ULA-Prefix > isi dengan alokasi IPv6 yang kita miliki. * Network > LAN > Edit > IPv6 assignment length > isi dengan 64 jik...)
 
Line 13: Line 13:
 
  Announced DNS servers
 
  Announced DNS servers
 
  Announced DNS domains
 
  Announced DNS domains
 +
 +
 +
==Konfigurasi CLI==
 +
 +
===/etc/config/olsrd===
 +
 +
config olsrd
 +
option IpVersion '4'
 +
option FIBMetric 'flat'
 +
option LinkQualityLevel '2'
 +
option LinkQualityAlgorithm 'etx_ff'
 +
option OlsrPort '698'
 +
option Willingness '3'
 +
option NatThreshold '1.0'
 +
 +
config LoadPlugin
 +
option library 'olsrd_arprefresh.so.0.1'
 +
 +
config LoadPlugin
 +
option library 'olsrd_dyn_gw.so.0.5'
 +
 +
config LoadPlugin
 +
option library 'olsrd_httpinfo.so.0.1'
 +
option port '1978'
 +
list Net '0.0.0.0 0.0.0.0'
 +
 +
config LoadPlugin
 +
option library 'olsrd_nameservice.so.0.3'
 +
 +
config LoadPlugin
 +
option library 'olsrd_txtinfo.so.0.1'
 +
option accept '0.0.0.0'
 +
 +
config Interface
 +
option ignore '0'
 +
option interface 'MESH'
 +
option Mode 'mesh'
 +
 
 +
config InterfaceDefaults
 +
option Mode 'mesh'
 +
 +
config Hna4
 +
option netaddr '192.168.1.0'
 +
option netmask '255.255.255.0'
 +
 +
 +
===/etc/config/olsrd6===
 +
 +
config olsrd
 +
 +
config LoadPlugin
 +
  option library 'olsrd_txtinfo.so.0.1'
 +
option accept '::'
 +
option port '2007'
 +
 +
config Interface
 +
option ignore '0'
 +
option interface 'MESH'
 +
option Mode 'mesh'
 +
 +
config InterfaceDefaults
 +
 +
config Hna6
 +
option netaddr '2001:123:123::'
 +
option prefix '64'
 +
 +
 +
===/etc/config/network===
 +
 +
config interface 'loopback'
 +
option ifname 'lo'
 +
option proto 'static'
 +
option ipaddr '127.0.0.1'
 +
option netmask '255.0.0.0'
 +
 +
config globals 'globals'
 +
option ula_prefix '2001:123:123::/60'
 +
 +
config interface 'lan'
 +
option ifname 'eth0.1'
 +
option force_link '1'
 +
option type 'bridge'
 +
option proto 'static'
 +
option ipaddr '192.168.1.1'
 +
option netmask '255.255.255.0'
 +
option ip6assign '64'
 +
 +
config interface 'wan'
 +
option ifname 'eth0.2'
 +
option proto 'dhcp'
 +
 +
config interface 'wan6'
 +
option ifname '@wan'
 +
option proto 'dhcpv6'
 +
 +
config interface '3G'
 +
option _orig_ifname '3G'
 +
option _orig_bridge 'false'
 +
option proto '3g'
 +
option device '/dev/ttyS0'
 +
option service 'umts'
 +
option apn 'internet'
 +
option ipv6 '1'
 +
option peerdns '0'
 +
option dns '8.8.8.8 8.8.4.4'
 +
 +
config interface 'MESH'
 +
option proto 'static'
 +
option ipaddr '10.123.123.123'
 +
option netmask '255.0.0.0'
 +
option ip6gw '2001:123:123::1'
 +
option ip6prefix '2001:123:123::/64'
 +
option ip6addr '2001:222:222::222'

Revision as of 16:37, 6 September 2014

Konfigurasi sederhana

  • Masuk ke Administration
  • Network > IPv6 ULA-Prefix > isi dengan alokasi IPv6 yang kita miliki.
  • Network > LAN > Edit > IPv6 assignment length > isi dengan 64 jika di perlukan
  • Network > LAN > Edit > DHCP Server > IPv6 Settings >
Router Advertisement-Service      server mode
DHCPv6-Service                    server mode
NDP-Proxy                         disable
DHCPv6-Mode                       stateless + statefull
Always announce default router
Announced DNS servers
Announced DNS domains


Konfigurasi CLI

/etc/config/olsrd

config olsrd
	option IpVersion '4' 
	option FIBMetric 'flat'
	option LinkQualityLevel '2'
	option LinkQualityAlgorithm 'etx_ff'
	option OlsrPort '698'
	option Willingness '3'
	option NatThreshold '1.0'

config LoadPlugin
	option library 'olsrd_arprefresh.so.0.1'

config LoadPlugin
	option library 'olsrd_dyn_gw.so.0.5'

config LoadPlugin
	option library 'olsrd_httpinfo.so.0.1'
	option port '1978'
	list Net '0.0.0.0 0.0.0.0'

config LoadPlugin
	option library 'olsrd_nameservice.so.0.3'

config LoadPlugin
	option library 'olsrd_txtinfo.so.0.1'
	option accept '0.0.0.0'

config Interface
	option ignore '0'
	option interface 'MESH'
	option Mode 'mesh'
 
config InterfaceDefaults
	option Mode 'mesh'

config Hna4
	option netaddr '192.168.1.0'

option netmask '255.255.255.0'


/etc/config/olsrd6

config olsrd

config LoadPlugin
 	option library 'olsrd_txtinfo.so.0.1' 
	option accept '::'
	option port '2007'

config Interface
	option ignore '0'
	option interface 'MESH'
	option Mode 'mesh'

config InterfaceDefaults

config Hna6
	option netaddr '2001:123:123::'
	option prefix '64'


/etc/config/network

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix '2001:123:123::/60'

config interface 'lan'
	option ifname 'eth0.1'
	option force_link '1'
	option type 'bridge'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '64'

config interface 'wan'
	option ifname 'eth0.2'
	option proto 'dhcp'

config interface 'wan6'
	option ifname '@wan'
	option proto 'dhcpv6'

config interface '3G'
	option _orig_ifname '3G'
	option _orig_bridge 'false'
	option proto '3g'
	option device '/dev/ttyS0'
	option service 'umts'
	option apn 'internet'
	option ipv6 '1'
	option peerdns '0'
	option dns '8.8.8.8 8.8.4.4'

config interface 'MESH'
	option proto 'static'
	option ipaddr '10.123.123.123'
	option netmask '255.0.0.0'
	option ip6gw '2001:123:123::1'
	option ip6prefix '2001:123:123::/64'
	option ip6addr '2001:222:222::222'