OSPF: الـ Virtual Link لـ Area مفصولة
كل area لازم تلمس area صفر. لما شركة تضيف area جديدة ورا area ثانية، شبكاتها ما توصل لأحد. الحل المؤقت: virtual link عبر الـ transit area، بين الـ router IDs حق الـ ABRين. نشوف المشكلة، ونبني الـ virtual link من الطرفين، ونقرا show ip ospf virtual-links، ونعرف قيوده.
نص شرح المعلم والكود الذي كتبه ونتيجة تشغيله، بنفس ترتيب الدرس.
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
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
endenable
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
endenable
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
endenable
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
interface g0/0/1
ip address 10.0.45.4 255.255.255.0
no shutdown
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
network 10.0.45.0 0.0.0.255 area 3
endenable
configure terminal
hostname R5
no ip domain-lookup
interface g0/0/0
ip address 10.0.45.5 255.255.255.0
no shutdown
interface lo1
ip address 172.16.5.1 255.255.255.0
ip ospf network point-to-point
router ospf 1
router-id 5.5.5.5
network 10.0.45.0 0.0.0.255 area 3
network 172.16.5.0 0.0.0.255 area 3
endحيّاك الله. في درس ترتيب المسارات قلنا: كل area لازم تلمس area صفر. والحين نشوف وش يصير لما القاعدة تنكسر. الشركة اشترت فرع جديد، R5، وربطوه بـ R4، وحطوه في area three. و R4 أصلاً في area two، وما يلمس area صفر. R4 يعرف شبكة R5، لأنه جار مباشر. نشوف R1، في الطرف الثاني.
show ip route 172.16.5.0show ip route 172.16.5.0R1 ما يعرف الشبكة. السبب: R4 الحين في area two و area three، يعني نظرياً ABR. لكن الـ ABR الحقيقي لازم يكون متصل بـ area صفر. و R4 ما هو متصل. فـ summaries area three ما تطلع منه للـ backbone، وحسب قاعدة الـ backbone، ما تنمرر من area two لـ area صفر. الحل الصحيح على المدى البعيد: تعيد التصميم، وتربط area three بـ area صفر مباشرة. والحل المؤقت: virtual link.
الـ virtual link نفق منطقي لـ area صفر، يمر عبر area ثانية اسمها الـ transit area. يعني R4 يصير كأنه متصل بالـ backbone عن طريق R3. والأمر: area ورقم الـ transit area، و virtual-link، والـ router ID حق الطرف الثاني، مو الـ IP. وينكتب على الـ ABR ين الاثنين. نكتب الطرف الأول على R3.
configure terminal
router ospf 1
area 2 virtual-link 4.4.4.4
end
show ip ospf virtual-linksالسطر الأول يقول is up، وهذا معناه بس إن فيه طريق لـ R4 عبر area two. لكن تحت مكتوب Adjacency State DOWN، يعني ما فيه جيرة، لأن الطرف الثاني ما انكتب. الحين دورك. كمّل الطرف الثاني على R4، وتأكد إن الـ virtual link صار up، وإن R1 يشوف شبكة R5. وقّف الفيديو، وجرّب.
على R4: router ospf 1 ثم area 2 virtual-link 3.3.3.3. بعدها show ip ospf virtual-links على R4، و show ip route 172.16.5.0 على R1.
الحل.
configure terminal
router ospf 1
area 2 virtual-link 3.3.3.3
end
show ip ospf virtual-linksshow ip route 172.16.5.0الـ Adjacency State صار FULL، والـ transit area هي area two، والجار three dot three dot three dot three. و R1 الحين يشوف one seventy two dot sixteen dot five dot zero كـ O IA. ولاحظ: الـ virtual link جزء من area صفر، فلو عندك authentication على area صفر، لازم تطبقه على الـ virtual link كمان. الخلاصة: كل area لازم تلمس الـ backbone، والـ virtual link حل مؤقت عبر transit area، بالـ router IDs. والدرس الجاي: الـ cost وكيف تتحكم في المسار.
03 / دروس الكورس (74)
- 01حيّاكم الله: من ENCOR إلى ENARSI
- 02كيف يختار الراوتر المسار: Longest Match و Administrative Distance
- 03الـ Prefix List: فلترة بالشبكة وبطول الـ prefix
- 04الـ Route Map: لغة السياسات في التوجيه
- 05الـ Distribute List: الفلترة في EIGRP وفي OSPF
- 06الـ Redistribution: ربط EIGRP مع OSPF
- 07مشاكل الـ Redistribution في أكثر من نقطة: Tags تمنع الـ Loop
- 08الـ Summarization: مسار واحد بدل أربعة، و Null0
- 09منع الـ Loops: Split Horizon و Route Poisoning
- 10الـ Policy Based Routing: توجيه حسب المصدر
- 11الـ VRF-Lite: أكثر من Routing Table في راوتر واحد
- 12الـ BFD: اكتشاف العطل في جزء من الثانية
- 13تشخيص أعطال التوجيه: طريقة منظمة على شبكة خربانة
- 14EIGRP: شروط الجيرة وتشخيص الجار اللي ما يطلع
- 15EIGRP: الـ Metric بالأرقام، وكيف تتحكم في المسار
- 16EIGRP: الـ DUAL و الـ Feasible Successor
- 17EIGRP Named Mode: كل الإعدادات في مكان واحد
- 18EIGRP: الـ Variance و Unequal-Cost Load Balancing
- 19EIGRP Stub: حماية الشبكة من الـ Queries
- 20EIGRP: الـ Leak-Map والـ Offset-List
- 21EIGRP: الـ Authentication بـ MD5 و SHA-256
- 22EIGRP for IPv6: الـ Classic والـ Named
- 23تشخيص EIGRP: ثلاث مشاكل في طريق واحد
- 24OSPF: حالات الجيرة، و Hello، و MTU
- 25OSPF: أنواع الشبكات و الـ DR و الـ BDR
- 26OSPF: أنواع الـ LSAs وقراءة الـ Database
- 27OSPF: ترتيب تفضيل المسارات وقاعدة الـ Backbone
- 28OSPF: الـ Stub و Totally Stubby Areas
- 29OSPF: الـ NSSA و LSA النوع سبعة
- 30OSPF: التلخيص في الـ ABR والـ ASBR
- 31OSPF: الفلترة الصحيحة بين الـ Areas
- 32OSPF: الـ Virtual Link لـ Area مفصولةانت هنا
- 33OSPF: الـ Cost والـ Reference Bandwidth
- 34OSPF: الـ Authentication بـ MD5 و SHA
- 35OSPFv3: الـ OSPF حق IPv6
- 36تشخيص OSPF: جيران ما يطلعون
- 37BGP: الجلسات وحالاتها
- 38BGP: الـ iBGP بين الـ Loopbacks
- 39BGP: الـ Next Hop في الـ iBGP و next-hop-self
- 40BGP: الـ Route Reflector بدل الـ Full Mesh
- 41BGP: خوارزمية اختيار أفضل مسار
- 42BGP: التحكم في الترافيك الطالع بالـ Weight والـ Local Preference
- 43BGP: التحكم في الترافيك الداخل بالـ AS Path Prepend والـ MED
- 44BGP: الفلترة بالـ Prefix List وخطر الـ Transit
- 45BGP: الـ Regular Expressions و AS Path Filter
- 46BGP: الـ Communities و no-export
- 47BGP: حماية الجلسات بالـ Password و TTL Security
- 48MP-BGP: BGP لـ IPv6 بالـ Address Families
- 49تشخيص BGP: جلسات واقعة ومسار مو valid
- 50MPLS و LDP: Core بدون BGP
- 51MPLS Layer 3 VPN: الـ VRF و RD و RT و VPNv4
- 52تشخيص MPLS VPN: من الـ Core لفوق
- 53DMVPN: الـ mGRE و NHRP
- 54DMVPN: التوجيه فوق النفق و Phase 2
- 55DMVPN: الـ Phase 3 والحماية بـ IPsec
- 56AAA: TACACS+ و RADIUS وتشخيص الدخول
- 57الـ ACLs: الترتيب، والـ Sequence Numbers، والمكان الصح
- 58الـ Time-Based ACL: صلاحيات حسب الوقت
- 59الـ ACLs في IPv6 وفخ الـ Neighbor Discovery
- 60الـ uRPF: الحماية من العناوين المزوّرة
- 61الـ CoPP: حماية الـ Control Plane
- 62حماية الـ Management Plane: SSH و Access-Class
- 63IPv6 First-Hop Security: RA Guard و DHCPv6 Guard و Source Guard
- 64الدخول على الأجهزة والـ Backup بـ TFTP
- 65SNMP: من v2c المكشوف إلى SNMPv3
- 66الـ Syslog: مستويات الخطورة ووين تروح الرسائل
- 67الـ Debug بشرط: بدون ما تغرق الراوتر
- 68DHCP و الـ Relay: تشخيص أجهزة ما تاخذ عنوان
- 69DHCPv6: Stateful و Stateless والـ Relay
- 70الـ IP SLA و Object Tracking: Failover ذكي بين مزوّدين
- 71الـ Flexible NetFlow: مين يتكلم مع مين
- 72Catalyst Center Assurance: التشخيص من لوحة وحدة
- 73مشروع التشخيص الكامل: الشركة طاحت من الإنترنت
- 74الخاتمة: الاستعداد لاختبار ENARSI و وش بعده