Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
54 views

OSPF Routing (Lab)

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
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

OSPF Routing (Lab)

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
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Routing OSPF

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

Router1(config)#!setting OSPF di Router1


Router1(config)#router ospf 1
Router1(config-router)#network 12.12.12.0 0.0.0.255 area 0
Router1(config-router)#network 192.168.1.0 0.0.0.255 area 0
Router1(config-router)#network 172.16.1.0 0.0.0.255 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 12.12.12.0 0.0.0.255 area 0
Router2(config-router)#network 192.168.2.0 0.0.0.255 area 0

Router2(config-router)#network 172.16.3.0 0.0.0.255 area 0


Router2(config-router)#network 172.16.4.0 0.0.0.255 area 0

3. Setting OSPF di Router3

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)#

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

12.0.0.0/8 is variably subnetted, 4 subnets, 2 masks


C 12.12.10.0/24 is directly connected, Serial0/3/0
L 12.12.10.1/32 is directly connected, Serial0/3/0
C 12.12.12.0/24 is directly connected, GigabitEthernet0/1
L 12.12.12.1/32 is directly connected, GigabitEthernet0/1
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
C 172.16.1.0/24 is directly connected, Loopback1
L 172.16.1.1/32 is directly connected, Loopback1

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)#

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

12.0.0.0/8 is variably subnetted, 5 subnets, 2 masks


O 12.12.10.0/24 [110/65] via 12.12.12.1, 00:06:43, GigabitEthernet0/1
C 12.12.11.0/24 is directly connected, Serial0/3/0
L 12.12.11.1/32 is directly connected, Serial0/3/0
C 12.12.12.0/24 is directly connected, GigabitEthernet0/1
L 12.12.12.2/32 is directly connected, GigabitEthernet0/1
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
O 172.16.1.1/32 [110/2] via 12.12.12.1, 00:11:57, GigabitEthernet0/1
O 172.16.2.2/32 [110/2] via 12.12.12.1, 00:11:57, GigabitEthernet0/1
C 172.16.3.0/24 is directly connected, Loopback1
L 172.16.3.3/32 is directly connected, Loopback1
C 172.16.4.0/24 is directly connected, Loopback2
L 172.16.4.4/32 is directly connected, Loopback2
O 192.168.1.0/24 [110/2] via 12.12.12.1, 00:11:57, GigabitEthernet0/1
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.2.0/24 is directly connected, GigabitEthernet0/0
L 192.168.2.254/32 is directly connected, GigabitEthernet0/0
O 192.168.3.0/24 [110/65] via 12.12.11.2, 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

12.0.0.0/8 is variably subnetted, 5 subnets, 2 masks


C 12.12.10.0/24 is directly connected, Serial0/3/0
L 12.12.10.2/32 is directly connected, Serial0/3/0
C 12.12.11.0/24 is directly connected, Serial0/3/1
L 12.12.11.2/32 is directly connected, Serial0/3/1
O 12.12.12.0/24 [110/65] via 12.12.10.1, 00:03:14, Serial0/3/0
[110/65] via 12.12.11.1, 00:03:14, Serial0/3/1
172.16.0.0/32 is subnetted, 4 subnets
O 172.16.1.1/32 [110/65] via 12.12.10.1, 00:07:18, Serial0/3/0
O 172.16.2.2/32 [110/65] via 12.12.10.1, 00:07:18, Serial0/3/0
O 172.16.3.3/32 [110/65] via 12.12.11.1, 00:03:14, Serial0/3/1
O 172.16.4.4/32 [110/65] via 12.12.11.1, 00:03:14, Serial0/3/1
S 192.168.1.0/24 [1/0] via 12.12.10.1
S 192.168.2.0/24 [1/0] via 12.12.11.1
192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.3.0/24 is directly connected, GigabitEthernet0/0
L 192.168.3.254/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
192.168.3.254 0 FULL/ - 00:00:31 12.12.10.2 Serial0/3/0
172.16.4.4 1 FULL/DR 00:00:31 12.12.12.2 GigabitEthernet0/1
Router1#

8. Tampilkan informasi Neighbor di Router2

Router2#sh ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
192.168.3.254 0 FULL/ - 00:00:33 12.12.11.2 Serial0/3/0
172.16.2.2 1 FULL/BDR 00:00:33 12.12.12.1 GigabitEthernet0/1

4
Router2#

9. Tampilkan informasi Neighbor di Router3

Router3#sh ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
172.16.4.4 0 FULL/ - 00:00:36 12.12.11.1 Serial0/3/1
172.16.2.2 0 FULL/ - 00:00:36 12.12.10.1 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 172.16.2.2
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
Routing Information Sources:
Gateway Distance Last Update
172.16.2.2 110 00:09:39
172.16.4.4 110 00:05:40
192.168.3.254 110 00:05:40
Distance: (default is 110)

Router1#

11. Tampilkan informasi OSPF Database

Router1#sh ip ospf database


OSPF Router with ID (172.16.2.2) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


172.16.2.2 172.16.2.2 814 0x8000000b 0x006fa2 6
172.16.4.4 172.16.4.4 575 0x8000000a 0x0010ee 6
192.168.3.254 192.168.3.254 575 0x8000000a 0x00bef7 5

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

12. Tampilkan informasi Routing table spesifik OSPF

Router1#sh ip route ospf


12.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O 12.12.11.0 [110/65] via 12.12.12.2, 00:10:47, GigabitEthernet0/1
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
O 172.16.3.3 [110/2] via 12.12.12.2, 00:20:01, GigabitEthernet0/1
O 172.16.4.4 [110/2] via 12.12.12.2, 00:20:01, GigabitEthernet0/1
O 192.168.2.0 [110/2] via 12.12.12.2, 00:20:01, GigabitEthernet0/1
O 192.168.3.0 [110/65] via 12.12.10.2, 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 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#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


233.233.233.233 0 FULL/ - 00:00:31 12.12.10.2 Serial0/3/0
222.222.222.222 1 FULL/DR 00:00:32 12.12.12.2 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 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#

16. Tampilkan interface OSPF:

Router1#sh ip ospf interface

GigabitEthernet0/1 is up, line protocol is up


Internet address is 12.12.12.1/24, Area 0
Process ID 1, Router ID 111.111.111.111, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 172.16.4.4, Interface address 12.12.12.2
Backup Designated Router (ID) 111.111.111.111, Interface address 12.12.12.1
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 222.222.222.222
Suppress hello for 0 neighbor(s)
GigabitEthernet0/0 is up, line protocol is up
Internet address is 192.168.1.254/24, Area 0
Process ID 1, Router ID 111.111.111.111, 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 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#

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