Konfigurasi Multi Area OSPF dengan Cisco dan Mikrotik
Konfigurasi Multi Area OSPF dengan Cisco dan Mikrotik
Pada lab ini nanti kita akan membuat dua area OSPF, yaitu area 1 dan
area backbone. Kedua area ini dihubungkan oleh R1 yang sekaligus berfungsi
sebagai ABR (Area Border Router).
Langkah pertama adalah konfigurasi ip address dari masing-masing
Router setelah itu lakukan seperti pada langkah dibawah ini
Aktifkan
Routing Protocol OSPF di Mikrotik
[admin@Mikrotik] >routing ospf interface
[admin@Mikrotik] /routing ospf interface> add interface=ether2 (Pada Mikrotik GNS3 interfacenya e1)
[admin@Mikrotik] /routing ospf interface>pr
Flags: X - disabled, I - inactive, D - dynamic, P - passive
# INTERFACE COST PRIORITY NETWORK-TYPE AUTHENTICATION AUTHENTICATION-KEY
0 ether1 10
1 Default none
Konfigurasi Routing OSPF Instance dan Router-ID R1
[admin@Mikrotik] >routing ospf instance set default router-id=10.1.1.1
[admin@Mikrotik] >routing ospf instance pr
Flags: X - disabled, * - default
0
* name="default" router-id=10.1.1.1 distribute-default=never
redistribute-connected=no
redistribute-static=no
redistribute-rip=no redistribute-bgp=no redistribute-other-ospf=no
metric-default=1
metric-connected=20 metric-static=20 metric-rip=20 metric-bgp=auto
metric-other-ospf=auto
in-filter=ospf-in out-filter=ospf-out
Advertise
network di Mikrotik
[admin@Mikrotik] >routing ospf network
[admin@Mikrotik] /routing ospf network >add network=10.10.20.0/24
area=backbone
[admin@Mikrotik] /routing ospf network >add network=10.10.50.0/24
area=backbone
[admin@MikroTik] > routing ospf network pr
Flags: X - disabled, I - invalid
#
NETWORK AREA
0
10.10.20.0/24 backbone
1
10.10.50.0/24 backbone
Konfigurasi OSPF di Cisco R1 dan Advertise network R1
R1(config-if)#router ospf 1
R1(config-router)#router-id 10.2.2.2
R1(config-router)#network 10.10.20.0 0.0.0.255 area 0
R1(config-router)#network 10.10.40.0 0.0.0.255 area 0
R1(config-router)#network 10.10.60.0 0.0.0.255 area 1
Konfigurasi OSPF di Cisco R2 dan Advertise network R2
R1(config-if)#router ospf 1
R1(config-router)#router-id 10.3.3.3
R1(config-router)#network 10.10.60.0 0.0.0.255 area 1
R1(config-router)#network 10.10.60.0 0.0.0.255 area 2
Konfigurasi VPCS untuk PC1, PC2 dan PC3
PC1> ip 10.10.50.2/24 10.10.50.1
Checking for duplicate address...
PC1 : 10.10.50.2 255.255.255.0 gateway 10.10.50.1
PC2> ip 10.10.40.2/24 10.10.40.1
Checking for duplicate address...
PC1 : 10.10.40.2 255.255.255.0 gateway 10.10.40.1
PC3> ip 10.10.70.2/24 10.10.70.1
Checking for duplicate address...
PC1 : 10.10.70.2 255.255.255.0 gateway 10.10.70.1
Tahap Pengujian
Untuk dapat mengetahui apakah routing OSPF sudah melakukan pekerjaannya untuk mengirimkan LSA (Link State Advertisement) dan mendapatkan informasi network dari seluruh routing table di masing-masing router, maka kita cek routing table masing masing router
Routing table di Mikrotik
[admin@MikroTik] > ip ro pr
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 ADC 10.10.10.0/24 10.10.10.1 ether1 0
1 ADC 10.10.20.0/24 10.10.20.1 ether2 0
2 ADo 10.10.40.0/24 10.10.20.2
110
3 ADC 10.10.50.0/24 10.10.50.1 ether3 0
4 ADo 10.10.60.0/24 10.10.20.2
110
5 ADo 10.10.70.0/24 10.10.20.2 10
Routing table di R1
R1#sh ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, 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
i - IS-IS, su -
IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter
area, * - candidate default, U - per-user static route
o - ODR, P -
periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/24 is
subnetted, 5 subnets
C 10.10.20.0 is
directly connected, FastEthernet0/0
C 10.10.40.0 is
directly connected, FastEthernet2/0
O 10.10.50.0
[110/11] via 10.10.20.1, 01:12:33, FastEthernet0/0
C 10.10.60.0 is
directly connected, FastEthernet1/0
O 10.10.70.0 [110/2] via 10.10.60.2,
01:12:33, FastEthernet1/0
Routing table di R2
R2(config-router)#do sh ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, 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
i - IS-IS, su -
IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter
area, * - candidate default, U - per-user static route
o - ODR, P -
periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/24 is
subnetted, 5 subnets
O IA 10.10.20.0
[110/2] via 10.10.60.1, 01:13:26, FastEthernet1/0
O IA 10.10.40.0
[110/2] via 10.10.60.1, 01:13:26, FastEthernet1/0
O IA 10.10.50.0
[110/12] via 10.10.60.1, 01:13:26, FastEthernet1/0
C 10.10.60.0 is
directly connected, FastEthernet1/0
C 10.10.70.0 is directly connected,
FastEthernet0/0
TEST PING DAN TRACER
DARI PC1 ke PC3
PC1> trace 10.10.70.2
trace to 10.10.70.2, 8 hops max, press Ctrl+C to stop
1 10.10.50.1
0.500 ms 1.501 ms 0.500 ms
2 10.10.20.2
7.001 ms 10.501 ms 16.002 ms
3 10.10.60.2
82.511 ms 26.003 ms 26.003 ms
4 *10.10.70.2
92.012 ms (ICMP type:3, code:3, Destination port unreachable)
PC1> ping 10.10.70.2
84 bytes from 10.10.70.2 icmp_seq=1 ttl=61 time=41.005 ms
84 bytes from 10.10.70.2 icmp_seq=2 ttl=61 time=35.004 ms
84 bytes from 10.10.70.2 icmp_seq=3 ttl=61 time=43.506 ms
84 bytes from 10.10.70.2 icmp_seq=4 ttl=61 time=58.007 ms
84 bytes from 10.10.70.2 icmp_seq=5 ttl=61 time=54.507 ms
TEST PING DAN TRACER
DARI PC 3 ke PC1
PC3>
tracer 10.10.50.2
trace
to 10.10.50.2, 8 hops max, press Ctrl+C to stop
1
10.10.70.1 10.001 ms 7.001 ms
11.501 ms
2
10.10.60.1 130.016 ms 37.005 ms
71.009 ms
3
10.10.20.1 56.507 ms 38.505 ms
58.007 ms
4
*10.10.50.2 71.009 ms (ICMP
type:3, code:3, Destination port unreachable)
PC3>
ping 10.10.50.2
84
bytes from 10.10.50.2 icmp_seq=1 ttl=61 time=26.503 ms
84
bytes from 10.10.50.2 icmp_seq=2 ttl=61 time=55.007 ms
84
bytes from 10.10.50.2 icmp_seq=3 ttl=61 time=26.504 ms
84
bytes from 10.10.50.2 icmp_seq=4 ttl=61 time=55.007 ms
84
bytes from 10.10.50.2 icmp_seq=5 ttl=61 time=62.008 ms
--------------------------- TERIMA KASIH
-----------------------
Bagus blog & artikelnya pak, sangat bermanfaat untuk saya yg sedang fokus di bidang network... :)
BalasHapus