lifestyle Monday, 6 September 2010 - 17:15
Publications
Comments

IPV6 Via FreeBSD

Untuk mengaktifkan fitur IPv6 di FreeBSD 7 cukup mengedit file /etc/rc.conf dan tambahkan baris berikut :

ipv6_enable = “YES”

Download aplikasi / source yang disediakan di FreeNet6, tentunya menyesuaikan dengan OS yang digunakan yaitu FreeBSD

extract file source tersebut

yunand# tar -zxvf gw6c-5_1-RELEASE-src.tar.gz

yunand# cd tspc-advanced

yunand# make install target=freebsd installdir=/usr/local/etc/gw6c

Setelah itu buat file konfigurasinya yaitu gw6c.conf. Berikut ini adalah contoh script konfigurasinya

yunand# pico /usr/local/etc/gw6c.conf

userid=user id anda
passwd=passwd anda
server=broker.freenet6.net
auth_method=any
host_type=router
prefixlen=64
if_prefix=rl0 <—sesuaikan dengan ethernet anda
dns_server=ns1.yunand.info<—-terserah mau diisi apa
gw6_dir=/usr/local/etc/gw6c
auto_retry_connect=yes
retry_delay=30
keepalive=no
keepalive_interval=30
tunnel_mode=v6anyv4
if_tunnel_v6v4=gif0
if_tunnel_v6udpv4=tunXX
if_tunnel_v4v6=gif0
client_v4=auto
client_v6=auto
template=freebsd
proxy_client=no
broker_list=tsp-broker-list.txt
last_server=tsp-last-server.txt
always_use_same_server=no
log_file=3
log_filename=/var/log/gw6c.log
log_rotation=yes
log_rotation_size=32
log_rotation_delete=no
syslog_facility=USER

Sekarang kita cek apakah jalan ipv6nya

yunand# /usr/local/etc/gw6c/bin/gw6c -f /usr/local/etc/gw6c.conf
Gateway6 Client v5.1-RELEASE build Jul 29 2008-20:56:15
Built on ///FreeBSD yunand.info 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Thu Jul 3 06:13:42 WIT 2008 root@yunand.info:/usr/obj/usr/src/sys/router i386///
Connection to broker.freenet6.net established.

kita cek tes koneksinya

yunand# ping6 www.kame.net

PING6(56=40+8+8 bytes) 2001:5c0:8fff:fffe::a3c3 –> 2001:200:0:8002:203:47ff:fea5:3085
16 bytes from 2001:200:0:8002:203:47ff:fea5:3085, icmp_seq=0 hlim=47 time=238.812 ms
16 bytes from 2001:200:0:8002:203:47ff:fea5:3085, icmp_seq=1 hlim=47 time=234.632 ms
16 bytes from 2001:200:0:8002:203:47ff:fea5:3085, icmp_seq=2 hlim=47 time=227.346 ms

— www.kame.net ping6 statistics —
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 227.346/233.597/238.812/4.738 ms

kalau keluar seperti itu maka ipv6 sudah terpasang.

2 Comments to "IPV6 Via FreeBSD"

  1. adadeh's Gravatar adadeh
    04/09/2008 - 13:59 | Permalink

    kopas ya pakde :P

    ReplyReply
  2. 13/09/2009 - 02:04 | Permalink

    ijin copas pisan pake , angel cuk belajar FreeBSD T_T

    ReplyReply

Leave a Reply

[+] kaskus emoticons nartzco
Content Protected Using Blog Protector By: PcDrome.