GNS3, OSPF Single Area pada Mikrotik

Topologi.JPG
Topologi Simulasi

Note:
Pada Mikrotik, untuk membuat interface loopback bisa menggunakan interface bridge(tanpa port) kemudian assign ip loopback pada interface brigde tersebut.

Pertama, Untuk memulai konfigurasi ospf pada mikrotik assign ip address pada masing-masing Router, perintah : ip address add address=[ip address]/[CIDR] interface=[interface]

[admin@R1] > ip add pr
Flags: X - disabled, I - invalid, D - dynamic 
 # ADDRESS NETWORK INTERFACE 
 0 12.12.12.1/24 12.12.12.0 ether1 
 1 1.1.1.1/24 1.1.1.0 ether8 
 2 11.11.11.11/32 11.11.11.11 LoopbackR1

[admin@R2] > ip add pr
Flags: X - disabled, I - invalid, D - dynamic 
 # ADDRESS NETWORK INTERFACE 
 0 12.12.12.2/24 12.12.12.0 ether1 
 1 2.2.2.2/24 2.2.2.0 ether8 
 2 23.23.23.2/24 23.23.23.0 ether2 
 3 22.22.22.22/32 22.22.22.22 LoopbackR2 

[admin@R3] > ip add pr
Flags: X - disabled, I - invalid, D - dynamic 
 # ADDRESS NETWORK INTERFACE 
 0 23.23.23.3/24 23.23.23.0 ether2 
 1 3.3.3.3/24 3.3.3.0 ether8 
 2 192.168.10.1/24 192.168.10.0 ether1 
 3 33.33.33.33/32 33.33.33.33 LoopbackR3

Kedua, assign ip address pada masing-masing PC dibawah router, perintah : ip [ip address]/[CIDR] [gateway]

Setting IP R1
PC1> ip 1.1.1.10/24 1.1.1.1

Setting IP PC2
PC2> ip 2.2.2.20/24 2.2.2.2

Setting IP PC3
PC3> ip 3.3.3.30/24 3.3.3.3

Ketiga, assign ip address pada interface loopback laptop yang akan digunakan sebagai NMS,

Setting Segmen NMS (loopback laptop)
C:\Users\khusni_nadzif>ipconfig
Windows IP Configuration
Ethernet adapter Lo1:
Connection-specific DNS Suffix . :
 Link-local IPv6 Address . . . . . : fe80::853e:5991:b002:cde1%14
 IPv4 Address. . . . . . . . . . . : 192.168.10.2
 Subnet Mask . . . . . . . . . . . : 255.255.255.0
 Default Gateway . . . . . . . . . : 192.168.10.1

Keempat, memulai setting ospf instance pada masing-masing router, untuk router-id menggunakan ip loopback router.

Setting Instance R1
[admin@R1] > routing ospf instance add name=default router-id=11.11.11.11

Setting Instance R2
[admin@R2] > routing ospf instance add name=default router-id=22.22.22.22

Setting Instance R3
[admin@R3] > routing ospf instance add name=default router-id=33.33.33.33

Kelima, masukkan network yang direct connect pada masing-masing router

Masukkan Network Direct Connected R1
[admin@R1] > routing ospf network add network=1.1.1.0/24 area=backbone 
[admin@R1] > routing ospf network add network=11.11.11.11/32 area=backbone 
[admin@R1] > routing ospf network add network=12.12.12.0/24 area=backbone 

[admin@R1] > routing ospf network print 
Flags: X - disabled, I - invalid 
 # NETWORK AREA 
 0 1.1.1.0/24 backbone 
 1 11.11.11.11/32 backbone 
 2 12.12.12.0/24 backbone


Masukkan Network Direct Connected R2
[admin@R2] > routing ospf network add network=2.2.2.0/24 area=backbone 
[admin@R2] > routing ospf network add network=12.12.12.12/32 area=backbone 
[admin@R2] > routing ospf network add network=22.22.22.0/24 area=backbone 
[admin@R2] > routing ospf network add network=23.23.23.0/24 area=backbone 

[admin@R2] > routing ospf network print 
Flags: X - disabled, I - invalid 
 # NETWORK AREA 
 0 2.2.2.0/24 backbone 
 1 12.12.12.0/24 backbone 
 2 22.22.22.22/32 backbone 
 3 23.23.23.0/24 backbone


Masukkan Network Direct Connected R3
[admin@R3] > routing ospf network add network=3.3.3.0/24 area=backbone 
[admin@R3] > routing ospf network add network=23.23.23.0/24 area=backbone 
[admin@R3] > routing ospf network add network=33.33.33.33/32 area=backbone 
[admin@R3] > routing ospf network add network=192.168.10.0/24 area=backbone 

[admin@R3] > routing ospf network print 
Flags: X - disabled, I - invalid 
 # NETWORK AREA 
 0 3.3.3.0/24 backbone 
 1 23.23.23.0/24 backbone 
 2 33.33.33.33/32 backbone 
 3 192.168.10.0/24 backbone

Keenam, cek neighbor ospf pada masing-masing router

Cek Neighbor OSPF R1
[admin@R1] > routing ospf neighbor print 
 0 instance=default router-id=22.22.22.22 address=12.12.12.2 interface=ether1 
 priority=1 dr-address=12.12.12.2 backup-dr-address=12.12.12.1 state="Full" 
 state-changes=6 ls-retransmits=0 ls-requests=0 db-summaries=0 
 adjacency=36m4s

Cek Neighbor OSPF R2
[admin@R2] > routing ospf neighbor print 
 0 instance=default router-id=11.11.11.11 address=12.12.12.1 interface=ether1 
 priority=1 dr-address=12.12.12.2 backup-dr-address=12.12.12.1 state="Full" 
 state-changes=4 ls-retransmits=0 ls-requests=0 db-summaries=0 
 adjacency=36m38s 

 1 instance=default router-id=33.33.33.33 address=23.23.23.3 interface=ether2 
 priority=1 dr-address=23.23.23.3 backup-dr-address=23.23.23.2 state="Full" 
 state-changes=6 ls-retransmits=0 ls-requests=0 db-summaries=0 
 adjacency=37m9s 

Cek Neighbor OSPF R3
[admin@R3] > routing ospf neighbor print 
 0 instance=default router-id=22.22.22.22 address=23.23.23.2 interface=ether2 
 priority=1 dr-address=23.23.23.3 backup-dr-address=23.23.23.2 state="Full" 
 state-changes=4 ls-retransmits=0 ls-requests=0 db-summaries=0 
 adjacency=36m7s

Ketujuh, cek ip route ospf masing-masing router

Cek Routing OSPF R1
[admin@R1] > ip route print where ospf
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 # DST-ADDRESS PREF-SRC GATEWAY DISTANCE
 0 ADo 2.2.2.0/24 12.12.12.2 110
 1 ADo 3.3.3.0/24 12.12.12.2 110
 2 ADo 22.22.22.22/32 12.12.12.2 110
 3 ADo 23.23.23.0/24 12.12.12.2 110
 4 ADo 33.33.33.33/32 12.12.12.2 110
 5 ADo 192.168.10.0/24 12.12.12.2 110

Cek Routing OSPF R2
[admin@R2] > ip route print where ospf
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 # DST-ADDRESS PREF-SRC GATEWAY DISTANCE
 0 ADo 1.1.1.0/24 12.12.12.1 110
 1 ADo 3.3.3.0/24 23.23.23.3 110
 2 ADo 11.11.11.11/32 12.12.12.1 110
 3 ADo 33.33.33.33/32 23.23.23.3 110
 4 ADo 192.168.10.0/24 23.23.23.3 110

Cek Routing OSPF R3
[admin@R3] > ip route print where ospf
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 # DST-ADDRESS PREF-SRC GATEWAY DISTANCE
 0 ADo 1.1.1.0/24 23.23.23.2 110
 1 ADo 2.2.2.0/24 23.23.23.2 110
 2 ADo 11.11.11.11/32 23.23.23.2 110
 3 ADo 12.12.12.0/24 23.23.23.2 110
 4 ADo 22.22.22.22/32 23.23.23.2 110

Kedelapan, cek koneksi dari PC di bawah router ke network tetangga dan loopback NMS

Test ping dari PC1
PC1> ping 2.2.2.20
84 bytes from 2.2.2.20 icmp_seq=1 ttl=62 time=4.000 ms
84 bytes from 2.2.2.20 icmp_seq=2 ttl=62 time=1.000 ms
84 bytes from 2.2.2.20 icmp_seq=3 ttl=62 time=2.001 ms

PC1> ping 3.3.3.30
84 bytes from 3.3.3.30 icmp_seq=1 ttl=61 time=4.000 ms
84 bytes from 3.3.3.30 icmp_seq=2 ttl=61 time=2.000 ms
84 bytes from 3.3.3.30 icmp_seq=3 ttl=61 time=2.000 ms

PC1> ping 192.168.10.2
84 bytes from 192.168.10.2 icmp_seq=1 ttl=125 time=4.000 ms
84 bytes from 192.168.10.2 icmp_seq=2 ttl=125 time=3.000 ms
84 bytes from 192.168.10.2 icmp_seq=3 ttl=125 time=3.000 ms

Test ping dari PC2 
PC2> ping 1.1.1.10
84 bytes from 1.1.1.10 icmp_seq=1 ttl=62 time=1.000 ms
84 bytes from 1.1.1.10 icmp_seq=2 ttl=62 time=2.000 ms
84 bytes from 1.1.1.10 icmp_seq=3 ttl=62 time=1.000 ms

PC2> ping 3.3.3.30
84 bytes from 3.3.3.30 icmp_seq=1 ttl=62 time=3.000 ms
84 bytes from 3.3.3.30 icmp_seq=2 ttl=62 time=2.000 ms
84 bytes from 3.3.3.30 icmp_seq=3 ttl=62 time=2.001 ms

PC2> ping 192.168.10.2
84 bytes from 192.168.10.2 icmp_seq=1 ttl=126 time=5.001 ms
84 bytes from 192.168.10.2 icmp_seq=2 ttl=126 time=3.000 ms
84 bytes from 192.168.10.2 icmp_seq=3 ttl=126 time=3.000 ms

Test ping dari PC3
PC3> ping 1.1.1.10
84 bytes from 1.1.1.10 icmp_seq=1 ttl=61 time=4.000 ms
84 bytes from 1.1.1.10 icmp_seq=2 ttl=61 time=4.001 ms
84 bytes from 1.1.1.10 icmp_seq=3 ttl=61 time=3.000 ms

PC3> ping 2.2.2.20
84 bytes from 2.2.2.20 icmp_seq=1 ttl=62 time=9.001 ms
84 bytes from 2.2.2.20 icmp_seq=2 ttl=62 time=2.000 ms
84 bytes from 2.2.2.20 icmp_seq=3 ttl=62 time=2.000 ms

Test Ping dari Laptop NMS
C:\Users\khusni_nadzif>ping 1.1.1.10

Pinging 1.1.1.10 with 32 bytes of data:
Reply from 1.1.1.10: bytes=32 time=5ms TTL=61
Reply from 1.1.1.10: bytes=32 time=4ms TTL=61
Reply from 1.1.1.10: bytes=32 time=3ms TTL=61
Reply from 1.1.1.10: bytes=32 time=3ms TTL=61

Ping statistics for 1.1.1.10:
 Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
 Minimum = 3ms, Maximum = 5ms, Average = 3ms

C:\Users\khusni_nadzif>ping 2.2.2.20

Pinging 2.2.2.20 with 32 bytes of data:
Reply from 2.2.2.20: bytes=32 time=4ms TTL=62
Reply from 2.2.2.20: bytes=32 time=1ms TTL=62
Reply from 2.2.2.20: bytes=32 time=2ms TTL=62
Reply from 2.2.2.20: bytes=32 time=2ms TTL=62

Ping statistics for 2.2.2.20:
 Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
 Minimum = 1ms, Maximum = 4ms, Average = 2ms

C:\Users\khusni_nadzif>ping 3.3.3.30

Pinging 3.3.3.30 with 32 bytes of data:
Reply from 3.3.3.30: bytes=32 time=3001ms TTL=63
Reply from 3.3.3.30: bytes=32 time=1ms TTL=63
Reply from 3.3.3.30: bytes=32 time=1ms TTL=63
Reply from 3.3.3.30: bytes=32 time=1ms TTL=63

Ping statistics for 3.3.3.30:
 Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 3001ms, Average = 751ms

Ahirnya untuk masing-masing jaringan local dibawah router bisa saling terhubung menggunakan dynamic routing (ospf), untuk kegiatan monitoring bisa akses winbox dari network NMS yang telah di konfigurasi sebelumnya seperi gambar dibawah. 🙂

 

Advertisements

Author: admin@khsnndzf

Good People

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 )

Google+ photo

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

Connecting to %s