Techerest

IPv6 Routing บน Cisco: Static Route, Default Route และ OSPFv3

หลังจากเข้าใจพื้นฐาน IPv6 Address, Prefix, Global Unicast, Link-Local, SLAAC, NDP และ ICMPv6 แล้ว ขั้นต่อไปคือการทำให้ Router สามารถส่ง IPv6 Packet ระหว่างหลาย Network ได้อย่างถูกต้อง

บทความนี้จะอธิบาย IPv6 Routing บน Cisco ตั้งแต่ Connected Route, Static Route, Default Route ไปจนถึงพื้นฐานของ OSPFv3 พร้อมตัวอย่าง Cisco Lab และขั้นตอน Troubleshooting ที่สามารถนำไปฝึกต่อใน Packet Tracer, CML, EVE-NG หรืออุปกรณ์ Cisco ที่รองรับได้

ภาค 1: พื้นฐาน IPv6 Routing

IPv6 Routing คืออะไร?

IPv6 Routing คือกระบวนการที่ Router หรือ Layer 3 Device ใช้ Routing Table เพื่อเลือกเส้นทางสำหรับส่ง IPv6 Packet จาก Network ต้นทางไปยัง Network ปลายทาง

ตัวอย่าง:

PC-A
2001:db8:10:1::10
        |
        v
       R1
        |
        v
       R2
        |
        v
PC-B
2001:db8:20:1::10

ถ้า R1 ต้องส่ง Packet ไปยัง 2001:db8:20:1::/64 R1 ต้องมี Route ที่สามารถใช้ไปยัง Network ดังกล่าวได้

แนวคิดเหมือน IPv4:

Destination
     |
     v
Routing Table
     |
     v
Best Matching Route
     |
     v
Next-Hop / Exit Interface
     |
     v
Forward Packet

IPv6 ใช้ Longest Prefix Match หรือไม่?

ใช้เช่นเดียวกับ IPv4 Router จะพิจารณา Route ที่ตรงกับ Destination และเลือก Prefix ที่ Specific ที่สุด ก่อน

ตัวอย่าง Routing Table:

2001:db8::/32

2001:db8:10::/48

2001:db8:10:1::/64

Destination:

2001:db8:10:1::100

Route ที่ Specific ที่สุดคือ:

2001:db8:10:1::/64

ดังนั้น Longest Prefix Match ยังเป็นหลักสำคัญในการเลือก Route ของ IPv6

เปิด IPv6 Routing บน Cisco

บน Cisco IOS/IOS XE ที่รองรับ ต้องเปิด IPv6 Packet Forwarding ด้วย:

ipv6 unicast-routing

ตัวอย่าง:

R1(config)# ipv6 unicast-routing

หาก Router มี IPv6 Address บน Interface แต่ไม่ได้เปิด IPv6 Unicast Routing อุปกรณ์อาจยังสื่อสารกับ Network ที่ Connected โดยตรงได้ในบางบริบท แต่จะไม่ทำหน้าที่ Forward IPv6 Packet ระหว่าง Interface ตามที่ต้องการ

ภาค 2: IPv6 Routing Table

ดู IPv6 Routing Table อย่างไร?

ใช้คำสั่ง:

show ipv6 route

ตัวอย่างเชิงแนวคิด:

IPv6 Routing Table

C   2001:DB8:10:1::/64
     via GigabitEthernet0/0

L   2001:DB8:10:1::1/128
     via GigabitEthernet0/0

S   2001:DB8:20:1::/64
     via 2001:DB8:12::2

ตัวอักษรด้านหน้า Route ช่วยบอกแหล่งที่มา เช่น:

Code ความหมาย
C Connected
L Local
S Static
O OSPF

Code ที่แสดงจริงขึ้นอยู่กับ Route Type, Platform และ Software Release

Connected Route และ Local Route

สมมติ R1:

interface GigabitEthernet0/0
 ipv6 address 2001:db8:10:1::1/64
 no shutdown

เมื่อ Interface ทำงาน Router สามารถสร้าง Route ที่เกี่ยวข้องกับ Network และ Interface Address

เช่น:

C  2001:db8:10:1::/64

L  2001:db8:10:1::1/128

Connected Route แสดง Network ที่เชื่อมต่อกับ Router โดยตรง

Local Route ใช้ Prefix /128 สำหรับ IPv6 Address ของ Interface นั้นเอง

ภาค 3: IPv6 Static Route

IPv6 Static Route คืออะไร?

IPv6 Static Route คือ Route ที่ Network Administrator กำหนดด้วยตนเอง แทนที่จะให้ Dynamic Routing Protocol เรียนรู้เส้นทางโดยอัตโนมัติ

Topology:

LAN-A                  R1                R2                 LAN-B

2001:db8:10:1::/64     |                 |          2001:db8:20:1::/64
        |               |                 |                  |
       PC-A ---------- Gi0/0           Gi0/1 ------------- PC-B
                        |                 |
                        +------WAN--------+
                         2001:db8:12::/64

กำหนด Address:

R1 LAN
2001:db8:10:1::1/64

R1 WAN
2001:db8:12::1/64


R2 WAN
2001:db8:12::2/64

R2 LAN
2001:db8:20:1::1/64

Static Route บน R1

R1 ต้องรู้ว่า Network:

2001:db8:20:1::/64

อยู่หลัง R2

Configure:

ipv6 route 2001:db8:20:1::/64 2001:db8:12::2

Static Route บน R2

R2 ต้องมี Return Route กลับไปยัง:

2001:db8:10:1::/64

Configure:

ipv6 route 2001:db8:10:1::/64 2001:db8:12::1

ทำไม Return Route สำคัญ?

Forward Path:

PC-A
 |
 v
R1
 |
 v
R2
 |
 v
PC-B

Reply ต้องกลับ:

PC-B
 |
 v
R2
 |
 v
R1
 |
 v
PC-A

หาก R2 ไม่มี Route กลับไปยัง LAN-A Request อาจเดินทางถึง PC-B แต่ Reply ไม่สามารถกลับถึง PC-A ได้

การ Troubleshoot Routing ต้องตรวจทั้ง Forward Path และ Return Path ไม่ควรตรวจเฉพาะเส้นทางขาไป

Next-Hop และ Exit Interface

IPv6 Static Route สามารถกำหนดได้หลายรูปแบบ ขึ้นอยู่กับ Topology และ Platform

แบบ Next-Hop Address

ipv6 route 2001:db8:20:1::/64 2001:db8:12::2

แบบ Exit Interface

ipv6 route 2001:db8:20:1::/64 GigabitEthernet0/1

แบบ Exit Interface + Next-Hop

ipv6 route 2001:db8:20:1::/64 GigabitEthernet0/1 2001:db8:12::2

รูปแบบที่เหมาะสมขึ้นอยู่กับชนิดของ Link และวิธีที่ Router ต้อง Resolve Next-Hop

ภาค 4: IPv6 Default Route

IPv6 Default Route คืออะไร?

ใน IPv4 เราใช้:

0.0.0.0/0

IPv6 ใช้:

::/0

หมายถึง Route ที่สามารถ Match Destination IPv6 ใด ๆ เมื่อไม่มี Route ที่ Specific กว่า

ตัวอย่าง:

ipv6 route ::/0 2001:db8:12::2

แนวคิด:

Specific Route exists?
       |
       +---- YES ---> Use specific route
       |
       +---- NO
              |
              v
            ::/0
              |
              v
        Default Router

ตัวอย่าง Internet Edge

LAN
 |
R1
 |
 |
ISP
 |
Internet

R1:

ipv6 route ::/0 2001:db8:100::1

เมื่อ R1 ไม่พบ Route ที่ Specific กว่า Traffic จะถูกส่งไปยัง Default Next-Hop

IPv6 Floating Static Route

Static Route สามารถกำหนด Administrative Distance เพื่อใช้เป็น Backup Route ได้

ตัวอย่างแนวคิด:

Primary Route
   |
   | OSPFv3
   |
   v
Destination


Backup Route
   |
   | Static AD 200
   |
   v
Destination

ตัวอย่าง:

ipv6 route 2001:db8:30:1::/64 2001:db8:12::2 200

เลข 200 คือ Administrative Distance ที่กำหนดให้ Static Route นี้

หากมี Route จาก Routing Protocol ที่มี Administrative Distance ต่ำกว่า Static Route นี้จะทำหน้าที่เป็น Backup ตามเงื่อนไขของ Routing Table

ภาค 5: Static Route ผ่าน Link-Local Address

ได้ แต่มีรายละเอียดสำคัญ

สมมติ R2 มี Link-Local:

fe80::2

เนื่องจาก Link-Local Address มี Scope เฉพาะ Link Router ต้องรู้ว่า fe80::2 อยู่บน Interface ใด

จึงสามารถใช้รูปแบบ:

ipv6 route 2001:db8:20:1::/64 GigabitEthernet0/1 fe80::2

เหตุผล:

fe80::2
   |
   +---- Which link?
              |
              v
      GigabitEthernet0/1
เมื่อใช้ Link-Local Address เป็น Static Route Next-Hop โดยทั่วไปต้องระบุ Exit Interface เพื่อให้ Router ระบุ Link ได้ถูกต้อง ตรวจสอบ Syntax ที่รองรับบน Cisco Platform และ Software Release ที่ใช้งานจริง

ภาค 6: Dynamic IPv6 Routing ด้วย OSPFv3

OSPFv3 คืออะไร?

OSPFv3 เป็น OSPF Version ที่ออกแบบมาให้รองรับ IPv6 และใน Cisco Platform รุ่นใหม่บางรูปแบบ สามารถรองรับ Address Family เพิ่มเติมได้ตาม Feature และ Software Release

สำหรับพื้นฐาน IPv6 ให้เข้าใจ Flow ก่อน:

Router R1
   |
   | OSPFv3
   |
Router R2
   |
   | OSPFv3
   |
Router R3

Router สามารถสร้าง Neighbor Relationship แลกเปลี่ยน Link-State Information และคำนวณ Best Path โดยใช้หลักการ Link-State Routing

OSPFv3 ยังใช้ Area หรือไม่?

ใช้

เช่น:

Area 0
Backbone Area

Topology:

R1 -------- R2 -------- R3
      Area 0      Area 0

แนวคิด Area, LSDB, SPF และ Cost ยังคงเป็นส่วนสำคัญ ของ OSPF

OSPFv2 กับ OSPFv3 ต่างกันอย่างไร?

หัวข้อ OSPFv2 OSPFv3
การใช้งานดั้งเดิม IPv4 IPv6
Router ID 32-bit ยังใช้ 32-bit Router ID
Neighbor Communication IPv4 IPv6 Link-Local มีบทบาทสำคัญ
Area รองรับ รองรับ
SPF ใช้ ใช้
Cost ใช้ ใช้

OSPFv3 มีรายละเอียดเชิง Protocol แตกต่างจาก OSPFv2 หลายส่วน ดังนั้นไม่ควรมองว่าเป็นเพียง OSPFv2 ที่เปลี่ยน IPv4 Address เป็น IPv6 Address เท่านั้น

OSPFv3 Router ID

แม้ OSPFv3 จะใช้กับ IPv6 แต่ Router ID ยังคงมีขนาด 32 bits และแสดงในรูปแบบคล้าย IPv4 Address

ตัวอย่าง:

1.1.1.1

2.2.2.2

3.3.3.3

Router ID ไม่จำเป็นต้องเป็น IPv6 Address

ตัวอย่าง:

ipv6 router ospf 10
 router-id 1.1.1.1
ใน Lab ควรกำหนด Router ID อย่างชัดเจน เพื่อให้ Topology อ่านง่ายและลดความสับสน โดยเฉพาะอุปกรณ์ที่ไม่มี IPv4 Address ให้ใช้ในการเลือก Router ID อัตโนมัติ

Configure OSPFv3 บน Cisco

ตัวอย่าง R1:

ipv6 unicast-routing

ipv6 router ospf 10
 router-id 1.1.1.1

จากนั้นเปิด OSPFv3 บน Interface:

interface GigabitEthernet0/1
 ipv6 ospf 10 area 0

ตัวอย่าง R2:

ipv6 unicast-routing

ipv6 router ospf 10
 router-id 2.2.2.2

interface GigabitEthernet0/0
 ipv6 ospf 10 area 0
Cisco IOS/IOS XE มีรูปแบบการ Configure OSPFv3 ได้มากกว่าหนึ่งรูปแบบ โดยเฉพาะ OSPFv3 Address Families บน Software รุ่นใหม่ ตัวอย่างในบทความนี้ใช้รูปแบบพื้นฐานเพื่ออธิบาย IPv6 OSPFv3 ควรตรวจสอบ Command Reference ของ Platform และ Release ที่ใช้งานจริง

ภาค 7: IPv6 Routing Lab

Topology

LAN-A                R1                 R2                LAN-B

PC-A                 Gi0/0             Gi0/1               PC-B
 |                     |                 |                    |
 |                     |                 |                    |
 +------ Gi0/0 --------R1---------------R2------ Gi0/1 ------+
                       |                 |
                       |                 |
             2001:db8:12::/64


LAN-A
2001:db8:10:1::/64


LAN-B
2001:db8:20:1::/64

Addressing Plan

Device Interface IPv6 Address
R1 Gi0/0 2001:db8:10:1::1/64
R1 Gi0/1 2001:db8:12::1/64
R2 Gi0/0 2001:db8:12::2/64
R2 Gi0/1 2001:db8:20:1::1/64
PC-A NIC 2001:db8:10:1::10/64
PC-B NIC 2001:db8:20:1::10/64

Step 1 — Configure R1

ipv6 unicast-routing

interface GigabitEthernet0/0
 description LAN-A
 ipv6 address 2001:db8:10:1::1/64
 ipv6 address fe80::1 link-local
 no shutdown

interface GigabitEthernet0/1
 description R1-TO-R2
 ipv6 address 2001:db8:12::1/64
 ipv6 address fe80::1 link-local
 no shutdown

Step 2 — Configure R2

ipv6 unicast-routing

interface GigabitEthernet0/0
 description R2-TO-R1
 ipv6 address 2001:db8:12::2/64
 ipv6 address fe80::2 link-local
 no shutdown

interface GigabitEthernet0/1
 description LAN-B
 ipv6 address 2001:db8:20:1::1/64
 ipv6 address fe80::1 link-local
 no shutdown

Step 3 — ทดสอบด้วย Static Route ก่อน

R1:

ipv6 route 2001:db8:20:1::/64 2001:db8:12::2

R2:

ipv6 route 2001:db8:10:1::/64 2001:db8:12::1

Step 4 — ตรวจ Routing Table

R1:

show ipv6 route

ควรพบ Route ไปยัง:

2001:db8:20:1::/64

R2 ควรพบ:

2001:db8:10:1::/64

Step 5 — ทดสอบ End-to-End

PC-A:

ping 2001:db8:20:1::10

Traffic:

PC-A
 |
 v
R1
 |
 | Static Route
 v
R2
 |
 v
PC-B

Step 6 — เปลี่ยนจาก Static Route เป็น OSPFv3

ใน Lab นี้ให้ลบ Static Route ก่อนทดสอบ Dynamic Routing เพื่อให้เห็นผลจาก OSPFv3 ชัดเจน

R1:

no ipv6 route 2001:db8:20:1::/64 2001:db8:12::2

R2:

no ipv6 route 2001:db8:10:1::/64 2001:db8:12::1

Step 7 — Configure OSPFv3 บน R1

ipv6 router ospf 10
 router-id 1.1.1.1

interface GigabitEthernet0/0
 ipv6 ospf 10 area 0

interface GigabitEthernet0/1
 ipv6 ospf 10 area 0

Step 8 — Configure OSPFv3 บน R2

ipv6 router ospf 10
 router-id 2.2.2.2

interface GigabitEthernet0/0
 ipv6 ospf 10 area 0

interface GigabitEthernet0/1
 ipv6 ospf 10 area 0

Step 9 — ตรวจ OSPFv3 Neighbor

show ipv6 ospf neighbor

แนวคิด:

R1
 |
 | Hello
 |
 +---------------- R2
 |
 | Neighbor Relationship
 |
 v
FULL

Step 10 — ตรวจ Route ที่เรียนรู้จาก OSPFv3

show ipv6 route ospf

R1 ควรเรียนรู้:

2001:db8:20:1::/64

R2 ควรเรียนรู้:

2001:db8:10:1::/64

ควรสร้าง OSPF Neighbor กับ Client LAN หรือไม่?

โดยทั่วไป Interface ที่เชื่อมต่อ End User ไม่จำเป็นต้องสร้าง OSPF Neighbor กับ Client

สามารถใช้ Passive Interface ตามรูปแบบและ Platform ที่รองรับ เพื่อไม่ส่ง OSPF Hello ออกไปยัง User LAN แต่ยังประกาศ Connected Prefix ตาม OSPF Configuration

แนวคิด:

PC LAN
  |
  X OSPF Hello
  |
 R1
  |
  | OSPF Hello
  v
 R2

ภาค 8: IPv6 Routing Failover

Static Route กับ OSPFv3 ใช้ร่วมกันได้หรือไม่?

สามารถออกแบบให้ OSPFv3 เป็น Primary Route และใช้ Floating Static Route เป็น Backup ได้

ตัวอย่าง:

                 Primary
            OSPFv3 Path
          +-------------+
          |             |
         R1-------------R2
          |             |
          +-------------+
             Backup
          Static Route

ตัวอย่าง Floating Static:

ipv6 route 2001:db8:20:1::/64 2001:db8:13::2 200

Normal:

OSPFv3 Route
     |
     v
Installed in RIB

เมื่อ Primary Route หาย:

OSPFv3 Route Lost
       |
       v
Floating Static
       |
       v
Backup Path
การมี Backup Route ใน Routing Table ไม่ได้รับประกันว่า End-to-End Service จะใช้งานได้เสมอ ต้องตรวจ Return Path, Firewall, ACL, NAT/Translation, MTU และ Application Dependency ร่วมด้วย

ภาค 9: Verification Commands

ตรวจ IPv6 Interface

show ipv6 interface brief

ตรวจรายละเอียด Interface

show ipv6 interface GigabitEthernet0/0

ตรวจ IPv6 Routing Table

show ipv6 route

ตรวจ Static Route

show ipv6 route static

ตรวจ OSPFv3 Route

show ipv6 route ospf

ตรวจ OSPFv3 Neighbor

show ipv6 ospf neighbor

ตรวจ OSPFv3 Interface

show ipv6 ospf interface brief

ตรวจ OSPFv3 Database

show ipv6 ospf database

ตรวจ Neighbor Discovery

show ipv6 neighbors

ทดสอบ Connectivity

ping 2001:db8:20:1::10

ตรวจเส้นทาง

traceroute 2001:db8:20:1::10

ภาค 10: IPv6 Routing Troubleshooting

Troubleshooting Workflow

Physical
   |
   v
Interface State
   |
   v
IPv6 Address
   |
   v
Prefix
   |
   v
Link-Local
   |
   v
Neighbor Discovery
   |
   v
Connected Route
   |
   v
Static / OSPFv3 Route
   |
   v
Longest Prefix Match
   |
   v
Next-Hop
   |
   v
Return Route
   |
   v
ACL / Firewall
   |
   v
DNS / Application

ปัญหา 1 — ไม่มี Connected Route

ตรวจ:

show ipv6 interface brief

ดูว่า:

Interface UP?

IPv6 Address correct?

Prefix correct?

ปัญหา 2 — Static Route อยู่ใน Config แต่ใช้งานไม่ได้

ตรวจ:

show ipv6 route

จากนั้นตรวจ:

Next-Hop reachable?

Exit Interface up?

Neighbor resolution working?

Correct prefix?

Return route exists?

ปัญหา 3 — ใช้ Link-Local Next-Hop แล้ว Route ไม่ทำงาน

ตรวจว่าได้ระบุ Exit Interface หรือไม่:

ipv6 route 2001:db8:20:1::/64 GigabitEthernet0/1 fe80::2

เพราะ Link-Local Address ต้องถูกตีความภายใน Scope ของ Link

ปัญหา 4 — OSPFv3 Neighbor ไม่ขึ้น

ตรวจ:

Interface UP

IPv6 enabled

Link-Local Address

OSPF Process

Area

Router ID

Hello / Dead Parameters

Network Type

MTU

Authentication / Security Configuration

ACL / Control Plane Policy

ปัญหา 5 — Neighbor FULL แต่ไม่มี Route

Neighbor FULL ไม่ได้หมายความว่า ทุก Prefix ที่ต้องการ ถูก Advertise และติดตั้งใน Routing Table แล้ว

ตรวจ:

show ipv6 ospf database

show ipv6 route ospf

show ipv6 ospf interface

วิเคราะห์:

Prefix advertised?

Correct area?

Route exists in LSDB?

Better route already exists?

Administrative Distance?

Longest Prefix Match?

ปัญหา 6 — Router Ping กันได้ แต่ PC Ping ข้าม Network ไม่ได้

ตรวจ End Host:

IPv6 Address

Prefix Length

Default Router

Neighbor Discovery

จากนั้นตรวจ Router:

Forward Route

Return Route

IPv6 ACL

Firewall

ปัญหา 7 — Ping IPv6 ได้แต่เปิด Domain ไม่ได้

Routing อาจทำงานปกติแล้ว แต่ DNS มีปัญหา

ตรวจ:

DNS Server

AAAA Record

DNS Reachability

Client DNS Configuration

แยกปัญหา:

ping IPv6 address
       |
       +---- Works
               |
               v
        Test DNS resolution

ภาค 11: IPv6 Routing Best Practices

1. วาง IPv6 Addressing Plan ก่อน Configure

ตัวอย่าง:

Site 1
2001:db8:1000::/48

VLAN 10
2001:db8:1000:10::/64

VLAN 20
2001:db8:1000:20::/64

VLAN 30
2001:db8:1000:30::/64

2. กำหนด Router ID ให้ชัดเจน

R1 = 1.1.1.1
R2 = 2.2.2.2
R3 = 3.3.3.3

ช่วยให้ Troubleshooting OSPFv3 และอ่าน Topology ได้ง่ายขึ้น

3. ใช้ Passive Interface ตามความเหมาะสม

ไม่ควรสร้าง Dynamic Routing Adjacency บน User-Facing Interface โดยไม่มีความจำเป็น

4. อย่าลืม Return Path

Forward Path
     |
     v
Destination
     |
     v
Return Path

Route ขาไปทำงาน ไม่ได้หมายความว่า Route ขากลับถูกต้อง

5. อย่า Block ICMPv6 ทั้งหมด

ICMPv6 เป็นส่วนสำคัญ ของ IPv6 Operation จึงควรสร้าง Security Policy ตาม Requirement แทนการ Block ทุกประเภทแบบเหมารวม

6. ตรวจทั้ง IPv4 และ IPv6 ใน Dual Stack

Dual Stack
   |
   +---- IPv4 Routing
   |
   +---- IPv6 Routing

สอง Protocol Stack สามารถมีปัญหาแยกจากกันได้

7. บันทึก Baseline

show ipv6 interface brief

show ipv6 neighbors

show ipv6 route

show ipv6 ospf neighbor

show ipv6 ospf database

Baseline ช่วยให้เปรียบเทียบ Normal State กับ Incident State ได้รวดเร็วขึ้น

ภาค 12: คำถามที่พบบ่อย

IPv6 Default Route เขียนอย่างไร?

::/0

ตัวอย่าง:

ipv6 route ::/0 2001:db8:12::2

IPv6 Static Route ใช้ Link-Local Next-Hop ได้หรือไม่?

ได้ แต่โดยทั่วไปต้องระบุ Exit Interface ร่วมด้วย เพื่อให้ Router ทราบว่า Link-Local Next-Hop อยู่บน Link ใด

OSPFv3 ใช้ IPv6 Address เป็น Router ID หรือไม่?

ไม่ OSPFv3 Router ID ยังเป็นค่า 32-bit และแสดงในรูปแบบคล้าย IPv4 เช่น:

1.1.1.1

OSPFv3 ใช้ Link-Local Address หรือไม่?

ใช้ Link-Local Address เป็นองค์ประกอบสำคัญในการสื่อสาร ระหว่าง OSPFv3 Routers บน Link

IPv6 ใช้ Longest Prefix Match หรือไม่?

ใช้ Route ที่มี Prefix Match Specific กว่าจะได้รับการพิจารณา ก่อน Route ที่กว้างกว่า

Static Route กับ OSPFv3 ใช้พร้อมกันได้หรือไม่?

ได้ เช่นใช้ OSPFv3 เป็น Primary และใช้ Floating Static Route เป็น Backup โดยออกแบบ Administrative Distance ให้เหมาะสม

OSPFv3 Neighbor FULL แปลว่า Routing ใช้งานได้ทั้งหมดหรือไม่?

ไม่เสมอไป FULL แสดงว่า Neighbor Adjacency อยู่ในสถานะที่เหมาะสม แต่ยังต้องตรวจ LSDB, Routing Table, Prefix Advertisement, Forward Path และ Return Path

IPv6 Routing ต้องใช้ NAT หรือไม่?

Routing และ NAT เป็นคนละหน้าที่ IPv6 สามารถ Route Global Unicast Address แบบ End-to-End ได้โดยไม่จำเป็นต้องใช้ NAT เพื่อแก้ Address Shortage แบบ IPv4

IPv6 Routing ต้องเปิด ipv6 unicast-routing หรือไม่?

สำหรับ Cisco Router หรือ Layer 3 Device ที่ต้อง Forward IPv6 Traffic ระหว่าง Interface ควรตรวจว่า IPv6 Unicast Routing ถูกเปิดใช้งานตาม Platform และ Configuration

บทสรุป

IPv6 Routing บน Cisco ใช้หลักการ Routing พื้นฐาน คล้ายกับ IPv4 ในหลายส่วน แต่มีรายละเอียดเฉพาะของ IPv6 ที่ Network Engineer ต้องเข้าใจ

เริ่มจาก:

IPv6 Interface
      |
      v
Connected Route
      |
      v
Static Route
      |
      v
Default Route
      |
      v
Dynamic Routing
      |
      v
OSPFv3

Static Route:

ipv6 route
DESTINATION/PREFIX
NEXT-HOP

Default Route:

::/0

OSPFv3:

OSPFv3
  |
  +---- Router ID
  |
  +---- Area
  |
  +---- Neighbor
  |
  +---- Link-State Database
  |
  +---- SPF
  |
  +---- Cost
  |
  +---- IPv6 Routes

สิ่งที่สำคัญมากในการ Troubleshoot คือ อย่าตรวจเพียงว่า Route มีอยู่หรือไม่ แต่ต้องตรวจทั้ง:

IPv6 Address
      |
      v
Prefix
      |
      v
Link-Local
      |
      v
Neighbor
      |
      v
Routing Table
      |
      v
Next-Hop
      |
      v
Forward Path
      |
      v
Return Path
      |
      v
Security Policy
      |
      v
Application

เมื่อเข้าใจ Static Route, Default Route และพื้นฐาน OSPFv3 แล้ว ขั้นต่อไปคือการเจาะลึก OSPFv3 Neighbor, Area, LSDB, LSA, SPF และ Multi-Area IPv6 Routing เพื่อเข้าใจ Dynamic IPv6 Routing ในระดับที่ลึกขึ้น

บทความถัดไป: OSPFv3 บน Cisco: Neighbor, Area, LSDB, LSA และ SPF สำหรับ IPv6

Share this
Facebook Share X
TECHEREST COMMUNITY

Share your thoughts here

Join the conversation and share your perspective on this article.

Comments will load when you reach this section.