Monthly Archives: October 2011
Routing RIPv2 di Mikrotik
Teori mengenai RIP silahkan Anda baca di tautan ini http://id.wikipedia.org/wiki/Routing_Information_Protocol
Biasa namanya ngoprek harus banyak baca dan diskusi. Dan saya selalu megang prinsip seperti ini, sebelum mencoba jangan pernah bertanya, kalau sudah mentok baru bertanya di FMI (Forum Mikrotik Indonesia) http://www.forummikrotik.com/showthread.php/20253-Router-neighbor-pada-RIP-ga-bisa-koneksi-ke-Internet
Pengertian Simpelnya: RIP Menggunakan metoda distance vector dan hop count sebagai suatu metric cost untuk mengetahui network
R1
[admin@MikroTik] > ip route print
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-STATE GATEWAY DISTANCE INTERFACE
0 A S 0.0.0.0/0 reachable 192.168.1.21 1 ether2
1 ADC 10.0.0.0/8 10.0.0.1 0 ether1
2 ADr 172.16.0.0/16 reachable 10.0.0.2 120 ether1
3 ADC 192.168.1.0/24 192.168.1.1 0 ether2
4 DC 192.168.1.0/24 192.168.1.37 0 ether3
[admin@MikroTik] > ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade out-interface=ether3
[admin@MikroTik] > /routing rip interface print
Flags: I - invalid, X - disabled, P - passive
# INTERFACE SEND RECEIVE AUTHENTICATION AUTHENTICATION-KEY
0 ether1 v2 v1-2 none
[admin@MikroTik] > /routing rip neighbor print
Flags: X - disabled
# ADDRESS
0 10.0.0.2
[admin@MikroTik] > /routing rip print
distribute-default: never
redistribute-static: no
redistribute-connected: yes
redistribute-ospf: no
redistribute-bgp: no
metric-default: 1
metric-static: 15
metric-connected: 1
metric-ospf: 1
metric-bgp: 1
update-timer: 30s
timeout-timer: 3m
garbage-timer: 2m
[admin@MikroTik] > /routing rip route print
Flags: C - connect, S - static, R - rip, O - ospf, B - bgp
# PREFIX GATEWAY FROM METRIC TIMEOUT
0 C 10.0.0.0/8 1
1 R 172.16.0.0/16 10.0.0.2 2 2m47s
2 C 192.168.1.0/24Seting NAT pada router R1 pada interface ether3, supaya router R1 dapat terhubung dengan internet. Caranya seperti di bawah ini:
/ip firewall nat chain=srcnat action=masquerade out-interface=ether3Routing OSPF di Mikrotik
Silahkan baca teori OSPF pada link tautan ini http://www.scribd.com/doc/38620524/Multi-Area-OSPF
Implementasi pada Router Mikrotik versi 3.30
Konsep OSFP Area 0
R1
/ip address add address=192.168.1.37/24 interface=ether1
/ip address add address=10.10.10.1/30 interface=ether2
/ip address add address=10.10.11.1/30 interface=ether3
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.1.37/24 192.168.1.0 192.168.1.255 ether1
1 10.10.10.1/30 10.10.10.0 10.10.10.3 ether2
2 10.10.11.1/30 10.10.11.0 10.10.11.3 ether3
/routing ospf interface add interface=ether2 cost=10
/routing ospf interface add interface=ether3 cost=50
/routing ospf interface print
Flags: X - disabled, I - inactive, D - dynamic, P - passive
# INTERFACE COST PRIORITY NETWORK-TYPE AUTHENTICATION AUTHENTICATION-KEY
0 ether2 10 1 broadcast none
1 ether3 50 1 broadcast none
/routing ospf set distribute-default=always-as-type-1
/routing ospf set redistribute-connected=as-type-1
/routing ospf set redistribute-static=as-type-1
/routing ospf print
router-id: 0.0.0.0
distribute-default: always-as-type-1
redistribute-connected: as-type-1
redistribute-static: as-type-1
redistribute-rip: no
redistribute-bgp: no
metric-default: 1
metric-connected: 20
metric-static: 20
metric-rip: 20
metric-bgp: 20
mpls-te-area: unspecified
mpls-te-router-id: unspecified
/routing ospf network add network=10.10.10.0/30 area=backbone
/routing ospf network add network=10.10.11.0/30 area=backbone
/routing ospf network print
Flags: X - disabled, I - invalid
# NETWORK AREA
0 10.10.11.0/30 backbone
1 10.10.10.0/30 backbone
/routing ospf route print
# DESTINATION STATE COST GATEWAY INTERFACE
0 0.0.0.0/0 imported 1 0.0.0.0
1 10.10.10.0/30 intra-area 10 0.0.0.0 ether2
2 10.10.11.0/30 intra-area 50 0.0.0.0 ether3
3 10.10.12.0/30 intra-area 110 10.10.10.2 ether2
4 192.168.1.0/24 imported 20 0.0.0.0
5 192.168.2.0/24 ext-1 70 10.10.11.2 ether3
6 192.168.3.0/24 ext-1 30 10.10.10.2 ether2
/ip route print
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-STATE GATEWAY DISTANCE INTERFACE
0 A S 0.0.0.0/0 reachable 192.168.1.21 1 ether1
1 ADC 10.10.10.0/30 10.10.10.1 0 ether2
2 ADC 10.10.11.0/30 10.10.11.1 0 ether3
3 ADo 10.10.12.0/30 reachable 10.10.10.2 110 ether2
4 ADC 192.168.1.0/24 192.168.1.37 0 ether1
5 ADo 192.168.2.0/24 reachable 10.10.11.2 110 ether3
6 ADo 192.168.3.0/24 reachable 10.10.10.2 110 ether2Supaya Router R1 dapat berkomunikasi dengan Internet maka harus ditambhakan NAT pada Router R1 dengan cara masukan perintah dibawah ini:
/ip firewall nat add action=masquerade out-interface=ether1 chain: srcnat




