التوجيه الثابت مقابل التوجيه الديناميكي CCNA: مساران، وجهة واحدة
أسئلة التوجيه الثابت مقابل الديناميكي في CCNA تتلخص في خيارين فقط.
عند الحديث عن التوجيه في شبكة، لديك خياران رئيسيان:
- التوجيه الثابت: يتم تكوينه يدويًا بواسطة مسؤول الشبكة
- التوجيه الديناميكي: يتم تعلم المسارات تلقائيًا عبر البروتوكولات
معرفة متى تستخدم أي منهما — وكيفية تكوينهما — هي مهارة حاسمة في امتحان CCNA والشبكات الواقعية.
يُرشدك هذا المدونة عبر الفروقات، الأوامر، الإيجابيات\/السلبيات، وأمثلة المختبرات.
🧭 ما هو التوجيه الثابت؟
التوجيه الثابت يعني أنك تحدد المسار يدويًا الذي يجب أن تسلكه الحزمة.
ip route 192.168.2.0 255.255.255.0 192.168.1.2
هذا يخبر الموجه:
“للوصول إلى 192.168.2.0, قم بتوجيه المرور إلى 192.168.1.2.”
مزايا التوجيه الثابت
- سهل التكوين للشبكات الصغيرة
- بدون عبء على المعالج\/الذاكرة
- أكثر أمانًا (بدون إعلانات مسار)
- تحكم كامل في المسارات
عيوب التوجيه الثابت
- لا يتكيف مع تغييرات الشبكة
- يصبح معقدًا في الشبكات الكبيرة
- تحتاج إلى تحديثات يدوية إذا تغيرت الطوبولوجيا
ما هو التوجيه الديناميكي؟
التوجيه الديناميكي يستخدم بروتوكولات التوجيه لتعلم وتحديث المسارات تلقائيًا.
البروتوكولات الشائعة:
- ارقد في سلام (أقدم، متجه المسافة)
- OSPF (حديث، حالة الارتباط)
- EIGRP (مملوك لشركة سيسكو، هجين)
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
Advantages of Dynamic Routing
- يتكيف تلقائيًا مع التغييرات
- قابل للتوسع في الشبكات الكبيرة والمعقدة
- يقلل العبء الإداري
❌ عيوب التوجيه الديناميكي
- استخدام أكثر للمعالج/الذاكرة العشوائية
- يتطلب معرفة بالبروتوكول
- تكوين أكثر تعقيدًا قليلاً
Administrative Distance: How a Router Picks Between Routes
A router often learns more than one path to the same destination – a static route AND an OSPF-learned route to the same network, for example. Administrative Distance (AD) is the number Cisco routers use to decide which source to trust when that happens – lower always wins:
| Route source | Default AD |
|---|---|
| Connected interface | 0 |
| Static route | 1 |
| EIGRP | 90 |
| OSPF | 110 |
| ارقد في سلام | 120 |
A static route’s AD of 1 is why a static route always overrides a dynamically learned one to the same destination by default – it is treated as more trustworthy than any protocol’s guess. This matters directly for the next topic below.
Floating Static Routes: Static Routing’s Dynamic Trick
A floating static route is a static route configured with a higher AD than the dynamic protocol already running, so it sits unused as a backup and only activates if the dynamic route disappears:
ip route 192.168.2.0 255.255.255.0 10.0.0.2 200
The trailing 200 sets this static route’s AD to 200 – higher than OSPF’s 110, so OSPF wins while it is up. If OSPF loses the route (a link fails, a neighbor drops), this static route – now the best remaining option – takes over automatically. This is the real-world middle ground between pure static and pure dynamic: a guaranteed backup path that does not require protocol overhead until it is actually needed.
🆚 التوجيه الثابت مقابل الديناميكي – مقارنة جنبًا إلى جنب
| الميزة | التوجيه الثابت | التوجيه الديناميكي |
|---|---|---|
| التكوين | يدوي | تلقائي عبر البروتوكول |
| القدرة على التكيف | لا | نعم |
| الموارد المستخدمة | منخفض | متوسط-عالي |
| الأفضل لـ | الشبكات الصغيرة/المأمونة | الشبكات الكبيرة/المتغيرة |
| بروتوكولات المثال | غير متوفر | RIP, OSPF, EIGRP |
🧪 مثال مختبر Packet Tracer
توبولوجيا المختبر:
- الموجه1 (192.168.1.1) → الموجه2 (192.168.2.1)
مثال التوجيه الثابت:
على الموجه1:
ip route 192.168.2.0 255.255.255.0 10.0.0.2
على الموجه2:
ip route 192.168.1.0 255.255.255.0 10.0.0.1
مثال التوجيه OSPF:
على كلا الموجهين:
موجه ospf 1
شبكة 192.168.0.0 0.0.255.255 منطقة 0
Verifying and Troubleshooting Routes
Configuring a route and confirming it is actually being used are different steps, and skipping the second one is a common exam and real-world mistake:
Router# show ip route
Router# show ip protocols
Router# traceroute 192.168.2.1
show ip route shows every route the router currently has installed and which source (S for static, O for OSPF, and so on) won it – this is where administrative distance decisions become visible directly. show ip protocols confirms a dynamic routing protocol is actually running and which networks it is advertising – a surprisingly common exam trap is a router ospf block with the wrong wildcard mask, which looks configured but advertises nothing. traceroute from an end device shows the actual hop-by-hop path traffic takes, which is the fastest way to confirm a route is not just installed but genuinely being used end to end.
💬 متى تستخدم التوجيه الثابت أو الديناميكي؟
استخدم التوجيه الثابت عندما:
- شبكتك صغيرة أو لا تتغير غالبًا
- أنت تريد التحكم الكامل
- Security is a concern
Use Dynamic Routing When:
- You manage large or frequently changing networks
- You want automatic failover
- You need protocol flexibility (OSPF, EIGRP)
learn More
- ✅ What Is Routing in Networking?
- ✅ CCNA Lab Exercises
- 🌐 Cisco Static Routing Overview
- 🌐 Understanding OSPF – NetworkLessons
🙋♂️FAQ
What is the main difference between static and dynamic routing?
Static routing is manually configured. Dynamic routing uses protocols to learn and adjust paths automatically.
Is static routing better than dynamic?
Static routing is better for small, stable networks. Dynamic routing is better for large, scalable environments.
Which protocol is used in dynamic routing?
Popular ones are RIP, OSPF, and EIGRP (Cisco). OSPF is often preferred in enterprise setups.
Does CCNA require knowing both?
Yes, you must know how to configure and troubleshoot both static and dynamic routing methods for the CCNA exam.
إذا كنت تفضّل أن يشرح لك أحدهم ذلك خطوة بخطوة، أو تحتاج إلى مختبر Packet Tracer محدد مكتمل ومشرح بدلاً من أن تحله بنفسك، راجع دروس CCNA و Packet Tracer الصفحة التي توضح كيفية عمل ذلك.
Routing decisions and VLAN design go hand in hand on the real exam – see VLANs and Inter-VLAN Routing Explained for CCNA for the segmentation side of this topic.


2 Comments
Thanks a lot for the feedback! The RSS feed should be working, but I’ll check it from my end. Please let me know which RSS reader you’re using so I can help further.
Danke für die Mühe, die man dem Text anmerkt. Ich möchte das demnächst weiterempfehlen.