Monday, 6 May 2013

IPv6 Static Routing

Pada IPv6 ada beberapa routing protokol yang bisa digunakan , diantaranya
Static Routing, RIPng, OSPFv3, EIGRPv6. kali ini kita akan mempelajari bagaimana static routing pada ipv6. Pada konfigurasi hampir sama dengan yang di IPv4 hanya pada IPv6 routing static via interface, router harus mengetahui link-lokal dari neighbornya.

TOPOLOGI




R1(config)#ipv6 unicast-routing
R1(config)#int fa0/0
R1(config-if)#ipv6 add
R1(config-if)#ipv6 address 12::1/126
R1(config-if)#int lo0
R1(config-if)#ipv6 address 1::1/128
R1(config-if)#ex
R1(config)#ipv6 route 2::2/128 12::2
R2(config)#ipv6 unicast-routing
R2(config)#int fa0/0
R2(config-if)#ipv6 address 12::2/126
R2(config-if)#int lo0
R2(config-if)#ipv6 address 2::2/128
R2(config)#ipv6 route 1::1/128 12::1
R2(config)#do ping 1::1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/28/36 ms
R2(config)#

untuk static routing melalui interface, harus ditambahkan link local addressnya

R2(config)#no ipv6 route 1::1/128 12::1
R2(config)#ipv6 route 1::1/128 fa0/0

R1(config)#no ipv6 route 2::2/128 12::2
R1(config)#ipv6 route 2::2/128 fa0/0

R1(config)#do ping 2::2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2::2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

link lokal harus ditambahkan

R1(config)#int fa0/0
R1(config-if)#ipv6 address fe80::1 link-local
R2(config)#int fa0/0  
R2(config-if)#ipv6 address fe80::2 link-local


hapus konfigurasi static routing tadi
R2(config-if)#no ipv6 route 1::1/128 fa0/0
R1(config-if)#no ipv6 route 2::2/128 fa0/0

tambahkan link local address

R1(config)#ipv6 route 2::2/128 fa0/0 fe80::2
R2(config)#ipv6 route 1::1/128 fa0/0 fe80::1
R2(config)#do ping 1::1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/12/36 ms
R2(config)#