Practical OPF Series - Lesson 9: Deep Dive into OSPF LSAs (Part 1)
Overview
- Focus: Understanding Type 1 and Type 2 LSAs within OSPF.
- Key Segments:
- Definition of Type 1 LSA
- Six scenarios to illustrate Type 1 LSA
- Basic introduction to Type 2 LSA
Type 1 LSA
- Definition: Known as Router LSA. Advertised by every router within an area.
- Identifies the router, connected links, and associated costs.
- Describes links using four types of information:
- Stub Network
- Point-to-Point Link
- Transit Link
- Virtual Link
- Purpose: Helps in creating routing tables by advertising router links and costs.
Scenario Demonstrations
Scenario 1: Loopback Interface Advertised to OSPF
- Setup: Loopback interface with IP 10.0.1.1/24 added to OSPF.
- Observation: Default behavior is advertising as a /32 network.
- Command:
show ip ospf database reveals stub Network with Network ID, Subnet Mask, and Cost.
Scenario 2: Loopback Interface as Point-to-Point Network
- Setup: Manually set Loopback interface as a point-to-point network.
- Command:
show ip ospf interface loopback 1 and show ip ospf database router 1.1.1.1
- Observation: Stub network still exists but advertised as /24.
Scenario 3: Serial Link without OSPF Neighbor
- Setup: Add serial interface
Serial 1/2 to OSPF on Router 1 facing Router 2 (No OSPF on Router 2).
- Command:
show ip ospf database, show ip ospf interface serial 1/2
- Observation: Type 1 LSA includes stub Network for Serial link
Scenario 4: Serial Link with OSPF Neighbor
- Setup: Enable OSPF on Router 2.
- Command:
show ip ospf neighbor, show ip ospf database router 1.1.1.1
- Observation: Type 1 LSA includes both a Stub Network and a Point-to-Point link with Router 2
Scenario 5: Ethernet Link without OSPF Neighbor
- Setup: Enable OSPF on Ethernet link
Ethernet 0/3 on Router 1 facing Router 3 (No OSPF on Router 3).
- Command:
show ip ospf interface ethernet 0/3, show ip ospf database
- Observation: Type 1 LSA advertises Ethernet link as a stub Network
Scenario 6: Ethernet Link with OSPF Neighbor
- Setup: Enable OSPF on Router 3.
- Observation: Creation of Type 2 LSA (Network LSA)
- Details: Type 1 LSA includes Transit Link and points to Type 2 LSA containing network mask.
Important Commands
show ip ospf database: View the OSPF link-state database
show ip ospf interface [interface]: View OSPF interface details
show ip ospf neighbor: View current OSPF neighbors
show ip ospf database router [router-id]: Detailed information of a Type 1 LSA
show ip ospf database network [network-id]: Detailed information of a Type 2 LSA
Virtual Links
- Purpose: Connect disjoint OSPF areas to the backbone area (Area 0).
- Usually indicates a suboptimal design.
- Typically observed in academic or lab settings.
- Use traditional tunneling mechanisms like GRE if necessary.
Conclusion
- Learned about the four types of links within a Type 1 LSA.
- Understood the content and purpose of a Type 2 LSA.
- Next lesson: Deep dive into Type 3 LSAs.
Note: Share this knowledge to reduce confusion about OSPF LSAs.