OSPF: التلخيص في الـ ABR والـ ASBR

في OSPF التلخيص يصير في الحدود بس: الـ ABR يلخّص الشبكات اللي تطلع من area بأمر area range، والـ ASBR يلخّص المسارات الخارجية بأمر summary-address. نطبّق الاثنين، ونشوف الـ discard route لـ Null0، وكيف الـ metric حق الـ summary يتحسب.

01 / ملخص الدرس

OSPF: التلخيص في الـ ABR والـ ASBR

في OSPF التلخيص يصير في الحدود بس: الـ ABR يلخّص الشبكات اللي تطلع من area بأمر area range، والـ ASBR يلخّص المسارات الخارجية بأمر summary-address. نطبّق الاثنين، ونشوف الـ discard route لـ Null0، وكيف الـ metric حق الـ summary يتحسب.

02 / شرح الدرس مكتوبًا

نص شرح المعلم والكود الذي كتبه ونتيجة تشغيله، بنفس ترتيب الدرس.

R1
enable
configure terminal
hostname R1
no ip domain-lookup
interface g0/0/0
ip address 10.0.12.1 255.255.255.0
no shutdown
interface lo0
ip address 1.1.1.1 255.255.255.255
interface lo1
ip address 172.16.1.1 255.255.255.0
ip ospf network point-to-point
interface lo10
ip address 10.1.0.1 255.255.255.0
ip ospf network point-to-point
interface lo11
ip address 10.1.1.1 255.255.255.0
ip ospf network point-to-point
interface lo12
ip address 10.1.2.1 255.255.255.0
ip ospf network point-to-point
interface lo13
ip address 10.1.3.1 255.255.255.0
ip ospf network point-to-point
end
enable
configure terminal
router ospf 1
router-id 1.1.1.1
network 10.0.12.0 0.0.0.255 area 1
network 172.16.1.0 0.0.0.255 area 1
network 1.1.1.1 0.0.0.0 area 1
network 10.1.0.0 0.0.3.255 area 1
end
R2
enable
configure terminal
hostname R2
no ip domain-lookup
interface g0/0/0
ip address 10.0.12.2 255.255.255.0
no shutdown
interface g0/0/1
ip address 10.0.23.2 255.255.255.0
no shutdown
interface lo0
ip address 2.2.2.2 255.255.255.255
interface lo1
ip address 172.16.2.1 255.255.255.0
ip ospf network point-to-point
end
enable
configure terminal
router ospf 1
router-id 2.2.2.2
network 10.0.12.0 0.0.0.255 area 1
network 10.0.23.0 0.0.0.255 area 0
network 172.16.2.0 0.0.0.255 area 0
network 2.2.2.2 0.0.0.0 area 1
end
R3
enable
configure terminal
hostname R3
no ip domain-lookup
interface g0/0/0
ip address 10.0.23.3 255.255.255.0
no shutdown
interface g0/0/1
ip address 10.0.34.3 255.255.255.0
no shutdown
interface lo0
ip address 3.3.3.3 255.255.255.255
interface lo1
ip address 172.16.3.1 255.255.255.0
ip ospf network point-to-point
end
enable
configure terminal
router ospf 1
router-id 3.3.3.3
network 10.0.23.0 0.0.0.255 area 0
network 10.0.34.0 0.0.0.255 area 2
network 172.16.3.0 0.0.0.255 area 0
network 3.3.3.3 0.0.0.0 area 0
end
R4
enable
configure terminal
hostname R4
no ip domain-lookup
interface g0/0/0
ip address 10.0.34.4 255.255.255.0
no shutdown
interface lo0
ip address 4.4.4.4 255.255.255.255
interface lo1
ip address 172.16.4.1 255.255.255.0
ip ospf network point-to-point
ip route 192.168.44.0 255.255.255.0 null0
ip route 192.168.45.0 255.255.255.0 null0
ip route 192.168.46.0 255.255.255.0 null0
ip route 192.168.47.0 255.255.255.0 null0
end
enable
configure terminal
router ospf 1
router-id 4.4.4.4
network 10.0.34.0 0.0.0.255 area 2
network 172.16.4.0 0.0.0.255 area 2
network 4.4.4.4 0.0.0.0 area 2
redistribute static subnets
end

حيّاك الله. في درس التلخيص العام قلنا: EIGRP يلخّص على أي واجهة، لكن OSPF لا. ليش؟ لأن كل الراوترات داخل الـ area لازم تشوف نفس الـ LSDB بالضبط. فما ينفع راوتر في النص يخفي تفاصيل. التلخيص في OSPF يصير بس في مكانين: الـ ABR، والـ ASBR.

في الـ ABR: area ورقم الـ area اللي فيها الشبكات، و range، والـ summary. وهذا يلخّص الـ LSAs من النوع ثلاثة اللي تطلع من هذي الـ area. وفي الـ ASBR: summary-address والـ summary. وهذا يلخّص الـ LSAs من النوع خمسة أو سبعة. والغلطة الأشهر: تكتب summary-address على ABR عشان تلخّص شبكات داخلية، أو area range على ASBR. ما يشتغلون. المعمل: نفس شبكة الثلاث areas، و R1 عنده أربع LANs جديدة في area one: ten dot one dot zero dot zero لين ten dot one dot three dot zero. و R4 عنده أربع شبكات خارجية: one ninety two dot one sixty eight dot forty four لين forty seven. نشوف R4 كيف يشوف شبكات R1.

R4
show ip route ospf | include 10.1

أربع مسارات O IA. الـ ABR اللي يطلّعها من area one هو R2. نلخّص هناك بـ ten dot one dot zero dot zero slash twenty two.

R2
configure terminal
router ospf 1
area 1 range 10.1.0.0 255.255.252.0
end
R4
show ip route ospf | include 10.1

R4 الحين عنده مسار واحد. والـ metric حق الـ summary؟ الـ ABR ياخذ أعلى cost بين الشبكات اللي داخلها، مو الأقل زي EIGRP. ونشوف الـ discard route في R2.

R2
show ip route 10.1.0.0 255.255.252.0

R2 عنده المسار ten dot one dot zero dot zero slash twenty two عن طريق Null0، بنفس الفكرة اللي شرحناها في EIGRP: أي packet لجزء من الـ summary ما له مسار أدق، تنرمى بدل ما تلف. وانتبه: area range يلخّص بس لو فيه على الأقل شبكة وحدة داخل المدى. ولو كل الشبكات طاحت، الـ summary يختفي. الحين الجهة الثانية: المسارات الخارجية. نشوفها من R1.

R1
show ip route ospf | include E2

أربع مسارات E2، وكلها من R4. الحين دورك. لخّصهم في مسار واحد. فكّر أول: أي راوتر؟ وأي أمر؟ وكم الـ summary؟ وقّف الفيديو، وجرّب.

تمرين

على R4 (الـ ASBR): router ospf 1 ثم summary-address 192.168.44.0 255.255.252.0. بعدها show ip route ospf على R1.

الحل.

R4
configure terminal
router ospf 1
summary-address 192.168.44.0 255.255.252.0
end

R1 عنده one ninety two dot one sixty eight dot forty four dot zero slash twenty two بس. والحساب: أربع شبكات متتالية، الـ octet الثالث من forty four لين forty seven، يعني اثنين bits، فالطول twenty two. الخلاصة: OSPF يلخّص في الحدود بس، area range في الـ ABR للمسارات الداخلية، و summary-address في الـ ASBR للخارجية. والدرس الجاي: الفلترة في OSPF.

03 / دروس الكورس (74)
  1. 01حيّاكم الله: من ENCOR إلى ENARSI
  2. 02كيف يختار الراوتر المسار: Longest Match و Administrative Distance
  3. 03الـ Prefix List: فلترة بالشبكة وبطول الـ prefix
  4. 04الـ Route Map: لغة السياسات في التوجيه
  5. 05الـ Distribute List: الفلترة في EIGRP وفي OSPF
  6. 06الـ Redistribution: ربط EIGRP مع OSPF
  7. 07مشاكل الـ Redistribution في أكثر من نقطة: Tags تمنع الـ Loop
  8. 08الـ Summarization: مسار واحد بدل أربعة، و Null0
  9. 09منع الـ Loops: Split Horizon و Route Poisoning
  10. 10الـ Policy Based Routing: توجيه حسب المصدر
  11. 11الـ VRF-Lite: أكثر من Routing Table في راوتر واحد
  12. 12الـ BFD: اكتشاف العطل في جزء من الثانية
  13. 13تشخيص أعطال التوجيه: طريقة منظمة على شبكة خربانة
  14. 14EIGRP: شروط الجيرة وتشخيص الجار اللي ما يطلع
  15. 15EIGRP: الـ Metric بالأرقام، وكيف تتحكم في المسار
  16. 16EIGRP: الـ DUAL و الـ Feasible Successor
  17. 17EIGRP Named Mode: كل الإعدادات في مكان واحد
  18. 18EIGRP: الـ Variance و Unequal-Cost Load Balancing
  19. 19EIGRP Stub: حماية الشبكة من الـ Queries
  20. 20EIGRP: الـ Leak-Map والـ Offset-List
  21. 21EIGRP: الـ Authentication بـ MD5 و SHA-256
  22. 22EIGRP for IPv6: الـ Classic والـ Named
  23. 23تشخيص EIGRP: ثلاث مشاكل في طريق واحد
  24. 24OSPF: حالات الجيرة، و Hello، و MTU
  25. 25OSPF: أنواع الشبكات و الـ DR و الـ BDR
  26. 26OSPF: أنواع الـ LSAs وقراءة الـ Database
  27. 27OSPF: ترتيب تفضيل المسارات وقاعدة الـ Backbone
  28. 28OSPF: الـ Stub و Totally Stubby Areas
  29. 29OSPF: الـ NSSA و LSA النوع سبعة
  30. 30OSPF: التلخيص في الـ ABR والـ ASBRانت هنا
  31. 31OSPF: الفلترة الصحيحة بين الـ Areas
  32. 32OSPF: الـ Virtual Link لـ Area مفصولة
  33. 33OSPF: الـ Cost والـ Reference Bandwidth
  34. 34OSPF: الـ Authentication بـ MD5 و SHA
  35. 35OSPFv3: الـ OSPF حق IPv6
  36. 36تشخيص OSPF: جيران ما يطلعون
  37. 37BGP: الجلسات وحالاتها
  38. 38BGP: الـ iBGP بين الـ Loopbacks
  39. 39BGP: الـ Next Hop في الـ iBGP و next-hop-self
  40. 40BGP: الـ Route Reflector بدل الـ Full Mesh
  41. 41BGP: خوارزمية اختيار أفضل مسار
  42. 42BGP: التحكم في الترافيك الطالع بالـ Weight والـ Local Preference
  43. 43BGP: التحكم في الترافيك الداخل بالـ AS Path Prepend والـ MED
  44. 44BGP: الفلترة بالـ Prefix List وخطر الـ Transit
  45. 45BGP: الـ Regular Expressions و AS Path Filter
  46. 46BGP: الـ Communities و no-export
  47. 47BGP: حماية الجلسات بالـ Password و TTL Security
  48. 48MP-BGP: BGP لـ IPv6 بالـ Address Families
  49. 49تشخيص BGP: جلسات واقعة ومسار مو valid
  50. 50MPLS و LDP: Core بدون BGP
  51. 51MPLS Layer 3 VPN: الـ VRF و RD و RT و VPNv4
  52. 52تشخيص MPLS VPN: من الـ Core لفوق
  53. 53DMVPN: الـ mGRE و NHRP
  54. 54DMVPN: التوجيه فوق النفق و Phase 2
  55. 55DMVPN: الـ Phase 3 والحماية بـ IPsec
  56. 56AAA: TACACS+ و RADIUS وتشخيص الدخول
  57. 57الـ ACLs: الترتيب، والـ Sequence Numbers، والمكان الصح
  58. 58الـ Time-Based ACL: صلاحيات حسب الوقت
  59. 59الـ ACLs في IPv6 وفخ الـ Neighbor Discovery
  60. 60الـ uRPF: الحماية من العناوين المزوّرة
  61. 61الـ CoPP: حماية الـ Control Plane
  62. 62حماية الـ Management Plane: SSH و Access-Class
  63. 63IPv6 First-Hop Security: RA Guard و DHCPv6 Guard و Source Guard
  64. 64الدخول على الأجهزة والـ Backup بـ TFTP
  65. 65SNMP: من v2c المكشوف إلى SNMPv3
  66. 66الـ Syslog: مستويات الخطورة ووين تروح الرسائل
  67. 67الـ Debug بشرط: بدون ما تغرق الراوتر
  68. 68DHCP و الـ Relay: تشخيص أجهزة ما تاخذ عنوان
  69. 69DHCPv6: Stateful و Stateless والـ Relay
  70. 70الـ IP SLA و Object Tracking: Failover ذكي بين مزوّدين
  71. 71الـ Flexible NetFlow: مين يتكلم مع مين
  72. 72Catalyst Center Assurance: التشخيص من لوحة وحدة
  73. 73مشروع التشخيص الكامل: الشركة طاحت من الإنترنت
  74. 74الخاتمة: الاستعداد لاختبار ENARSI و وش بعده