Difference between revisions of "OpenWRT IPv6: Setup tunnel ke tunnelbroker"

From OnnoWiki
Jump to navigation Jump to search
Line 7: Line 7:
 
  uci set network.wan6.ip6addr='2001:470:35:ab6::2/64'
 
  uci set network.wan6.ip6addr='2001:470:35:ab6::2/64'
 
  uci set network.wan6.tunnelid=208951
 
  uci set network.wan6.tunnelid=208951
 +
uci set network.wan6.ip6prefix='2001:470:36:ab6::/64'
 
  uci set network.wan6.username=tb51aa9310a105d0.19920640
 
  uci set network.wan6.username=tb51aa9310a105d0.19920640
 
  uci set network.wan6.password='YOUR_PASSWORD'  
 
  uci set network.wan6.password='YOUR_PASSWORD'  

Revision as of 18:17, 1 January 2014

Pastikan parameter di tunnelbroker.net, untuk openwrt versi baru sudah ada interface wan6 yang dapat kita ubah menggunakan parameter dari tunnelbroker menjadi, misalnya,


uci set network.wan6=interface
uci set network.wan6.proto=6in4
uci set network.wan6.peeraddr=216.218.221.42
uci set network.wan6.ip6addr='2001:470:35:ab6::2/64'
uci set network.wan6.tunnelid=208951
uci set network.wan6.ip6prefix='2001:470:36:ab6::/64'
uci set network.wan6.username=tb51aa9310a105d0.19920640
uci set network.wan6.password='YOUR_PASSWORD' 
uci commit network

uci set firewall.@zone[1].network='wan wan6'
uci commit firewall

Ubah YOUR_PASSWORD di atas menjadi password account tunnelbroker.net anda.

CATATAN: jika kita menggunakan appliance / laptop yang berada di belakang firewall dan melalukan protokol 41, gunakan IPv4 address yang kita dapat dari DHCP server bukan IPv4 endpoint yang kita berikan ke tunnelbroker.

OpenWRT versi lama

Masuk ke shell dan lakukan, misalnya,

opkg update
opkg install 6in4

uci set network.henet=interface
uci set network.henet.proto=6in4
uci set network.henet.peeraddr=216.218.221.42
uci set network.henet.ip6addr='2001:470:35:ab6::2/64'
uci set network.henet.tunnelid=208951
uci set network.henet.username=tb51aa9310a105d0.19920640
uci set network.henet.password='YOUR_PASSWORD' 
uci commit network

uci set firewall.@zone[1].network='wan henet'
uci commit firewall

ifup henet
/etc/init.d/firewall restart


Pranala Menarik

Build Firmware

IPv6

Flash Firmware

Misc

UBNT