0% found this document useful (0 votes)
26 views9 pages

OSPF Configuration for 12.12.12.1

The document describes the configuration of OSPF routing on three routers - R1, R2, and R3. It includes the interface IP addresses and OSPF configurations on each router. It also shows the OSPF neighbor relationships, routing tables, and database information exchanged between the routers after OSPF is configured.

Uploaded by

John Sherlock
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views9 pages

OSPF Configuration for 12.12.12.1

The document describes the configuration of OSPF routing on three routers - R1, R2, and R3. It includes the interface IP addresses and OSPF configurations on each router. It also shows the OSPF neighbor relationships, routing tables, and database information exchanged between the routers after OSPF is configured.

Uploaded by

John Sherlock
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Routing OSPF

Topology

Tabel Addressing
Device Interface IP Address Subnet Mask Gateway
R1 GigabitEthernet0/0 [Link] [Link] N/A
GigabitEthernet0/1 [Link] [Link] N/A
Lo1 [Link] [Link] N/A
Lo2 [Link] [Link] N/A
R2 GigabitEthernet0/0 [Link] [Link] N/A
GigabitEthernet0/1 [Link] [Link] N/A
Lo1 [Link] [Link] N/A
Lo2 [Link] [Link] N/A
R3 GigabitEthernet0/0 [Link] [Link] N/A
Serial 0/3/0 [Link] [Link] N/A
Serial 0/3/1 [Link] [Link] 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 [Link] [Link] [Link]
TFTPServer1 NIC [Link] [Link] [Link]
Laptop2 NIC [Link] [Link] [Link]
TFTPServer2 NIC [Link] [Link] [Link]

1
1. Setting OSPF di Router1

Router1(config)#!setting OSPF di Router1


Router1(config)#router ospf 1
Router1(config-router)#network [Link] [Link] area 0
Router1(config-router)#network [Link] [Link] area 0
Router1(config-router)#network [Link] [Link] area 0
Router1(config-router)#

2. Setting OSPF di Router2

Router2(config)#!Setting OSPF di Router2


Router2(config)#router ospf 1
Router2(config-router)#network [Link] [Link] area 0
Router2(config-router)#network [Link] [Link] area 0

Router2(config-router)#network [Link] [Link] area 0


Router2(config-router)#network [Link] [Link] area 0

3. Setting OSPF di Router3

Router3(config)#router ospf 1
Router3(config-router)#network [Link] [Link] area 0
Router3(config-router)#network [Link] [Link] area 0
Router3(config-router)#network [Link] [Link] area 0
Router3(config-router)#

4. Show ip route (OSPF) di Router1

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

Gateway of last resort is not set

[Link]/8 is variably subnetted, 4 subnets, 2 masks


C [Link]/24 is directly connected, Serial0/3/0
L [Link]/32 is directly connected, Serial0/3/0
C [Link]/24 is directly connected, GigabitEthernet0/1
L [Link]/32 is directly connected, GigabitEthernet0/1
[Link]/16 is variably subnetted, 6 subnets, 2 masks
C [Link]/24 is directly connected, Loopback1
L [Link]/32 is directly connected, Loopback1

2
C [Link]/24 is directly connected, Loopback2
L [Link]/32 is directly connected, Loopback2
O [Link]/32 [110/2] via [Link], 00:02:51, GigabitEthernet0/1
O [Link]/32 [110/2] via [Link], 00:02:41, GigabitEthernet0/1
[Link]/24 is variably subnetted, 2 subnets, 2 masks
C [Link]/24 is directly connected, GigabitEthernet0/0
L [Link]/32 is directly connected, GigabitEthernet0/0
O [Link]/24 [110/2] via [Link], 00:03:20, GigabitEthernet0/1
Router1(config-router)#

5. Show ip route (OSPF) di Router2

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

Gateway of last resort is not set

[Link]/8 is variably subnetted, 5 subnets, 2 masks


O [Link]/24 [110/65] via [Link], 00:06:43, GigabitEthernet0/1
C [Link]/24 is directly connected, Serial0/3/0
L [Link]/32 is directly connected, Serial0/3/0
C [Link]/24 is directly connected, GigabitEthernet0/1
L [Link]/32 is directly connected, GigabitEthernet0/1
[Link]/16 is variably subnetted, 6 subnets, 2 masks
O [Link]/32 [110/2] via [Link], 00:11:57, GigabitEthernet0/1
O [Link]/32 [110/2] via [Link], 00:11:57, GigabitEthernet0/1
C [Link]/24 is directly connected, Loopback1
L [Link]/32 is directly connected, Loopback1
C [Link]/24 is directly connected, Loopback2
L [Link]/32 is directly connected, Loopback2
O [Link]/24 [110/2] via [Link], 00:11:57, GigabitEthernet0/1
[Link]/24 is variably subnetted, 2 subnets, 2 masks
C [Link]/24 is directly connected, GigabitEthernet0/0
L [Link]/32 is directly connected, GigabitEthernet0/0
O [Link]/24 [110/65] via [Link], 00:02:33, Serial0/3/0

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

Gateway of last resort is not set

[Link]/8 is variably subnetted, 5 subnets, 2 masks


C [Link]/24 is directly connected, Serial0/3/0
L [Link]/32 is directly connected, Serial0/3/0
C [Link]/24 is directly connected, Serial0/3/1
L [Link]/32 is directly connected, Serial0/3/1
O [Link]/24 [110/65] via [Link], 00:03:14, Serial0/3/0
[110/65] via [Link], 00:03:14, Serial0/3/1
[Link]/32 is subnetted, 4 subnets
O [Link]/32 [110/65] via [Link], 00:07:18, Serial0/3/0
O [Link]/32 [110/65] via [Link], 00:07:18, Serial0/3/0
O [Link]/32 [110/65] via [Link], 00:03:14, Serial0/3/1
O [Link]/32 [110/65] via [Link], 00:03:14, Serial0/3/1
S [Link]/24 [1/0] via [Link]
S [Link]/24 [1/0] via [Link]
[Link]/24 is variably subnetted, 2 subnets, 2 masks
C [Link]/24 is directly connected, GigabitEthernet0/0
L [Link]/32 is directly connected, GigabitEthernet0/0

Router3#

7. Tampilkan informasi Neighbor di Router1

Router1#sh ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
[Link] 0 FULL/ - 00:00:31 [Link] Serial0/3/0
[Link] 1 FULL/DR 00:00:31 [Link] GigabitEthernet0/1
Router1#

8. Tampilkan informasi Neighbor di Router2

Router2#sh ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
[Link] 0 FULL/ - 00:00:33 [Link] Serial0/3/0
[Link] 1 FULL/BDR 00:00:33 [Link] GigabitEthernet0/1

4
Router2#

9. Tampilkan informasi Neighbor di Router3

Router3#sh ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
[Link] 0 FULL/ - 00:00:36 [Link] Serial0/3/1
[Link] 0 FULL/ - 00:00:36 [Link] Serial0/3/0

**selanjut nya hanya Router1 yang ditampilkan

10. Tampilkan informasi routing protocol di Router1:

Router1#sh ip protocols

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 [Link]
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
[Link] [Link] area 0
[Link] [Link] area 0
[Link] [Link] area 0
[Link] [Link] area 0
[Link] [Link] area 0
Routing Information Sources:
Gateway Distance Last Update
[Link] 110 00:09:39
[Link] 110 00:05:40
[Link] 110 00:05:40
Distance: (default is 110)

Router1#

11. Tampilkan informasi OSPF Database

Router1#sh ip ospf database


OSPF Router with ID ([Link]) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


[Link] [Link] 814 0x8000000b 0x006fa2 6
[Link] [Link] 575 0x8000000a 0x0010ee 6
[Link] [Link] 575 0x8000000a 0x00bef7 5

5
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
[Link] [Link] 1143 0x80000001 0x00f4f6

12. Tampilkan informasi Routing table spesifik OSPF

Router1#sh ip route ospf


[Link]/8 is variably subnetted, 5 subnets, 2 masks
O [Link] [110/65] via [Link], 00:10:47, GigabitEthernet0/1
[Link]/16 is variably subnetted, 6 subnets, 2 masks
O [Link] [110/2] via [Link], 00:20:01, GigabitEthernet0/1
O [Link] [110/2] via [Link], 00:20:01, GigabitEthernet0/1
O [Link] [110/2] via [Link], 00:20:01, GigabitEthernet0/1
O [Link] [110/65] via [Link], 00:14:36, Serial0/3/0

Router1#

Setting Router ID Router1:

Router1(config)#router ospf 1
Router1(config-router)#rou
Router1(config-router)#router-id [Link]
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#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


[Link] 0 FULL/ - 00:00:31 [Link] Serial0/3/0
[Link] 1 FULL/DR 00:00:32 [Link] GigabitEthernet0/1
Router1#

14. Setting passive-interface di Router1 di interface yang terkoneksi ke Network A (internal)

Router1(config)#router ospf 1
Router1(config-router)#passive-interface gigabitEthernet 0/0

15. Hasilnya ada lah (show ip protocols)

Router1#sh ip protocols

Routing Protocol is "ospf 1"


Outgoing update filter list for all interfaces is not set

6
Incoming update filter list for all interfaces is not set
Router ID [Link]
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
[Link] [Link] area 0
[Link] [Link] area 0
[Link] [Link] area 0
[Link] [Link] area 0
[Link] [Link] area 0
Passive Interface(s):
GigabitEthernet0/0
Routing Information Sources:
Gateway Distance Last Update
[Link] 110 00:04:20
[Link] 110 00:10:05
[Link] 110 00:04:44
[Link] 110 00:06:07
[Link] 110 00:04:20
[Link] 110 00:04:20
Distance: (default is 110)

Router1#

16. Tampilkan interface OSPF:

Router1#sh ip ospf interface

GigabitEthernet0/1 is up, line protocol is up


Internet address is [Link]/24, Area 0
Process ID 1, Router ID [Link], Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) [Link], Interface address [Link]
Backup Designated Router (ID) [Link], Interface address [Link]
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:06
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 [Link]
Suppress hello for 0 neighbor(s)
GigabitEthernet0/0 is up, line protocol is up
Internet address is [Link]/24, Area 0
Process ID 1, Router ID [Link], Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State WAITING, Priority 1

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 [Link]/24, Area 0
Process ID 1, Router ID [Link], Network Type LOOPBACK, Cost: 1
Loopback interface is treated as a stub Host
Loopback2 is up, line protocol is up
Internet address is [Link]/24, Area 0
Process ID 1, Router ID [Link], 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 [Link]/24, Area 0
Process ID 1, Router ID [Link], 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 [Link]
Suppress hello for 0 neighbor(s)
Router1#

17. Mengubah Interface loopback di Router1 & Router2 menjadi Point-to-Point:

*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

You might also like