Difference between revisions of "OpenWRT IPv6: Konfigurasi"

From OnnoWiki
Jump to navigation Jump to search
(New page: Edit vi /etc/config/6relayd Isi config server 'default' list network 'lan' option rd 'server' option dhcpv6 'server' option fallback_relay 'rd dhcpv6 ndp' option managemen...)
 
Line 1: Line 1:
Edit
+
==/etc/config/6relayd==
 
 
vi /etc/config/6relayd
 
 
 
Isi
 
  
 
  config server 'default'  
 
  config server 'default'  
Line 17: Line 13:
  
  
Edit
+
==/etc/config/dhcp==
 
 
vi /etc/config/dhcp
 
 
 
Isi
 
  
 
  config dnsmasq
 
  config dnsmasq
Line 52: Line 44:
  
  
Edit
+
==/etc/config/radvd==
 
 
vi /etc/config/radvd
 
 
 
Isi
 
  
 
  config interface
 
  config interface
Line 88: Line 76:
 
list suffix ''
 
list suffix ''
 
  option ignore '1'
 
  option ignore '1'
 +
 +
 +
 +
==/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 'fdde:f315:7672::/48'
 +
 +
config interface 'lan'
 +
option ifname 'eth0'
 +
option type 'bridge'
 +
option proto 'static'
 +
option netmask '255.255.255.0'
 +
option ip6assign '60'
 +
option ipaddr '192.168.0.222'
 +
option ip6addr '2001:470:36:ab6::1/64'
 +
 +
config interface 'wan'
 +
option ifname 'eth1'
 +
option proto 'dhcp'
 +
option macaddr '00:1E:EC:97:4D:C2'
 +
 +
config interface 'wan6'
 +
option ifname '@wan'
 +
option proto 'dhcpv6'
 +
 +
config switch
 +
option name 'switch0'
 +
option reset '1'
 +
option enable_vlan '1'
 +
 +
config switch_vlan
 +
option device 'switch0'
 +
option vlan '1'
 +
option ports '0 1 2 3 4 5'
 +
 +
config interface 'MESH'
 +
option proto 'none'
 +
 +
config interface 'henet'
 +
option proto '6in4'
 +
option peeraddr '216.218.221.42'
 +
option ip6addr '2001:470:35:ab6::2/64'
 +
option tunnelid '208951'
 +
option username 'tb51aa9310a105d0.19920640'
 +
option password 'ONNOWPURBO1781962'

Revision as of 05:03, 4 June 2013

/etc/config/6relayd

config server 'default' 
	list network 'lan' 
	option rd 'server'
	option dhcpv6 'server'
	option fallback_relay 'rd dhcpv6 ndp'
	option management_level '1'
	option compat_ula '1'
	option master 'henet'
	option always_rewrite_dns '1'
	option always_assume_default '1'


/etc/config/dhcp

config dnsmasq
	option domainneeded '1'
	option boguspriv '1'
	option filterwin2k '0'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option nonegcache '0'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.auto'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option force '1'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'


/etc/config/radvd

config interface
	option interface 'lan'
	option AdvSendAdvert '1'
	list client 
	option ignore '0'
	option IgnoreIfMissing '1'
	option AdvSourceLLAddress '1'
	option AdvDefaultPreference 'medium'

config prefix
	option interface 'lan'
	option AdvOnLink '1'
	option AdvAutonomous '1'
	list prefix '2001:470:36:ab6::/64'
	option ignore '0'

config route
	option interface 'lan'
	list prefix '2001:470:36:ab6::/64'
	option ignore '0'

config rdnss
	option interface 'lan'
	list addr '2001:470:36:ab6::1/64'
	option ignore '0'

config dnssl
	option interface 'lan' 

list suffix

	option ignore '1'


/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 'fdde:f315:7672::/48'
config interface 'lan'
	option ifname 'eth0'
	option type 'bridge'
	option proto 'static'
	option netmask '255.255.255.0'
	option ip6assign '60'
	option ipaddr '192.168.0.222'
	option ip6addr '2001:470:36:ab6::1/64'

config interface 'wan'
	option ifname 'eth1'
	option proto 'dhcp'
	option macaddr '00:1E:EC:97:4D:C2'

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

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports '0 1 2 3 4 5'
config interface 'MESH'
	option proto 'none'

config interface 'henet'
	option proto '6in4'
	option peeraddr '216.218.221.42'
	option ip6addr '2001:470:35:ab6::2/64'
	option tunnelid '208951'
	option username 'tb51aa9310a105d0.19920640'
	option password 'ONNOWPURBO1781962'