OSPF
Menggunkan Algoritma
Support VLSM
Administrative Distance vs Metric
Area OSPF ----> ini yang menbedakan dengan EGRP
Area reguler : 1,2
Area Backbone : 0
Fungsi Pembagian Area adalah untuk meminimalisir gangguan, rekomendasi 50-100
router
Tabel OSPF
Tabel neigghbors
Tabel routing
Tabel database
----------------------------------------------------------------------------------------
Roles of OSPF
ABR(Area Brother Router) adalah router yg terhubung ke backbone dan terhubung ke
reguler
Rumus Kalkulasi Cost : 100Mbps/bandwidth.
OSPF selalu mengirim paket setiap 10 sec (hello times)
Time antar router harus selalu sama
Def Dead Time adalah 40 sec
EGRP selalu mengirim paket setiap 05 sec
----------------------------------------------------------------------------------------
Roter ID
Status yang dimiliki oleh OSPF
Pannjang 32 bit
Default adalah ip paling tinggi
DR adalah ip tertinggi
BDR adalah ip tertinggi ke-2
Router ID tidak boleh sama antar Router
----------------------------------------------------------------------------------------
Process IP
Tidak boleh 0, selain itu bebas
command
sh ip ospf database
sh ip ospf neigh
---------------------------------------------------------------------------------------
Config OSPF
NXT-R1-Nurohman(config)#router ospf 10
NXT-R1-Nurohman(config-router)#network 192.168.1.0 0.0.0.255 area 0
NXT-R1-Nurohman(config-router)#network 10.10.10.0 0.0.0.255 area 0
cek
NXT-R1-Nurohman#show ip rou
NXT-R1-Nurohman#show ip route
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, 1 subnets
C 10.10.10.0 is directly connected, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/1
NXT-R1-Nurohman#show ip os
NXT-R1-Nurohman#show ip ospf ne
NXT-R1-Nurohman#show ip ospf neighbor
NXT-R1-Nurohman#show ip ospf int
NXT-R1-Nurohman#show ip ospf interface
FastEthernet0/0 is up, line protocol is up
Internet Address 10.10.10.1/24, Area 0
Process ID 10, Router ID 192.168.1.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.1.1, Interface address 10.10.10.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:01
Supports Link-local Signaling (LLS)
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
FastEthernet0/1 is up, line protocol is up
Internet Address 192.168.1.1/24, Area 0
Process ID 10, Router ID 192.168.1.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.1.1, Interface address 192.168.1.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:02
Supports Link-local Signaling (LLS)
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
NXT-R1-Nurohman#show ip ospf data
NXT-R1-Nurohman#show ip ospf database
OSPF Router with ID (192.168.1.1) (Process ID 10)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
192.168.1.1 192.168.1.1 532 0x80000002 0x002898 2
NXT-R1-Nurohman#show ip pro
NXT-R1-Nurohman#show ip protocols
Routing Protocol is "ospf 10"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.1.1
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
10.10.10.0 0.0.0.255 area 0
192.168.1.0 0.0.0.255 area 0
Reference bandwidth unit is 100 mbps
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 110)
cek config
interface FastEthernet0/0
description Connection to LAN-A-Nurohman
ip address 10.10.10.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
description Connection to NXT-R2
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
router ospf 10
log-adjacency-changes
network 10.10.10.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
--------------------------------------------------------------------------------
NXT-R1-Nurohman#sh ip ospf interface
FastEthernet0/0 is up, line protocol is up
Internet Address 10.10.10.1/24, Area 0
Process ID 10, Router ID 192.168.1.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.1.1, Interface address 10.10.10.1
Backup Designated router (ID) 192.168.2.3, Interface address 10.10.10.2
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:04
Supports Link-local Signaling (LLS)
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 2
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.2.3 (Backup Designated Router)
Suppress hello for 0 neighbor(s)
FastEthernet0/1 is up, line protocol is up
Internet Address 192.168.1.1/24, Area 0
Process ID 10, Router ID 192.168.1.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.1.1, Interface address 192.168.1.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:07
Supports Link-local Signaling (LLS)
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
-----------------------------------------------------------------------------------
OSPF MULTI AREA
NXT-R1-Nurohman#sh run
Building configuration...
Current configuration : 4932 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname NXT-R1-Nurohman
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$41U2$tbTRJNe0J5kWvyyI1Tvk90
!
no aaa new-model
memory-size iomem 25
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
key chain RIP
key 1
key-string 7 096267312D37363B25
!
crypto pki trustpoint TP-self-signed-2563553625
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-2563553625
revocation-check none
rsakeypair TP-self-signed-2563553625
!
!
crypto pki certificate chain TP-self-signed-2563553625
certificate self-signed 02
30820247 308201B0 A0030201 02020102 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 32353633 35353336 3235301E 170D3138 30353036 30353331
35355A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D32 35363335
35333632 3530819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100AF55 A923A920 429B8532 A07DA6EE 27473C38 B5D9E030 6507575C 49AFF7CB
9B5B2A99 9428F637 D26D7364 210FD07C 2F5B9C94 BBD916BE 17350C6B 46C6B879
C2B83F9F 122AD8B6 5A7FC721 EF3153B2 81FC363D 4CDDE5FB 07F76BBA D5A13004
7DE53452 80BBE165 883B23A0 745AA7D7 40E83825 EFD94442 D687C07F BCF648FE
19BD0203 010001A3 6F306D30 0F060355 1D130101 FF040530 030101FF 301A0603
551D1104 13301182 0F4E5854 2D52312D 4E75726F 686D616E 301F0603 551D2304
18301680 14218B68 84C42648 0EF2EE49 9B542F43 68ECFE1D 01301D06 03551D0E
04160414 218B6884 C426480E F2EE499B 542F4368 ECFE1D01 300D0609 2A864886
F70D0101 04050003 8181004E AC795081 67A95F68 E397BABD 08EE046D B8BA9653
354EBD83 A4309903 A4A6E1B8 A6D134F3 FC1378CA AF60FAAA 49FA5687 6026AA4D
057315B1 5ED7805E 6806CD72 54DCB94E 72DE03CB B8840044 98910FA8 BDF0FC30
E261EEB7 9323495D 1AF5E8F5 DF56C037 974A74E8 D184A6A0 5E0ED52B 5D74225B
57B30F1C 43CFA639 5C8AF0
quit
username maman privilege 7 password 7 141A13060D0A
!
!
!
!
!
!
interface Loopback1
no ip address
!
interface Loopback2
no ip address
!
interface Loopback3
ip address 172.16.3.10 255.255.255.0
!
interface Loopback4
ip address 172.16.4.10 255.255.255.0
!
interface FastEthernet0/0
description Connection to LAN-A-Nurohman
ip address 10.10.10.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
description Connection to NXT-R2
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
router ospf 10
log-adjacency-changes
network 10.10.10.0 0.0.0.255 area 0
network 172.16.3.0 0.0.0.255 area 2
network 172.16.4.0 0.0.0.255 area 2
network 192.168.1.0 0.0.0.255 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
banner motd ^C
!**************************************************************************!
! !
! WARNING: Access is restricted to authorized users only. !
! Unauthorized access is a violation of corporate security laws. !
! (nixtrain jakarta) !
! !
!**************************************************************************!
! !
! !
!**************************************************************************!
! | | !
! ||| ||| !
! .|| ||. .|| ||. !
! .:||| | |||:..:||| | |||:. !
! C i s c o S y s t e m s !
! !
! WARNING: You are connect to Access Network Infrastruktur. !
! Access is restricted to authorized users only. !
! Unauthorized access is a violation of corporate security laws. !
! ( nixtrain jakarta ) !
! ( Contact MIS Department For Further Information ) !
! !
!**************************************************************************!
!**************************************************************************!^C
!
line con 0
exec-timeout 5 0
password 7 1511021F0725282B26
login
line aux 0
line vty 0 4
exec-timeout 5 0
password 7 045802150C2E5F4B0A
login
!
scheduler allocate 20000 1000
end
NXT-R1-Nurohman#
NXT-R1-Nurohman#sh ip os
NXT-R1-Nurohman#sh ip ospf nei
NXT-R1-Nurohman#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.2.3 1 FULL/BDR 00:00:31 10.10.10.2 FastEthernet0/0
NXT-R1-Nurohman#sh ip ospf dat
NXT-R1-Nurohman#sh ip ospf database
OSPF Router with ID (192.168.1.1) (Process ID 10)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
192.168.1.1 192.168.1.1 957 0x80000008 0x009109 2
192.168.2.3 192.168.2.3 1274 0x80000007 0x00662D 2
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
10.10.10.1 192.168.1.1 1963 0x80000005 0x001DB4
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
172.16.1.3 192.168.2.3 1274 0x80000004 0x00B257
172.16.2.2 192.168.2.3 1274 0x80000004 0x00B158
172.16.3.10 192.168.1.1 957 0x80000004 0x00699A
172.16.4.10 192.168.1.1 957 0x80000004 0x005EA4
Router Link States (Area 2)
Link ID ADV Router Age Seq# Checksum Link count
192.168.1.1 192.168.1.1 957 0x80000005 0x009F11 2
0 Comments