Konfigurasi Basic Multi Area OSPF (MikroTik Base)
Konfigurasi pada R1 :
[admin@R1] > routing ospf interface add interface=ether1 [admin@R1] > routing ospf network add network=192.168.10.0/24 area=backbone [admin@R1] > routing ospf network add network=10.10.10.0/30 area=backbone [admin@R1] > routing ospf network print Flags: X – disabled, I – invalid # NETWORK AREA 0 192.168.10.0/24 backbone 1 10.10.10.0/30 backbone
Konfigurasi pada R2 :
[admin@R2] > routing ospf interface add interface=ether1 [admin@R2] > routing ospf network add network=10.10.10.0/30 area=backbone [admin@R2] > routing ospf area add name=area1 area-id=1.1.1.1 [admin@R2] > routing ospf network add network=192.168.20.0/24 area=area1 [admin@R2] > routing ospf network add network=192.168.30.0/24 area=area1
Sedangkan tabel routing dan cost dari setiap network yang dikenal oleh R1 dan R2 adalah sebagai berikut :
[admin@R1] > 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 DISTANCE 0 ADC 10.10.10.0/30 10.10.10.1 ether1 0 1 ADC 192.168.10.0/24 192.168.10.1 ether2 0 2 ADo 192.168.20.0/24 10.10.10.2 110 3 ADo 192.168.30.0/24 10.10.10.2 110
[admin@R1] > routing ospf route print # DST-ADDRESS STATE COST GATEWAY INTERFACE 0 10.10.10.0/30 intra-area 10 0.0.0.0 ether1 1 192.168.10.0/24 intra-area 10 0.0.0.0 ether2 2 192.168.20.0/24 inter-area 20 10.10.10.2 ether1 3 192.168.30.0/24 inter-area 20
[admin@R2] > 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 DISTANCE 0 ADC 10.10.10.0/30 10.10.10.2 ether1 0 1 ADo 192.168.10.0/24 10.10.10.1 110 2 ADC 192.168.20.0/24 192.168.20.1 ether2 0 3 ADC 192.168.30.0/24 192.168.30.1 ether3 0
[admin@R2] > routing ospf route print # DST-ADDRESS STATE COST GATEWAY INTERFACE 0 10.10.10.0/30 intra-area 10 0.0.0.0 ether1 1 192.168.10.0/24 intra-area 20 10.10.10.1 ether1 2 192.168.20.0/24 intra-area 10 0.0.0.0 ether2 3 192.168.30.0/24 intra-area 10 Untuk melihat area pada setiap router dapat digunakan perintah berikut :
[admin@R1] > routing ospf area print Flags: X – disabled, I – invalid # NAME AREA-ID TYPE DEFAULT-COST 0 backbone [admin@R2] > routing ospf area print Flags: X – disabled, I – invalid # NAME AREA-ID TYPE DEFAULT-COST 0 backbone 0.0.0.0 default 1 area1 1.1.1.1 default
{ 0 komentar... Views All / Send Comment! }
Posting Komentar