OSPF – Routing Protocol – Enterprise Network

OSPF — Routing Protocol — Enterprise Network (Mindmap)

Tài liệu gồm:

  1. Bản đồ tư duy (mindmap / infographic) SVG — nhanh hiểu cấu trúc OSPF.
  2. Module HTML 
  3. Lab thực hành multi-area OSPF (Packet Tracer / GNS3) — sơ đồ, bảng địa chỉ, cấu hình IOS cho từng router, kiểm tra và troubleshooting checklist.

1) Mindmap / Infographic (SVG)

Dán trực tiếp SVG dưới đây vào trang HTML hoặc dùng như file độc lập ospf-mindmap.svg.

<!-- OSPF Mindmap SVG - lightweight, responsive -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" width="1200" height="800">
  <style>
    .title{font:700 28px/1.2 Arial, Helvetica, sans-serif}
    .node{font:600 14px Arial}
    .sub{font:400 12px Arial}
    .box{fill:#0b3d91;opacity:0.95;stroke:#fff;stroke-width:1.5}
    .pill{fill:#f4f9ff;stroke:#0b3d91;stroke-width:1}
    .link{stroke:#0b3d91;stroke-width:2}
  </style>

  <rect width="100%" height="100%" fill="#ffffff"/>
  <text x="60" y="50" class="title">OSPF — Routing Protocol — Enterprise Network (Mindmap)</text>

  <!-- Central -->
  <g transform="translate(80,110)">
    <rect x="0" y="0" width="240" height="80" rx="12" class="box"/>
    <text x="120" y="30" fill="#fff" font-size="18" font-weight="700" text-anchor="middle">OSPF</text>
    <text x="120" y="54" fill="#fff" font-size="12" text-anchor="middle">Link-State / Dijkstra / Area</text>
  </g>

  <!-- Areas -->
  <g transform="translate(380,40)">
    <line x1="0" y1="90" x2="120" y2="40" class="link"/>
    <rect x="120" y="20" width="220" height="70" rx="8" class="pill"/>
    <text x="230" y="45" class="node">Area Structure</text>
    <text x="230" y="63" class="sub">Backbone (0), Regular, Stub, NSSA</text>
  </g>

  <!-- LSAs -->
  <g transform="translate(380,150)">
    <line x1="0" y1="40" x2="120" y2="90" class="link"/>
    <rect x="120" y="70" width="220" height="90" rx="8" class="pill"/>
    <text x="230" y="98" class="node">LSA Types</text>
    <text x="230" y="116" class="sub">1 Router, 2 Network, 3 Summary, 5 External, 7 NSSA</text>
  </g>

  <!-- Roles -->
  <g transform="translate(380,280)">
    <line x1="0" y1="40" x2="120" y2="140" class="link"/>
    <rect x="120" y="120" width="220" height="90" rx="8" class="pill"/>
    <text x="230" y="148" class="node">Router Roles</text>
    <text x="230" y="166" class="sub">Internal, ABR, ASBR, Backbone</text>
  </g>

  <!-- Operations -->
  <g transform="translate(40,260)">
    <line x1="240" y1="40" x2="360" y2="120" class="link"/>
    <rect x="-20" y="120" width="280" height="110" rx="8" class="pill"/>
    <text x="120" y="148" class="node">Operation</text>
    <text x="120" y="166" class="sub">Hello, Adjacency, LSDB, SPF, RIB</text>
  </g>

  <!-- Tuning -->
  <g transform="translate(40,420)">
    <line x1="240" y1="40" x2="360" y2="220" class="link"/>
    <rect x="-20" y="220" width="280" height="110" rx="8" class="pill"/>
    <text x="120" y="248" class="node">Tuning & Security</text>
    <text x="120" y="266" class="sub">Auth MD5/SHA, passive-if, summarization</text>
  </g>

  <!-- Enterprise -->
  <g transform="translate(740,120)">
    <line x1="0" y1="40" x2="120" y2="80" class="link"/>
    <rect x="120" y="60" width="310" height="120" rx="8" class="pill"/>
    <text x="275" y="90" class="node">Enterprise Architecture</text>
    <text x="275" y="110" class="sub">Access - Distribution - Core (Area design)</text>
    <text x="275" y="128" class="sub">Monitoring: SNMP, NetFlow, OSPF counters</text>
  </g>

  <!-- Commands box -->
  <g transform="translate(740,320)">
    <rect x="120" y="60" width="310" height="70" rx="6" class="pill"/>
    <text x="280" y="94" class="node">Cisco Quick Commands</text>
    <text x="280" y="112" class="sub">router ospf 1 · network · show ip ospf neighbor</text>
  </g>

</svg>

2) HTML module chuẩn SEO (full-page)

File: ospf-seo-module.html. Copy-paste toàn bộ vào file .html và deploy.

<!doctype html>
<html lang="vi">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>OSPF — Routing Protocol & Enterprise Network | Học CCNA / CCNP ENCOR</title>
<meta name="description" content="Tổng quan OSPF, cấu trúc multi-area, LSA types, cấu hình Cisco IOS và lab thực hành cho CCNA & CCNP ENCOR.">
<link rel="canonical" href="https://yoursite.example/ospf-routing-enterprise" />

<!-- Open Graph -->
<meta property="og:type" content="article">
<meta property="og:title" content="OSPF — Routing Protocol & Enterprise Network">
<meta property="og:description" content="Tổng quan OSPF, cấu trúc multi-area, LSA types, cấu hình Cisco IOS và lab thực hành.">
<meta property="og:image" content="/images/ospf-infographic.png">

<!-- JSON-LD Article Schema -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "OSPF — Routing Protocol & Enterprise Network",
  "description": "Tổng quan OSPF, cấu trúc multi-area, LSA types, cấu hình Cisco IOS và lab thực hành.",
  "image": "/images/ospf-infographic.png",
  "author": {"@type":"Person","name":"Tên tác giả"},
  "publisher": {"@type":"Organization","name":"YourSite","logo":{"@type":"ImageObject","url":"/images/logo.png"}},
  "datePublished": "2025-10-17",
  "mainEntityOfPage": {"@type":"WebPage","@id":"https://yoursite.example/ospf-routing-enterprise"}
}
</script>

<!-- Simple styling -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css">
<style>
  :root{font-family:Inter,Arial,Helvetica,sans-serif}
  body{margin:0;padding:0;background:#0f1724;color:#e6eef8}
  .container{max-width:980px;margin:36px auto;padding:28px;background:#07102a;border-radius:12px}
  h1{font-size:28px;margin-bottom:6px}
  .meta{color:#9fb0d6;font-size:14px}
  pre{background:#02102a;padding:12px;border-radius:8px;overflow:auto}
  .svg-wrap{text-align:center;margin:18px 0}
  .lab{background:#081426;padding:12px;border-radius:8px}
</style>
</head>
<body>
  <main class="container">
    <h1>OSPF — Routing Protocol & Enterprise Network</h1>
    <p class="meta">Guide: CCNA → CCNP ENCOR • Updated: Oct 17, 2025</p>

    <section>
      <h2>Mindmap (Quick visual)</h2>
      <div class="svg-wrap">
        <!-- Inline SVG mindmap (copy from ospf-mindmap.svg) -->
        <!-- For space we reference external img; replace src with actual svg file or embed above -->
        <img src="/images/ospf-mindmap.svg" alt="OSPF Mindmap" style="max-width:100%;height:auto;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,0.6)">
      </div>
    </section>

    <section>
      <h2>Quick Concepts</h2>
      <ul>
        <li>OSPF — Link-State protocol using Dijkstra; IP Protocol 89</li>
        <li>Area 0 backbone; ABR, ASBR, Internal routers</li>
        <li>LSA types: 1,2,3,4,5,7 — control scope</li>
      </ul>
    </section>

    <section>
      <h2>Example Cisco IOS Config (Multi-Area)</h2>
      <div class="lab">
<pre><code class="language-bash">! R1 (Backbone - Area 0)
hostname R1
interface Gig0/0
 ip address 10.0.0.1 255.255.255.0
 no shutdown
!
router ospf 1
 router-id 1.1.1.1
 network 10.0.0.0 0.0.0.255 area 0
!
! R2 (ABR connecting Area 0 and Area 10)
hostname R2
interface Gig0/0
 ip address 10.0.0.2 255.255.255.0
interface Gig0/1
 ip address 10.10.10.1 255.255.255.0
!
router ospf 1
 router-id 2.2.2.2
 network 10.0.0.0 0.0.0.255 area 0
 network 10.10.10.0 0.0.0.255 area 10
!
! R3 (Area 10 internal)
hostname R3
interface Gig0/0
 ip address 10.10.10.2 255.255.255.0
!
router ospf 1
 router-id 3.3.3.3
 network 10.10.10.0 0.0.0.255 area 10
</code></pre>
      </div>
    </section>

    <section>
      <h2>Lab Download / Copy</h2>
      <p>Copy the configs above into Packet Tracer or GNS3 devices. For GNS3, add 3 routers, connect and set interfaces accordingly. Use the commands:</p>
      <pre><code class="language-bash">show ip ospf neighbor
show ip ospf database
show ip route ospf
debug ip ospf adj
</code></pre>
    </section>

    <section>
      <h2>References & Further Reading</h2>
      <ol>
        <li>RFC 2328 — OSPFv2</li>
        <li>RFC 5340 — OSPFv3</li>
        <li>Cisco CCNP ENCOR Official Cert Guide</li>
      </ol>
    </section>

  </main>

<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</body>
</html>
</code style="background: #5b8cff;">

3) Lab thực hành: Multi-Area OSPF (Packet Tracer / GNS3)

Topology (logical):

            [R1] (10.0.0.0/24) Area 0 (Backbone)
             |
       -----+-----
      |           |
    [R2]        [R4]
    ABR         ABR/ASBR
   /   \         |
Area10  Area20  Internet/BGP
 [R3]   [R5]
</code >

IP addressing plan (example)

  • R1–R2 link: 10.0.0.0/24 (R1:10.0.0.1, R2:10.0.0.2) — Area 0
  • R2–R3 link: 10.10.10.0/24 (R2:10.10.10.1, R3:10.10.10.2) — Area 10
  • R1–R4 link: 10.0.1.0/24 (R1:10.0.1.1, R4:10.0.1.2) — Area 0
  • R4–R5 (NSSA): 10.20.20.0/24 (R4:10.20.20.1, R5:10.20.20.2) — Area 20 (NSSA)

Complete sample IOS configs (ready-to-paste)

R1 (Backbone):

hostname R1
interface Gig0/0
 ip address 10.0.0.1 255.255.255.0
 no shutdown
interface Gig0/1
 ip address 10.0.1.1 255.255.255.0
 no shutdown
router ospf 1
 router-id 1.1.1.1
 network 10.0.0.0 0.0.0.255 area 0
 network 10.0.1.0 0.0.0.255 area 0
!

R2 (ABR: Area 0 <-> Area 10):

hostname R2
interface Gig0/0
 ip address 10.0.0.2 255.255.255.0
 no shutdown
interface Gig0/1
 ip address 10.10.10.1 255.255.255.0
 no shutdown
router ospf 1
 router-id 2.2.2.2
 network 10.0.0.0 0.0.0.255 area 0
 network 10.10.10.0 0.0.0.255 area 10
!

R3 (Area 10 internal):

hostname R3
interface Gig0/0
 ip address 10.10.10.2 255.255.255.0
 no shutdown
router ospf 1
 router-id 3.3.3.3
 network 10.10.10.0 0.0.0.255 area 10
!

R4 (ABR/ASBR — inject external routes; Area 0 & Area 20 NSSA):

hostname R4
interface Gig0/0
 ip address 10.0.1.2 255.255.255.0
 no shutdown
interface Gig0/1
 ip address 10.20.20.1 255.255.255.0
 no shutdown
router ospf 1
 router-id 4.4.4.4
 network 10.0.1.0 0.0.0.255 area 0
 network 10.20.20.0 0.0.0.255 area 20
!
! Example: advertise a static default into OSPF (as type 5) from R4
ip route 0.0.0.0 0.0.0.0 203.0.113.1
router ospf 1
 redistribute static subnets
!

R5 (Area 20 internal / NSSA network):

hostname R5
interface Gig0/0
 ip address 10.20.20.2 255.255.255.0
 no shutdown
router ospf 1
 router-id 5.5.5.5
 network 10.20.20.0 0.0.0.255 area 20
!

NSSA + redistribution notes

  • If Area 20 is configured as NSSA, external routes redistributed there become Type‑7 LSAs and are translated to Type‑5 at the ABR if needed.
  • To configure NSSA on ABR: area 20 nssa under router ospf on ABR side.

Verification & Troubleshooting checklist

  1. show ip ospf neighbor — adjacency up, state FULL
  2. show ip ospf interface — hello/dead timers, MTU
  3. show ip ospf database — LSAs present (types expected)
  4. show ip route — OSPF learned prefixes
  5. debug ip ospf adj / debug ip ospf events — use carefully in lab
  6. Common issues: area mismatch, passive interface, mismatched auth, MTU mismatch, wrong network statements

Packet Tracer tips

  • Use 2801/1841 images or ISR models that support OSPF.
  • Configure serial or Gigabit links and ensure clock rates for serials if needed.

Bonus: Suggested lab tasks (progressive)

  1. Single-area OSPF with 3 routers (area 0) — validate neighbor states.
  2. Convert to multi-area: add ABR and area 10 — observe LSAs type 3 summarization.
  3. Configure NSSA on Area 20 and redistribute a static route at R4 — confirm Type‑7 -> Type‑5 behavior.
  4. Add route summarization on ABR: area 10 range 10.10.0.0 255.255.0.0 and test.
  5. Simulate failure: shut down R2 link — watch SPF recalculation and convergence time.

License & attribution

Bạn có thể tái sử dụng nội dung này cho blog / lab của mình. Ghi nguồn nếu đăng công khai.

Soucre: https://www.bootstup.org/

Index