Selasa, 25 Oktober 2016

Konfigurasi OSPF Multi Area




Pertama tama konfigurasi switch di mode trunk
SW 1
Switch>en
Switch#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#sw mo tr
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Switch(config-if)#ex

SW2
Switch>en
Switch#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#sw mo tr
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Switch(config-if)#ex

SW3



Switch>en
Switch#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#sw mo tr
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Switch(config-if)#ex

Setelah itu setting router
  
Konfigurasi R0
Router>en
Router#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 30.30.30.1 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 fa0/1
Router(config-if)#ip add 10.10.10.1 255.255.255.0
Router(config-if)#no sh

Konfigurasi R1
Router>en
Router#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Kevin
Kevin(config)#int fa0/1
Kevin(config-if)#ip add 10.10.10.2 255.255.255.0
Kevin(config-if)#no sh
Kevin(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
ex
Kevin(config)#int fa0/0
Kevin(config-if)#ip add 40.40.40.1 255.255.255.0
Kevin(config-if)#no sh
Kevin(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
Kevin(config-if)#ex
Kevin(config)#int fa1/0
Kevin(config-if)#ip add 20.20.20.1 255.255.255.0
Kevin(config-if)#no sh
Kevin(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
ex
Kevin(config)#ex

Konfigurasi R2
Router>en
Router#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 50.50.50.1 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
ex
Router(config)#int fa0/1
Router(config-if)#ip add 20.20.20.2 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)#ex

Kalau sudah setting routing pada router

R0
Kevin#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.

Kevin(config)#router ospf 1
Kevin(config-router)#network 10.10.10.0 0.0.0.255 area 10
Kevin(config-router)#network 30.30.30.0 0.0.0.255 area 10
Kevin(config-router)#

R1
Kevin#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Kevin(config)#router ospf 1
Kevin(config-router)#network 40.40.40.0 0.0.0.255 area 0
Kevin(config-router)#network 10.10.10.0 0.0.0.255 area 10
Kevin(config-router)#network 20.20.20.0 0.0.0.255 area 20
Kevin(config-router)#

R2
Router(config)#router ospf 1
Router(config-router)#network 20.20.20.0 0.0.0.255 area 20
Router(config-router)#network 50.50.50.0 0.0.0.255 area 20
Router(config-router)#

Jika sudah isi ip address pada pc

PC0

PC1

PC2
  
Jika sudah ping dari pc 0 ke pc 1 dan ke pc 2 seperti ini