Copy Link
Add to Bookmark
Report

Echo Magazine Issue 07 Phile 0x018

eZine's profile picture
Published in 
Echo Magazine
 · 4 years ago

  


____________________ ___ ___ ________
\_ _____/\_ ___ \ / | \\_____ \
| __)_ / \ \// ~ \/ | \
| \\ \___\ Y / | \
/_______ / \______ /\___|_ /\_______ /
\/ \/ \/ \/


.OR.ID
ECHO-ZINE RELEASE
07

Author: pangeran_biru
Online @ www.echo.or.id :: http://ezine.echo.or.id

=== Implementasi IPv6 pada sistem operasi linux [primbon #2] ===

Assalamualaikum wr.wb
oke sekarang setelah artikel saya sebelumnya yang ngebahas teori IPv6 sekaligus IPv4 sekarang
kita coba untuk mengimplementasikannya. saya mencoba mengimplementasikannya pada linux redhat 9


coba ketikkan perintah berikut pada terminal linux punyamu (ato punya orang lain jg ga papa:p):

[root@bloon root]# ifconfig eth0 add 2002:2::192.168.1.1/32 up
No support for INET6 on this system

nah! itu tandanya modul ipv6 nya blom diaktifin coba dech aktifin!!!

[root@bloon root]# insmod ipv6
Using /lib/modules/2.4.20-8/kernel/net/ipv6/ipv6.o

perintah insmod ipv6 tadi berfungsi untuk mengaktikfkan modul ipv6, ketika kita mengaktifkan
modul ipv6 secara otomatis kita akan dapat alamat ipv6,
coba dech cek!

[root@bloon root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:BA:5D:D2:CB
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fe5d:d2cb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:163 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:22625 (22.0 Kb) TX bytes:1122 (1.0 Kb)
Interrupt:10 Base address:0xdc00

kita dapat alamat fe80::250:baff:fe5d:d2cb/64, kombinasi ini tergantung pada alamat ipv6
tetangga (jika ada) serta alamat MAC ethernet kita. sekarang kita kasih dech alamat sesuai
dengan kehendak kita!

[root@bloon root]# ifconfig eth0 add 2002:2::192.168.1.1/32 up

cek ip address

[root@bloon root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:BA:5D:D2:CB
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fe5d:d2cb/64 Scope:Link
inet6 addr: 2002:2::c0a8:101/32 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:163 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:22625 (22.0 Kb) TX bytes:1122 (1.0 Kb)
Interrupt:10 Base address:0xdc00

coba dech di ping dengan alamat loop back, kalo di IPv4 alamat loobback nya 127.X.X.X
(misal 127.0.0.1, 127.1.2.3) nah di IPv6 alamat loopbacknya adalah ::1, ingat perintahnya pake
ping6 [ip address 6]

[root@bloon root]# ping6 ::1 -c 5
PING ::1(::1) 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.069 ms
64 bytes from ::1: icmp_seq=2 ttl=64 time=0.061 ms
64 bytes from ::1: icmp_seq=3 ttl=64 time=0.058 ms
64 bytes from ::1: icmp_seq=4 ttl=64 time=0.058 ms
64 bytes from ::1: icmp_seq=5 ttl=64 time=0.059 ms
--- ::1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.058/0.061/0.069/0.004 ms

coba sekarang ngeping ke pake alamat yang telah kita buat tadi

[root@bloon root]# ping6 2002:2::192.168.1.1 -c 5
PING 2002:2::192.168.1.1(2002:2::c0a8:101) 56 data bytes
64 bytes from 2002:2::c0a8:101: icmp_seq=1 ttl=64 time=0.073 ms
64 bytes from 2002:2::c0a8:101: icmp_seq=2 ttl=64 time=0.060 ms
64 bytes from 2002:2::c0a8:101: icmp_seq=3 ttl=64 time=0.057 ms
64 bytes from 2002:2::c0a8:101: icmp_seq=4 ttl=64 time=0.059 ms
64 bytes from 2002:2::c0a8:101: icmp_seq=5 ttl=64 time=0.061 ms
--- 2002:2::192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3996ms
rtt min/avg/max/mdev = 0.057/0.062/0.073/0.005 ms

misal kita punya konfigurasi kayak gini:

[PC1]---------------[pc2]

asumsi PC yang kita konfigurasi tadi adalah PC1 sekarang kita tinggal melakukan hal yang sama
pada PC2. oke misal kita ngasih IP address 2002:2::c0a8:103/32.
mari kita lakukan!

[root@gorila root]# ifconfig eth0 add 2002:2::192.168.1.3/32 up
[root@gorila root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:60:97:27:F6:24
inet6 addr: fe80::260:97ff:fe27:f624/64 Scope:Link
inet6 addr: 2002:2::c0a8:103/32 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:6
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:554 (554.0 b)
Interrupt:11 Base address:0xe000

[root@gorila root]# ping6 2002:2::192.168.1.3 -c 5
PING 2002:2::192.168.1.2(2002:2::c0a8:103) 56 data bytes
64 bytes from 2002:2::c0a8:103: icmp_seq=1 ttl=64 time=0.069 ms
64 bytes from 2002:2::c0a8:103: icmp_seq=2 ttl=64 time=0.056 ms
64 bytes from 2002:2::c0a8:103: icmp_seq=3 ttl=64 time=0.055 ms
64 bytes from 2002:2::c0a8:103: icmp_seq=4 ttl=64 time=0.049 ms
64 bytes from 2002:2::c0a8:103: icmp_seq=5 ttl=64 time=0.057 ms
--- 2002:2::192.168.1.3 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3996ms
rtt min/avg/max/mdev = 0.049/0.057/0.069/

oke kedua PC telah selesai dikonfigurasi sekarang kita lakukan uji konektivitas antara keduanya!
sekarang lakukan ping dari PC1 ke PC2, pada PC1 kita lakukan perintah:

[root@gorila root]# ping6 2002:2::192.168.1.3 -c 5
PING 2002:2::192.168.1.3(2002:2::c0a8:103) 56 data bytes
64 bytes from 2002:2::c0a8:103: icmp_seq=1 ttl=64 time=0.792 ms
64 bytes from 2002:2::c0a8:103: icmp_seq=2 ttl=64 time=0.375 ms
64 bytes from 2002:2::c0a8:103: icmp_seq=3 ttl=64 time=0.371 ms
64 bytes from 2002:2::c0a8:103: icmp_seq=4 ttl=64 time=0.371 ms
64 bytes from 2002:2::c0a8:103: icmp_seq=5 ttl=64 time=0.377 ms
--- 2002:2::192.168.1.3 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4011ms
rtt min/avg/max/mdev = 0.371/0.457/0.792/0.167 ms

yup! kita dah berhasil menghubungkan dua PC memakai IPv6. sekarang gimana kalo konfigurasinya
kayak gini:

eth0 eth0 eth1 eth1 eth0 eth0
[PC A]----------[router 1]----------[router 2]------[PC B]



IP address PC1
2002:2::192.168.1.2/32

IP address PC2
2004:4::10.14.200.2/32

IP address router 1
eth0-->2002:2::192.168.1.1/32
eth1-->2003:3::172.168.1.1/32

IP address router 2
eth0-->2004:4::10.14.200.1/32
eth1-->2003:3::172.168.1.2/32

oke sekarang kita konfigurasi ke 4 komputer kita. kemon baybeh!!!
di PC1:
#ifconfig eth0 add 2002:2::192.168.1.2/32 up


di PC1:
#ifconfig eth0 add 2004:4::10.14.200.2/32 up

diRouter 1
#ifconfig eth0 add 2002:2::192.168.1.1/32 up
#ifconfig eth1 add 2003:3::172.168.1.1/32
konfigurasi entri tabel routing IPv6
#route -A inet6 add 2004:4::/32 gw 2003:3::172.168.1.2 dev eth1
untuk melihat tabel routing IPv6
#route -A inet6

dirouter 2
#ifconfig eth0 add 2004:4::10.14.200.1/32 up
#ifconfig eth1 add 2003:3::172.168.1.2/32 up
konfigurasi entri tabel routing IPv6
#route -A inet6 add 2002:2::/32 up gw 2003:3::172.168.1.1 dev eth1

untuk PC1 dan PC2 tidak perlu mengkonfigurasi entri tabel routing IPv6 karena IPv6
mempunyai kemampuan untuk melakukan router solication dan router advertisment. tapi kalo kita
pake IPV4 kita harus mengkonfigurasi tabel routing di PC1 dan PC2, nah itu juga salah satu
keunggulan IPv6 di banding IPv4.

oke segitu aja dari saya, semoga ada manfaatnya khusus buat saya sendiri umumnya bagi para
pembaca semua (kayak khotib jum'at):p

semoga tetap dalam semangat untuk berbagi!!!!!
Wassalam

kritik&saran silahkan kirim ke pan6eran_biru[at]yahoo.com


..::::::Segala Puji Hanya milik ALLAH sang penguasa jagat raya::::.......

Referensi: -Linux & IPv6 How to
-catatan harian gw!!!!

[###############################################################################################]

thengkiyu tu :-aLL echo|staff,

GreetZ to :-temen-temen seperjuangan: |blo`on|,gorila,dragon CCNA, mbah harjo,ksj,
st3alth
-barudak #sunda (belegug,Hendi,al-mubarak,all dech!)
-special Kanggo: Neng Wiharyanti Purnama Dewi [kamu maniezz dech!!!]

[###############################################################################################]

← previous
next →
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

guest's profile picture
@guest
10 Nov 2024
الاسم : جابر حسين الناصح - السن :٤٢سنه - الموقف من التجنيد : ادي الخدمه - خبره عشرين سنه منهم عشر سنوات في كبرى الشركات بالسعوديه وعشر سنوات ...

lostcivilizations's profile picture
Lost Civilizations (@lostcivilizations)
6 Nov 2024
Thank you! I've corrected the date in the article. However, some websites list January 1980 as the date of death.

guest's profile picture
@guest
5 Nov 2024
Crespi died i april 1982, not january 1980.

guest's profile picture
@guest
4 Nov 2024
In 1955, the explorer Thor Heyerdahl managed to erect a Moai in eighteen days, with the help of twelve natives and using only logs and stone ...

guest's profile picture
@guest
4 Nov 2024
For what unknown reason did our distant ancestors dot much of the surface of the then-known lands with those large stones? Why are such cons ...

guest's profile picture
@guest
4 Nov 2024
The real pyramid mania exploded in 1830. A certain John Taylor, who had never visited them but relied on some measurements made by Colonel H ...

guest's profile picture
@guest
4 Nov 2024
Even with all the modern technologies available to us, structures like the Great Pyramid of Cheops could only be built today with immense di ...

lostcivilizations's profile picture
Lost Civilizations (@lostcivilizations)
2 Nov 2024
In Sardinia, there is a legend known as the Legend of Tirrenide. Thousands of years ago, there was a continent called Tirrenide. It was a l ...

guest's profile picture
@guest
2 Nov 2024
What is certain is that the first Greek geographer to clearly place the Pillars of Hercules at Gibraltar was Eratosthenes (who lived between ...

guest's profile picture
@guest
1 Nov 2024
Disquieting thc drinks has been quite the journey. As someone keen on unpretentious remedies, delving into the in every respect of hemp has ...
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT