OSPF Routing (Lab)
OSPF Routing (Lab)
Topology
Tabel Addressing
Device Interface IP Address Subnet Mask Gateway
R1 GigabitEthernet0/0 192.168.1.254 255.255.255.0 N/A
GigabitEthernet0/1 12.12.12.1 255.255.255.0 N/A
Lo1 172.16.1.1 255.255.255.0 N/A
Lo2 172.16.2.2 255.255.255.0 N/A
R2 GigabitEthernet0/0 192.168.2.254 255.255.255.0 N/A
GigabitEthernet0/1 12.12.12.2 255.255.255.0 N/A
Lo1 172.16.3.3 255.255.255.0 N/A
Lo2 172.16.4.4 255.255.255.0 N/A
R3 GigabitEthernet0/0 192.168.3.254 255.255.255.0 N/A
Serial 0/3/0 12.12.10.2 255.255.255.0 N/A
Serial 0/3/1 12.12.11.2 255.255.255.0 N/A
S1 N/A VLAN 1 N/A N/A
S2 N/A VLAN 1 N/A N/A
S3 N/A VLAN 1 N/A N/A
Laptop1 NIC 192.168.1.1 255.255.255.0 192.168.1.254
TFTPServer1 NIC 192.168.1.11 255.255.255.0 192.168.1.254
Laptop2 NIC 192.168.2.1 255.255.255.0 192.168.2.254
TFTPServer2 NIC 192.168.2.11 255.255.255.0 192.168.2.254
1
1. Setting OSPF di Router1
Router3(config)#router ospf 1
Router3(config-router)#network 192.168.3.0 0.0.0.255 area 0
Router3(config-router)#network 12.12.10.0 0.0.0.255 area 0
Router3(config-router)#network 12.12.11.0 0.0.0.255 area 0
Router3(config-router)#
Router1(config-router)#do sh ip route
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
2
C 172.16.2.0/24 is directly connected, Loopback2
L 172.16.2.2/32 is directly connected, Loopback2
O 172.16.3.3/32 [110/2] via 12.12.12.2, 00:02:51, GigabitEthernet0/1
O 172.16.4.4/32 [110/2] via 12.12.12.2, 00:02:41, GigabitEthernet0/1
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0
L 192.168.1.254/32 is directly connected, GigabitEthernet0/0
O 192.168.2.0/24 [110/2] via 12.12.12.2, 00:03:20, GigabitEthernet0/1
Router1(config-router)#
Router2#sh ip route
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
Router2#
3
6. Show ip route (OSPF) di Router3
Router3#sh ip route
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
Router3#
4
Router2#
Router1#sh ip protocols
Router1#
5
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
12.12.12.2 172.16.4.4 1143 0x80000001 0x00f4f6
Router1#
Router1(config)#router ospf 1
Router1(config-router)#rou
Router1(config-router)#router-id 111.111.111.111
Router1(config-router)#Reload or use "clear ip ospf process" command, for this to take effect
Router1(config-router)#
13. Hasil reset router id & tampilkan informasi di neighbor (setelah router2 & router3 di set
id+reset)
Router1(config)#router ospf 1
Router1(config-router)#passive-interface gigabitEthernet 0/0
Router1#sh ip protocols
6
Incoming update filter list for all interfaces is not set
Router ID 111.111.111.111
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
12.12.12.0 0.0.0.255 area 0
192.168.1.0 0.0.0.255 area 0
172.16.1.0 0.0.0.255 area 0
172.16.2.0 0.0.0.255 area 0
12.12.10.0 0.0.0.255 area 0
Passive Interface(s):
GigabitEthernet0/0
Routing Information Sources:
Gateway Distance Last Update
111.111.111.111 110 00:04:20
172.16.2.2 110 00:10:05
172.16.4.4 110 00:04:44
192.168.3.254 110 00:06:07
222.222.222.222 110 00:04:20
233.233.233.233 110 00:04:20
Distance: (default is 110)
Router1#
7
No designated router on this network
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
No Hellos (Passive interface)
Index 2/2, 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)
Loopback1 is up, line protocol is up
Internet address is 172.16.1.1/24, Area 0
Process ID 1, Router ID 111.111.111.111, Network Type LOOPBACK, Cost: 1
Loopback interface is treated as a stub Host
Loopback2 is up, line protocol is up
Internet address is 172.16.2.2/24, Area 0
Process ID 1, Router ID 111.111.111.111, Network Type LOOPBACK, Cost: 1
Loopback interface is treated as a stub Host
Serial0/3/0 is up, line protocol is up
Internet address is 12.12.10.1/24, Area 0
Process ID 1, Router ID 111.111.111.111, Network Type POINT-TO-POINT, Cost: 64
Transmit Delay is 1 sec, State POINT-TO-POINT, Priority 0
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:01
Index 5/5, 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 233.233.233.233
Suppress hello for 0 neighbor(s)
Router1#
*Router1
Router1(config)#interface lo1
Router1(config-if)#ip ospf network point-to-point
Router1(config-if)#interface lo2
Router1(config-if)#ip ospf network point-to-point
Router1(config-if)#
8
*Router2
Router2(config)#interface lo1
Router2(config-if)#ip ospf network point-to-point
Router2(config-if)#interface lo2
Router2(config-if)#ip ospf network point-to-point