IPv6 Routing – Static Routing

Topologi Lab : 

topo

Metode Lab :

  • Buat topologi seperti diatas, kemudian konfigurasikan IP Address pada interface sesuai pada topologi.

 Verifikasi Lab :

  • Pastikan IDN-R1 bisa ping ke IDN-R3 dan sebaliknya
  • Konfigurasi static route pada IOS-XR tidak jauh beda dengan IOS biasa.
  • Kalau di IOS biasa pakai ip route… atau ipv6 route…., di IOS-XR menggunakan address-family
  • Penulisan dapat dilakukan sekaligus dalam satu baris atau dibuat terpisah berdasarkan konteks (Separate tree).

Konfigurasi IP Address di IDN-R1

RP/0/0/CPU0:IDN-R1#conf t

RP/0/0/CPU0:IDN-R1(config)#interface GigabitEthernet0/0/0/1

RP/0/0/CPU0:IDN-R1(config-if)#no shutdown

RP/0/0/CPU0:IDN-R1(config-if)#ipv4 address 12.12.12.1/24

RP/0/0/CPU0:IDN-R1(config-if)#commit

Konfigurasi IP Address di IDN-R2

RP/0/0/CPU0:IDN-R2#conf t

RP/0/0/CPU0:IDN-R2#interface gi 0/0/0/1

RP/0/0/CPU0:IDN-R2(config-if)#no shutdown

RP/0/0/CPU0:IDN-R2(config-if)#ipv4 address 12.12.12.2/24

RP/0/0/CPU0:IDN-R2(config-if)#interface gi 0/0/0/3

RP/0/0/CPU0:IDN-R2(config-if)#no shutdown

RP/0/0/CPU0:IDN-R2(config-if)#ipv4 address 23.23.23.2/24

RP/0/0/CPU0:IDN-R2(config-if)#commit

Konfigurasi IP Address di IDN-R3

RP/0/0/CPU0:IDN-R3(config)#interface gigabitEthernet 0/0/0/3

RP/0/0/CPU0:IDN-R3(config-if)#no shutdown

RP/0/0/CPU0:IDN-R3(config-if)#ipv4 address 23.23.23.3/24

RP/0/0/CPU0:IDN-R3(config-if)#commit

Penambahan routing table dapat ditulis langsung dalam satu baris command atau separate tree, silahkan lebih suka model penulisan yang mana. Pada IDN-R1 kita akan tambahkan static route ke network IDN-R3 dengan penulisan separate tree, sedangkan pada IDN-R3 kita buat static default route dengan gateway IDN-R2, kita tulis langsung dalam satu baris command.

Konfigurasi Static Routing di IDN-R1

RP/0/0/CPU0:IDN-R1(config)#router static

RP/0/0/CPU0:IDN-R1(config-static)#address-family ipv4 unicast

RP/0/0/CPU0:IDN-R1(config-static-afi)#23.23.23.0/24 12.12.12.2

RP/0/0/CPU0:IDN-R1(config-static-afi)#commit

Konfigurasi Static Route di IDN-R3

RP/0/0/CPU0:IDN-R3(config)#router static address-family ipv4 unicast 0.0.0.0/0 23.23.23.2

RP/0/0/CPU0:IDN-R3(config)#commit

Cek routing table di IDN-R1

RP/0/0/CPU0:IDN-R1#show route

C    12.12.12.0/24 is directly connected, 00:08:56, GigabitEthernet0/0/0/1

L    12.12.12.1/32 is directly connected, 00:08:56, GigabitEthernet0/0/0/1

S    23.23.23.0/24 [1/0] via 12.12.12.2, 00:00:06

RP/0/0/CPU0:IDN-R1#

Terlihat bahwa static routing yang dikonfigurasikan tadi sudah masuk di routing table. Sekarang kita cek routing table di IDN-R3.

RP/0/0/CPU0:IDN-R3#sh route

S*   0.0.0.0/0 [1/0] via 23.23.23.2, 00:00:06

C    23.23.23.0/24 is directly connected, 00:01:39, GigabitEthernet0/0/0/3

L    23.23.23.3/32 is directly connected, 00:01:39, GigabitEthernet0/0/0/3

RP/0/0/CPU0:IDN-R3#

Pengujian kita coba ping dari IDN-R1 ke IDN-R3 dan sebaliknya.

RP/0/0/CPU0:IDN-R1#ping 23.23.23.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 23.23.23.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 19/27/39 ms

RP/0/0/CPU0:IDN-R1#

Ping dan traceroute dari IDN-R3 ke IDN-R1

RP/0/0/CPU0:IDN-R3#ping 12.12.12.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 12.12.12.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 9/117/509 ms

RP/0/0/CPU0:IDN-R3#

RP/0/0/CPU0:IDN-R3#traceroute 12.12.12.1

Type escape sequence to abort.

Tracing the route to 12.12.12.1

1  23.23.23.2 69 msec  9 msec  9 msec

2  12.12.12.1 79 msec  *  29 msec

RP/0/0/CPU0:IDN-R3#

Yess, ping sukses, traceroute juga sampai tujuan sesuai rute yang sudah kita konfigurasikan tadi.

Komen dimari gann....

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s