EIGRP: الـ Leak-Map والـ Offset-List
أداتين للضبط الدقيق في EIGRP. الـ leak-map تخلي summary يمرر شبكة محددة معه، والـ offset-list تزيد الـ metric لمسارات معيّنة بس، في اتجاه in أو out، بدون ما تلمس الـ delay حق الواجهة اللي يأثر على كل المسارات.
نص شرح المعلم والكود الذي كتبه ونتيجة تشغيله، بنفس ترتيب الدرس.
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 eigrp 100
eigrp router-id 1.1.1.1
network 10.0.12.0 0.0.0.255
network 172.16.1.0 0.0.0.255
network 1.1.1.1 0.0.0.0
no auto-summary
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 eigrp 100
eigrp router-id 2.2.2.2
network 10.0.12.0 0.0.0.255
network 10.0.23.0 0.0.0.255
network 172.16.2.0 0.0.0.255
network 2.2.2.2 0.0.0.0
no auto-summary
end
enable
configure terminal
interface g0/0/0
ip summary-address eigrp 100 10.3.0.0 255.255.252.0
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 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
interface lo10
ip address 10.3.0.1 255.255.255.0
interface lo11
ip address 10.3.1.1 255.255.255.0
interface lo12
ip address 10.3.2.1 255.255.255.0
interface lo13
ip address 10.3.3.1 255.255.255.0
end
enable
configure terminal
router eigrp 100
eigrp router-id 3.3.3.3
network 10.0.23.0 0.0.0.255
network 172.16.3.0 0.0.0.255
network 10.3.0.0 0.0.0.255
network 10.3.1.0 0.0.0.255
network 10.3.2.0 0.0.0.255
network 10.3.3.0 0.0.0.255
network 3.3.3.3 0.0.0.0
no auto-summary
endحيّاك الله. في درس الـ summarization لخّصنا أربع شبكات بـ slash twenty two واحد. لكن أحياناً تبغى الاثنين: الـ summary، ومعه شبكة وحدة محددة. مثلاً شبكة السيرفرات ten dot three dot two dot zero، لأن عندك سياسة عليها، أو طريق ثاني لها. وهنا يجي الـ leak-map. المعمل: R2 يلخّص شبكات R3 باتجاه R1، و R1 يشوف الـ slash twenty two بس.
show ip route eigrp | include 10.3الـ leak-map هي route map. اللي يطابق permit فيها يمر مع الـ summary كمسار مستقل. نكتب prefix list فيها ten dot three dot two dot zero slash twenty four، و route map اسمها LEAK تطابقها، وبعدها نضيف leak-map LEAK لنفس أمر الـ summary.
configure terminal
ip prefix-list SRV seq 10 permit 10.3.2.0/24
route-map LEAK permit 10
match ip address prefix-list SRV
interface g0/0/0
ip summary-address eigrp 100 10.3.0.0 255.255.252.0 leak-map LEAK
endshow ip route eigrp | include 10.3الحين R1 عنده الـ slash twenty two، ومعه ten dot three dot two dot zero slash twenty four لحاله. والشبكات الثانية للحين مخفية. وانتبه: لو الـ route map اللي في الـ leak-map مو موجودة، ما يمر شي إضافي. ولو كتبت permit بدون match، كل الشبكات تمر، والـ summary يصير بلا فايدة.
الأداة الثانية: offset-list. في درس الـ metric غيّرنا الـ delay على الواجهة، وهذا يأثر على كل المسارات اللي تمر منها. لكن لو تبغى تأثر على مسار واحد بس؟ الـ offset-list يضيف رقم على الـ metric للمسارات اللي تطابق ACL، في اتجاه in أو out، وعلى واجهة معيّنة أو كلها. نجرّب على R1. نشوف الـ metric حق one seventy two dot sixteen dot three dot zero الحين.
show ip route 172.16.3.0 | include metricالـ metric one hundred thirty one thousand seventy two. نكتب ACL رقم ثلاثين تطابق الشبكة، و offset-list ثلاثين in بـ ألف، على g zero slash zero slash zero.
configure terminal
access-list 30 permit 172.16.3.0 0.0.0.255
router eigrp 100
offset-list 30 in 1000 g0/0/0
end
show ip route 172.16.3.0 | include metricصار one hundred thirty two thousand seventy two، يعني زاد ألف بالضبط. والمسارات الثانية ما تغيّرت. والاستخدام الحقيقي: عندك طريقين، وتبغى مسار معيّن يفضّل الطريق الثاني، بدون ما تغيّر باقي المسارات. الحين دورك. على R2 هذي المرّة، استخدم offset-list باتجاه out، على g zero slash zero slash zero اللي رايحة لـ R1، تزيد خمسمية على شبكة R2، يعني one seventy two dot sixteen dot two dot zero. والنتيجة على R1: كم بيصير الـ metric؟ وقّف الفيديو، وجرّب.
على R2: access-list 40 permit 172.16.2.0 0.0.0.255، و router eigrp 100 ثم offset-list 40 out 500 g0/0/0. بعدها على R1: show ip route 172.16.2.0.
الحل.
configure terminal
access-list 40 permit 172.16.2.0 0.0.0.255
router eigrp 100
offset-list 40 out 500 g0/0/0
endshow ip route 172.16.2.0 | include metricكان one hundred thirty thousand eight hundred sixteen، وصار one hundred thirty one thousand three sixteen. الخمسمية انضافت في R2 قبل ما يعلن المسار. الفرق: in يأثر على الراوتر نفسه ومن وراه، و out يأثر على الجار ومن وراه. الخلاصة: الـ leak-map يمرر مسارات محددة مع الـ summary، والـ offset-list يعدّل metric مسارات محددة. والدرس الجاي: الـ authentication في EIGRP.
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 و وش بعده