OSPF SINGLE AREA

OSPF SINGLE AREA
OSPF  Merupakan protokol routing link state dan digunakan untuk menghubungkan router-router yang berada dalam satu Autonomous System (AS) sehingga protokol routing ini termasuk juga kategori Interior Gateway Protocol (IGP). Autonomous System itu sendiri merupakan kumpulan
router-router yang berada dibawah kendali administator dan strategi routing yang sama.
pertama kali deikembangkan pada tahun 1987 oleh Internet Engineering Task Force (IETF) dan yang pertama kali dipublikasikan adalah OSPFv1. OSPFv1 ini tidak pernah diimplementasikan dan selalu disempurnakan. Pada tahun 1991, OSPFv2 dipublikasikan oleh John Moy melalui RFC1247 dan juga selalu mengalami penyempurnaan.Berikut ini merupakan contoh konfigurasi OSPF SINGLE AREA

Topologi 

 
 

Langkah langkah konfigurasi


ROUTER 1
Router>en
Router#conf
Router#configure t
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int
Router(config)#interface fa
Router(config)#host
Router(config)#hostname ABHE-R1
ABHE-R1(config)#INT
ABHE-R1(config)#
ABHE-R1(config)#int
ABHE-R1(config)#interface fa
ABHE-R1(config)#interface fastEthernet0/0
ABHE-R1(config-if)#ip add
ABHE-R1(config-if)#ip address 10.10.10.1 255.255.255.0
ABHE-R1(config-if)#no sh
ABHE-R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
ABHE-R1(config-if)#ex
ABHE-R1(config)#int
ABHE-R1(config)#interface fa
ABHE-R1(config)#interface fastEthernet0/1
ABHE-R1(config-if)#ip add
ABHE-R1(config-if)#ip address 30.30.30.1 255.255.255.0
ABHE-R1(config-if)#no sh
ABHE-R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
ABHE-R1(config-if)#do wr
Building configuration...
[OK]
ABHE-R1(config-if)#ex
ABHE-R1(config)#router ospf 1
ABHE-R1(config-router)#network 10.10.10.0 0.0.0.255 are
ABHE-R1(config-router)#network 10.10.10.0 0.0.0.255 area 0
ABHE-R1(config-router)#network 30.30.30.0 0.0.0.255 ar
ABHE-R1(config-router)#network 30.30.30.0 0.0.0.255 area 0
ABHE-R1(config-router)#do wr




ROUTER2
Router#conf
Router#configure t
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet0/0
Router(config-if)#ip add
Router(config-if)#ip address 10.10.10.2 255.255.255.0
Router(config-if)#no sh
Router(config-if)#ex
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet0/1
Router(config-if)#ip add
Router(config-if)#ip address 20.20.20.1 255.255.255.0
Router(config-if)#no sh 
Router(config-if)#ex
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet1/0
Router(config-if)#ip add
Router(config-if)#ip address 40.40.40.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#do wr 
Router(config-if)#ex
Router(config)#rout
Router(config)#router ospf
Router(config)#router ospf 1
Router(config-router)#net
Router(config-router)#network 40.40.40.0 0.0.0.255
Router(config-router)#network 40.40.40.0 0.0.0.255 area 0
Router(config-router)#net
Router(config-router)#network 10.10.10.0 0.0.0.255 area 0
Router(config-router)#net
Router(config-router)#network 20.20.20.0 0.0.0.255 area 0
Router(config-router)#network 20.20.20.0 0.0.0.255 area 0
Router(config-router)#do wr

ROUTER 3

Router>en
Router#conf
Router#configure t
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet0/0
Router(config-if)#ip add
Router(config-if)#ip address 20.20.20.2 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#ex
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet0/1
Router(config-if)#ip add
Router(config-if)#ip address 50.50.50.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#rout
Router(config-if)#router
Router(config-if)#router os
Router(config-if)#ex
Router(config)#rout
Router(config)#router os
Router(config)#router ospf 1
Router(config-router)#net
Router(config-router)#network 50.50.50.0 0.0.0.255 area
Router(config-router)#network 50.50.50.0 0.0.0.255 area 0
Router(config-router)#net
Router(config-router)#network 20.20.20.0 0.0.0.255 area 0
Router(config-router)#do wr
Untuk semua switch tinggal di mode trunk saja
Switch(config)#interface fastEthernet0/1

Switch(config-if)#sw
Switch(config-if)#switchport acc
Switch(config-if)#switchport access m
Switch(config-if)#switchport access mo
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode t
Switch(config-if)#switchport mode trunk

Hasil nya ping dari pc 0 ke pc 1 seperti di bawah

0 Response

Posting Komentar

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel