Unit 4 OSPF Concepts and Configuration
Unit 4 OSPF Concepts and Configuration
Configuration
CIT22 - Mastery in Network
Administration
Course Content
● Introduction to OSPF
● Point-to-Point OSPF Networks
● Configuration of Single-Area OSPFv2
● Default Route Propagation
● Verify Single-Area OSPFv2
Introduction to OSPF
Review: Types of Routing Protocols
RIP - Routing Information
Protocol
Distance Vector
EIGRP - Enhanced Interior
Gateway Protocol
IGP
OSPF - Open Shortest Path
First
Link-State
IS-IS - Intermediate System
to Intermediate System
Ethernet Cost = 10
Review: LSA & LSDB Concepts
● LSAs - Link-state Advertisements
○ Are packets used by OSPF to share routing information
○ They describe the state of network links (e.g., which routers are connected)
○ Are exchanged between routers to keep the network updated
manageable sections.
Vice
Mayor
Baranga
Mayor
y Baranga
Captain y
Captain
Baranga Baranga
y y
Members Members
Baranga
y Baranga
Members y
Members
Area Area
1 2
Area 0 (backbone area)
Point-to-Point OSPF Networks
OSPF Network Types
● Broadcast
○ A multi-access network where multiple OSPF routers can communicate over the
same physical medium, such as Ethernet.
● Point-to-Point
○ Represents a direct connection between two routers, such as a leased line or a
dedicated serial link.
OSPF Network: Broadcast vs Point-to-Point
172.16.10.0/2 172.16.20.0/2
4 4
OSPF Point-to-Point Single Area Configuration
Instructions
2. Configure the routers R1, R2, and R3 serial interfaces.
○ Configure the clock rate of serial interfaces with asterisks.
○ Configure the routers serial interfaces network type to point-to-point.
○ Configure the routers serial interfaces encapsulation to PPP.
IS
G0/0 | IP:.2
cisco.com P R1(config)# interface serial 0/0/0
203.122.45.0/ R1(config-if)# clock rate 64000
30
G0/0 | IP:.1 R1(config-if)# ip ospf network point-to-point
R1(config-if)# encapsulation ppp
R *S0/0/0 | IP:.1
S0/0/1 |
IP:.2 1
10.0.1.0/3
Configure R2 and R3.
10.0.2.0/3
0 0
S0/0/0 | IP:.2
*S0/0/1 |
IP:.1
R R
2 G0/0 | 3 G0/0 |
IP:.254 IP:.254
172.16.10.0/2 172.16.20.0/2
4 4
OSPF Point-to-Point Single Area Configuration
Instructions
4. Suppress routing updates on the interfaces connected to the LAN.
172.16.10.0/2 172.16.20.0/2
4 4
OSPF Point-to-Point Single Area Configuration
Instructions
5. Ensure all workstations are able to access each other.
Comment:
IS ● LAN networks connected to R2 and R3 should be able to communicate to each other.
P
G0/0 | IP:.2 ● Ping should be successful between R2 LAN and R3 LAN.
cisco.com
203.122.45.0/
30
G0/0 | IP:.1
R *S0/0/0 | IP:.1
S0/0/1 |
IP:.2 1
10.0.1.0/3 10.0.2.0/3
0 0
S0/0/0 | IP:.2
*S0/0/1 |
IP:.1
R R
2 G0/0 | 3 G0/0 |
IP:.254 IP:.254
172.16.10.0/2 172.16.20.0/2
4 4
Default Route Propagation
OSPF Point-to-Point Single Area Configuration
Instructions
6. Configure default route on R1 and distribute it to the OSPF neighbors.
R R
2 G0/0 | 3 G0/0 |
IP:.254 IP:.254
172.16.10.0/2 172.16.20.0/2
4 4
OSPF Point-to-Point Single Area Configuration
Instructions
7. Ensure all workstations can access the cisco.com website.
Comment:
IS ● LAN networks connected to R2 and R3 should be able to reach the cisco.com website.
G0/0 | IP:.2
cisco.com P
203.122.45.0/
30
G0/0 | IP:.1
R *S0/0/0 | IP:.1
S0/0/1 |
IP:.2 1
10.0.1.0/3 10.0.2.0/3
0 0
S0/0/0 | IP:.2
*S0/0/1 |
IP:.1
R R
2 G0/0 | 3 G0/0 |
IP:.254 IP:.254
172.16.10.0/2 172.16.20.0/2
4 4
Verify Single-Area OSPFv2
OSPF Point-to-Point Single Area Demo-Lab
Instructions
1. Configure the routers R1, R2, and R3 IP Addresses.
2. Configure the routers R1, R2, and R3 serial interfaces.
○ Configure the clock rate of serial interfaces with asterisks.
○ Configure the routers serial interfaces network type to point-to-point.
○ Configure the routers serial interfaces encapsulation to PPP.
IS
G0/0 | IP:.2 3. Enable OSPF in all routers. (Except Internet)
cisco.com P ○ Use OSPF Process ID of 1 in all the routers.
203.122.45.0/ ○ Configure router IDs for R1 (1.1.1.1), R2 (2.2.2.2), R3 (3.3.3.3).
30 ○
G0/0 | IP:.1 Enable OSPF on the correct IP networks in area 0.
4. Suppress routing updates on the interfaces connected to the LAN.
5. Ensure all workstations are able to access each other.
R
S0/0/1 | *S0/0/0 | IP:.1 6. Configure default route on R1 and distribute it to the OSPF neighbors.
1
IP:.2 7. Ensure all workstations can access the cisco.com website.
10.0.1.0/3 10.0.2.0/3
0 0
S0/0/0 | IP:.2
*S0/0/1 |
IP:.1
R R Verification Commands:
2 G0/0 | 3 G0/0 | -show ip ospf - Display OSPF Information.
IP:.254 IP:.254
-show ip protocols - Display IP routing protocol process parameters and statistics.
172.16.10.0/2 172.16.20.0/2 -show ip ospf neighbor - Display OSPF neighbor list/s.
4 4 -show ip ospf interface [Type_PortNumber] - Display OSPF interface information.
-show interface [Type_PortNumber] - Display detailed information about the interface status and
configuration.
-show ip route - Display routing table.
OSPF Point-to-Point Single Area Configuration
Verification Commands:
R1#show ip protocols
Verification Commands:
R1#show ip ospf
Verification Commands:
R1#show ip ospf neighbor
R *S0/0/0 | IP:.1
S0/0/1 |
IP:.2 1
10.0.1.0/3 10.0.2.0/3
0 0
S0/0/0 | IP:.2
*S0/0/1 |
IP:.1
R R
2 G0/0 | 3 G0/0 |
IP:.254 IP:.254
172.16.10.0/2 172.16.20.0/2
4 4
OSPF Point-to-Point Single Area Configuration
Verification Commands:
R1#show ip ospf interface serial 0/0/0
R R
2 G0/0 | 3 G0/0 |
IP:.254 IP:.254
172.16.10.0/2 172.16.20.0/2
4 4
OSPF Point-to-Point Single Area Configuration
Verification Commands:
R1#show interfaces serial 0/0/0
Verification Commands:
R1#show ip route R2#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B
IS - BGP - BGP
G0/0 | IP:.2
cisco.com P D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
203.122.45.0/ N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external
30 type 2 type 2
G0/0 | IP:.1
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP 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 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 * - candidate default, U - per-user static route, o - ODR
R *S0/0/0 | IP:.1
S0/0/1 | P - periodic downloaded static route P - periodic downloaded static route
IP:.2 1
10.0.1.0/3 10.0.2.0/3 Gateway of last resort is 203.122.45.2 to network 0.0.0.0 Gateway of last resort is 10.0.1.2 to network 0.0.0.0
0 0 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks 10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
S0/0/0 | IP:.2 C 10.0.1.0/30 is directly connected, Serial0/0/1 C 10.0.1.0/30 is directly connected, Serial0/0/1
*S0/0/1 |
IP:.1 C 10.0.1.1/32 is directly connected, Serial0/0/1 L 10.0.1.1/32 is directly connected, Serial0/0/1
L 10.0.1.2/32 is directly connected, Serial0/0/1 C 10.0.1.2/32 is directly connected, Serial0/0/1
R R C 10.0.2.0/30 is directly connected, Serial0/0/0 O 10.0.2.0/30 [110/128] via 10.0.1.2, 00:46:59, Serial0/0/1
2 G0/0 | 3 G0/0 | L 10.0.2.1/32 is directly connected, Serial0/0/0 172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
IP:.254 IP:.254 C 10.0.2.2/32 is directly connected, Serial0/0/0 C 172.16.10.0/24 is directly connected, GigabitEthernet0/0
172.16.0.0/24 is subnetted, 2 subnets L 172.16.10.254/32 is directly connected, GigabitEthernet0/0
172.16.10.0/2 172.16.20.0/2 O 172.16.10.0/24 [110/65] via 10.0.1.1, 00:20:10, Serial0/0/1 O 172.16.20.0/24 [110/129] via 10.0.1.2, 00:27:39, Serial0/0/1
4 4 O 172.16.20.0/24 [110/65] via 10.0.2.2, 00:22:39, Serial0/0/0 O*E2 0.0.0.0/0 [110/1] via 10.0.1.2, 00:17:33, Serial0/0/1
203.122.45.0/24 is variably subnetted, 2 subnets, 2 masks
C 203.122.45.0/30 is directly connected, GigabitEthernet0/0
L 203.122.45.1/32 is directly connected, GigabitEthernet0/0
S* 0.0.0.0/0 [1/0] via 203.122.45.2
OSPF Point-to-Point Single Area Configuration
Verification Commands:
R1#show controllers serial 0/0/0 R3#show controllers serial 0/0/0
R *S0/0/0 | IP:.1
S0/0/1 |
IP:.2 1
10.0.1.0/3 10.0.2.0/3
0 0
S0/0/0 | IP:.2
*S0/0/1 |
IP:.1
R R
2 G0/0 | 3 G0/0 |
IP:.254 IP:.254
172.16.10.0/2 172.16.20.0/2
4 4
End of Unit 4