You are on page 1of 4

Router R1

==================================
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.

Konfigurasi interface
===================================
Router(config)#hostname R1
R1(config)#int g0/1
R1(config-if)#ip add 192.168.0.1 255.255.255.0
R1(config-if)#no sh

R1(config)#int g0/0
R1(config-if)#ip add 30.56.164.1 255.255.255.252
R1(config-if)#no sh
R1(config-if)#ex

Konfigurasi Routing Protocol OSPF


===================================
R1(config)#router ospf 1
R1(config-router)#net 30.56.164.0 0.0.0.3 area 0 (0.0.0.3 wildcard dari 255.255.255.0)
R1(config-router)#net 192.168.0.0 0.0.0.255 area 0 (0.0.0.255 wildcard dari 255.255.255.0)
R1(config-router)#^Z
R1#

Validasi OSPF
===================================
R1#sh ip pr

Routing Protocol is "ospf 1"


Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.0.1
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
30.56.164.0 0.0.0.3 area 0
192.168.0.0 0.0.0.255 area 0
Routing Information Sources:
Gateway Distance Last Update
192.168.0.1 110 00:00:14
Distance: (default is 110)

R1#sh ip ro
Codes: L - local, 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, E - EGP
i - IS-IS, 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

192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks


C 192.168.0.0/24 is directly connected, GigabitEthernet0/1
L 192.168.0.1/32 is directly connected, GigabitEthernet0/1

R1#sh ip ospf int

GigabitEthernet0/1 is up, line protocol is up


Internet address is 192.168.0.1/24, Area 0
Process ID 1, Router ID 192.168.0.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State WAITING, Priority 1
No designated router on this network
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:00
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
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)
R1#sh ip ospf data
R1#sh ip ospf database
OSPF Router with ID (192.168.0.1) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


192.168.0.1 192.168.0.1 44 0x80000001 0x00b75e 1

R1#sh ip ospf neig


Ethernet IEEE 802.3
FastEthernet FastEthernet IEEE 802.3
GigabitEthernet GigabitEthernet IEEE 802.3z
Loopback Loopback interface
Serial Serial
detail detail of all neighbors
<cr>

Router R2
==================================

Konfigurasi interface
===================================
Router(config)#hostname R1
R1(config)#int g0/1
R1(config-if)#ip add 110.200.200.1 255.255.255.248
R1(config-if)#no sh

R1(config)#int g0/0
R1(config-if)#ip add 30.56.164.2 255.255.255.252
R1(config-if)#no sh
R2(config-if)#ex

Konfigurasi Routing Protocol OSPF


===================================
R2(config)#router ospf 1
R2(config-router)#net 30.56.164.0 0.0.0.3 area 0  wildcard dari 255.255.255.252
R2(config-router)#net 110.200.200.0 0.0.0.7 area 0  wildcard dari 255.255.255.248
R2(config-router)#ex
R2(config)#ex
R2#

Validasi OSPF
===================================
R2#sh ip pr

Routing Protocol is "ospf 1"


Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 110.200.200.1
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
30.56.164.0 0.0.0.3 area 0
110.200.200.0 0.0.0.7 area 0
Routing Information Sources:
Gateway Distance Last Update
110.200.200.1 110 00:00:13
192.168.0.1 110 00:00:50
Distance: (default is 110)

R2#sh ip ro
Codes: L - local, 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, E - EGP
i - IS-IS, 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

30.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


C 30.56.164.0/30 is directly connected, GigabitEthernet0/0
L 30.56.164.2/32 is directly connected, GigabitEthernet0/0
110.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 110.200.200.0/29 is directly connected, GigabitEthernet0/1
L 110.200.200.1/32 is directly connected, GigabitEthernet0/1
O 192.168.0.0/24 [110/2] via 30.56.164.1, 00:00:51, GigabitEthernet0/0

R2#sh ip ospf int

GigabitEthernet0/0 is up, line protocol is up


Internet address is 30.56.164.2/30, Area 0
Process ID 1, Router ID 110.200.200.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 192.168.0.1, Interface address 30.56.164.1
Backup Designated Router (ID) 110.200.200.1, Interface address 30.56.164.2
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:00
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
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.0.1 (Designated Router)

R2#sh ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
192.168.0.1 1 FULL/DR 00:00:39 30.56.164.1 GigabitEthernet0/0

R2#

You might also like