Konfigurasi OSPF di IOS-XR

Oke pada postingan kali ini saya ingin membahas mengenai konfigurasi OSPF di IOS-XR.

A: loh bentar bukanya dulu pernah mbahas OSPF ya?
gue: dulu emang pernah bahas OSPF, di postingan ini saya hanya ingin mengulas sekaligus memberikan gambaran konfigurasi di IOS-XR

Topologi seperti berikut, kita akan konfigurasi standard area.

xr1Sebelumnya saya pernah menulis artikel tentang konfigurasi dasar di sini. Sebenernya sama saja sih cuman beda “bahasa saja”.

Konfigurasi IDN-R1

hostname IDN-R1
!
interface Loopback0
ipv4 address 1.1.1.1 255.255.255.255
!
interface GigabitEthernet0/0/0/5
ipv4 address 12.12.12.1 255.255.255.0
!
router ospf 1
area 0
interface Loopback0
interface GigabitEthernet0/0/0/5
!

Konfigurasi IDN-R2

hostname IDN-R2
interface Loopback0
ipv4 address 2.2.2.2 255.255.255.255
!
interface GigabitEthernet0/0/0/2
ipv4 address 12.12.12.2 255.255.255.0
!
interface GigabitEthernet0/0/0/3
ipv4 address 23.23.23.2 255.255.255.0
!
router ospf 1
area 0
interface GigabitEthernet0/0/0/2
interface loopback0
!
!
area 1
interface GigabitEthernet0/0/0/3
!

Konfigurasi IDN-R3

!
hostname IDN-R3
interface Loopback0
ipv4 address 3.3.3.3 255.255.255.255
!
interface GigabitEthernet0/0/0/3
!
interface GigabitEthernet0/0/0/5
ipv4 address 23.23.23.3 255.255.255.0
!
router ospf 1
area 1
interface Loopback0
!
interface GigabitEthernet0/0/0/5
!

#Note: perbedaanya untuk routing ospf, kita cuman tinggal masukan inteface kedalam area ospf, jadi gak perlu memasukan network secara manual

Kemudian verifikasi

RP/0/0/CPU0:IDN-R1#sh ip route
Mon Feb  3 19:08:11.173 UTC

Codes: C - connected, S - static, R - RIP, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G  - DAGR
A - access/subscriber, a - Application route, (!) - FRR Backup path

Gateway of last resort is not set

L    1.1.1.1/32 is directly connected, 00:55:01, Loopback0
O    2.2.2.2/32 [110/2] via 12.12.12.2, 00:01:17, GigabitEthernet0/0/0/5
O IA 3.3.3.3/32 [110/3] via 12.12.12.2, 00:01:27, GigabitEthernet0/0/0/5
C    12.12.12.0/24 is directly connected, 00:55:01, GigabitEthernet0/0/0/5
L    12.12.12.1/32 is directly connected, 00:55:01, GigabitEthernet0/0/0/5
O IA 23.23.23.0/24 [110/2] via 12.12.12.2, 00:04:02, GigabitEthernet0/0/0/5
RP/0/0/CPU0:IDN-R1#
RP/0/0/CPU0:IDN-R2#sh ip ospf neigh
Mon Feb  3 19:09:06.079 UTC

* Indicates MADJ interface

Neighbors for OSPF 1

Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1         1     FULL/DR         00:00:39    12.12.12.1      GigabitEthernet0/0/0/2
Neighbor is up for 00:06:11
3.3.3.3         1     FULL/BDR        00:00:31    23.23.23.3      GigabitEthernet0/0/0/3
Neighbor is up for 00:03:40

Total neighbor count: 2
RP/0/0/CPU0:IDN-R2#
RP/0/0/CPU0:IDN-R1#ping 2.2.2.2
Mon Feb  3 19:10:47.772 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/31/109 ms
RP/0/0/CPU0:IDN-R1#ping 3.3.3.3
Mon Feb  3 19:10:54.372 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 19/31/79 ms
RP/0/0/CPU0:IDN-R1#

Leave a Reply

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 )

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.