Chapterبەش 4 · Lectureوانە 4.3

RIP: The Simplest Routing ProtocolRIP: سادەترین پرۆتۆکۆڵی ڕێدۆزی

RIP from the inside: hop count (1–15, 16 = unreachable), updates every 30 seconds and the four Cisco timers, RIPv1 versus RIPv2 versus RIPng, the four configuration commands (router rip, version 2, no auto-summary, network), verification with show ip route, show ip protocols and debug ip rip, and three Packet Tracer labs — two routers, RIP with VLANs and RIP with /18 subnets — plus where RIP still fits in 2026.

لە ناوەوە: ژمارەی (⁦1–15⁩، ⁦16⁩ = ناگەیەنرێت)، نوێکردنەوە هەموو ⁦30⁩ چرکە و چوار Cisco، ⁦RIPv1⁩ و ⁦RIPv2⁩ و RIPng، چوار ڕێکخستن (router rip، ⁦version 2⁩، ⁦no auto-summary⁩، network)، پشکنین بە show ip route، show ip protocols و debug ip rip و سێ تاقیکردنەوەی Packet Tracer — دوو ، لەگەڵ و لەگەڵ ⁦172.16.0.0/18⁩ — هەروەها لە ⁦2026⁩دا هێشتا لە کوێ دەگونجێت.

18 min read19 خولەک خوێندنەوە · 17 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Explain how RIP measures paths (hop count, 16 = unreachable) and why it can choose a slow path.
  • Describe RIP’s updates and timers and compare RIPv1, RIPv2 and RIPng.
  • Configure RIPv2 with router rip, version 2, no auto-summary and network, and say what the network command really matches.
  • Verify RIP with show ip route, show ip protocols and debug ip rip.
  • Build the three labs (two routers, VLANs, subnets) and judge where RIP fits today.
  • ڕوون بکەیتەوە چۆن ڕێگاکان دەپێوێت (ژمارەی ، ⁦16⁩ = ناگەیەنرێت) و بۆچی دەتوانێت ڕێگایەکی خاو هەڵبژێرێت.
  • نوێکردنەوە و وەسف بکەیت و ⁦RIPv1⁩، ⁦RIPv2⁩ و RIPng بەراورد بکەیت.
  • ⁦RIPv2⁩ بە router rip، ⁦version 2⁩، ⁦no auto-summary⁩ و network ڕێک بخەیت و بڵێیت network بە ڕاستی لەگەڵ چی دەگونجێت.
  • بە show ip route، show ip protocols و debug ip rip بپشکنیت.
  • سێ تاقیکردنەوەکە دروست بکەیت (دوو ، ، ) و بڕیار بدەیت ئەمڕۆ لە کوێ دەگونجێت.

What RIP isRIP چییە

RIP, the Routing Information Protocol, is the simplest routing protocol and the classic distance-vector protocol (Distance vector and link state). Its job is to spread routing information among the routers of a network. Every RIP router sends routing updates to its neighbours: “these are the networks I know, and this is how far each one is.” Each neighbour builds its own picture from them, keeps a routing table of the best paths and updates it whenever new updates arrive.

، Routing Information Protocol، سادەترین و نموونەی کلاسیکی (مەودای ئاڕاستە و بارودۆخی بەستەر). کارەکەی بڵاوکردنەوەی زانیاریی لە نێوان . هەموو نوێکردنەوەی بۆ دراوسێکانی دەنێرێت: «ئەمانە ئەو کە دەیانناسم و ئەمەش دووریی هەریەکەیانە.» هەر دراوسێیەک وێنەی خۆی لەوانەوە دروست دەکات، لە باشترین ڕێگەکان هەڵدەگرێت و هەر کاتێک نوێکردنەوەی نوێ دەگات نوێی دەکاتەوە.

RIP at a glance, a card next to a router icon. Family: distance vector (Bellman-Ford). Metric: hop count, 1–15; 16 = unreachable. Updates: the whole table every 30 s, plus triggered updates. Sent to: RIPv2 224.0.0.9, RIPv1 255.255.255.255. Transport: UDP port 520 (RIPng: 521). Cisco administrative distance: 120.RIP بە یەک نیگا، کارتێک لە تەنیشت وێنەی ڕێدۆزێک. بنەماڵە: مەودای ئاڕاستە (بێڵمان-فۆرد). پێوانە: ژمارەی بازەکان، 1–15؛ 16 = ناگەیەنرێت. نوێکردنەوە: هەموو خشتەکە هەموو 30 چرکە، لەگەڵ نوێکردنەوەی دەستبەجێ. بۆ: 224.0.0.9 لە RIPv2دا، 255.255.255.255 لە RIPv1دا. گواستنەوە: پۆرتی UDP 520 (RIPng: 521). مەودای بەڕێوەبەریی Cisco: 120.
Everything about RIP on one card.هەموو شتێک لەبارەی لەسەر یەک کارت.CêIT

Hop count: 1 to 15, and 16 means unreachableژمارەی بازەکان: 1 تا ⁦15⁩؛ ⁦16⁩ واتە ناگەیەنرێت

RIP’s metric is the hop count: the number of routers a packet must pass to reach the network. Each router on the way adds one hop, the cost of a path is the sum, and the route with the lowest count wins. A network one router away has metric 1. The largest usable value is 15; the value 16 means infinity — the network cannot be reached. So RIP cannot serve networks in which a path crosses more than 15 routers. (How to count hops on a drawing is shown in Hop count.)

ژمارەی : ژمارەی ئەو دەبێت پێیاندا تێپەڕێت تا بگاتە . هەر سەر ڕێگا یەک زیاد دەکات، تێچووی ڕێگایەک کۆی ئەوانە و ڕێگەی خاوەن کەمترین ژمارە دەباتەوە. کە یەک دوورە 1ـی هەیە. گەورەترین بەهای بەکارهاتوو ⁦15⁩ـە؛ بەهای ⁦16⁩ واتە — ناگەیەنرێت. بۆیە ناتوانێت خزمەتی ئەو بکات کە ڕێگایەکیان بە زیاتر لە ⁦15⁩ تێپەڕێت. (چۆنیەتیی ژماردنی لەسەر وێنە لە ژمارەی بازەکاندا پیشان دراوە.)

A chain of routers starting at R1 and numbered 1 to 16. The links up to router 15 are green: a network 15 hops away is reachable with metric 15, and RIP is for networks no more than 15 routers wide. The sixteenth is orange and crossed out: metric 16 means unreachable, and it is also used to poison a failed route.زنجیرەیەک ڕێدۆز کە لە R1ـەوە دەست پێ دەکات و ژمارە 1 تا 16یان لەسەرە. بەستەرەکان تا ڕێدۆزی 15 سەوزن: ڕایەڵەیەک بە دووریی 15 باز دەگەیەنرێت بە پێوانەی 15؛ RIP بۆ ڕایەڵەی بەرینتر لە 15 ڕێدۆز نییە. شازدەیەمیان پرتەقاڵییە و خاچی لەسەرە: پێوانەی 16 واتە ناگەیەنرێت؛ بۆ ژەهراویکردنی ڕێگەی پچڕاویش بەکار دێت.
Fifteen is the limit; sixteen is “infinity”.پازدە سنوورە؛ شازدە «»ـیە.CêIT

Hop count: 1 to 15, and 16 means unreachableژمارەی بازەکان: 1 تا ⁦15⁩؛ ⁦16⁩ واتە ناگەیەنرێت

Hops are not speedبازەکان خێرایی نین

Hop count ignores bandwidth. In the picture Host 2 can reach Host 1 through R2 over 10 Mb/s links (2 hops), or through R5 and R4 over 100 Mb/s links (3 hops). RIP chooses the 2-hop path, although the other path is ten times faster. This is RIP’s biggest weakness in modern networks, where links have very different speeds — the two-roads story in Routing protocols shows the same idea.

ژمارەی گوێ نادات بە . لە وێنەکەدا ⁦Host 2⁩ دەتوانێت لە ڕێی ⁦R2⁩ـەوە بە بەستەری ⁦10 Mb/s (2⁩ ) بگاتە ⁦Host 1⁩، یان لە ڕێی ⁦R5⁩ و ⁦R4⁩ـەوە بە بەستەری ⁦100 Mb/s (3⁩ ). ڕێگای 2 هەڵدەبژێرێت، هەرچەندە ڕێگاکەی تر دە جار خێراترە. ئەمە گەورەترین لاوازیی لە ئەمڕۆدا، کە بەستەرەکان خێراییی زۆر جیاوازیان هەیە — چیرۆکی دوو ڕێکە لە پرۆتۆکۆڵەکانی ڕێدۆزی هەمان بیرۆکە پیشان دەدات.

Host 2 on the left joined to R1, Host 1 on the right joined to R3. Path A, orange: R1–R2–R3 over 10 Mb/s links, 2 hops. Path B, thick blue: R1–R5–R4–R3 over 100 Mb/s links, 3 hops. RIP chooses path A (2 hops), although path B is ten times faster.Host 2 لە چەپ بە R1ـەوە بەستراوە، Host 1 لە ڕاست بە R3ـەوە. ڕێگای A، پرتەقاڵی: R1–R2–R3 بە بەستەری 10 Mb/s، 2 باز. ڕێگای B، شینی ئەستوور: R1–R5–R4–R3 بە بەستەری 100 Mb/s، 3 باز. RIP ڕێگای A هەڵدەبژێرێت (2 باز)، هەرچەندە ڕێگای B دە جار خێراترە.
Fewer hops, slower links: RIP still prefers them. کەمتر، بەستەری خاوتر: هێشتا ئەوانی پێ باشترە.CêIT

Updates and timersنوێکردنەوە و تایمەرەکان

A RIP router sends its whole routing table out of every RIP interface every 30 seconds — RIPv2 to the multicast address 224.0.0.9 on UDP port 520. The timer is shifted by a few random seconds so that routers do not all speak at once. When a route changes it also sends a triggered update at once, and it uses split horizon by default. Four Cisco timers decide what happens when updates stop:

هەموو لە هەموو هەموو ⁦30⁩ چرکە جارێک دەنێرێت — ⁦RIPv2⁩ بۆ ناونیشانی ⁦224.0.0.9⁩ لەسەر ⁦520⁩. چەند چرکەیەکی هەڕەمەکی دەجووڵێنرێت بۆ ئەوەی هەموویان پێکەوە قسە نەکەن. کاتێک ڕێگەیەک دەگۆڕێت، ـیش یەکسەر دەنێرێت و بە بنەڕەت بەکار دەهێنێت. چوار Cisco بڕیار دەدەن کاتێک نوێکردنەوەکان دەوەستن چی ڕوو دەدات:

RIP timers on Cisco routers: timers basic 30 180 180 240 لەسەر ⁦Cisco: timers basic 30 180 180 240⁩
TimerDefaultبنەڕەتWhat it doesچی دەکات
updateنوێکردنەوە30 s⁦30⁩ چرکەhow often the whole table is sentهەموو خشتەکە چەند جار دەنێردرێت
invalidنادروست180 s⁦180⁩ چرکەno news for this long: the route is marked “possibly down” and advertised with 16ئەگەر ئەوەندە هەواڵ نەبێت: ڕێگەکە وەک «ڕەنگە پچڕابێت» نیشان دەکرێت و بە ⁦16⁩ ڕادەگەیەنرێت
hold-down180 s⁦180⁩ چرکەnews of other paths to that network is ignoredهەواڵی ڕێگای تر بۆ ئەو پشتگوێ دەخرێت
flushسڕینەوە240 s⁦240⁩ چرکەno news for this long: the route is deletedئەگەر ئەوەندە هەواڵ نەبێت: ڕێگەکە دەسڕدرێتەوە
Animation with a time line from 0 to 330 seconds. R2 sends R1 updates about 10.5.0.0/16 at 0, 30 and 60 s, and R1’s table shows R 10.5.0.0/16 [120/1] via 10.0.12.2, Serial0/3/0. After 60 s R2 goes silent; the age of the route keeps growing. At 240 s (180 s without news) the route is invalid: R1 shows '10.5.0.0/16 is possibly down', advertises it with metric 16 and starts hold-down. At 300 s (240 s without news) the route is flushed and disappears from the table.
Animation with a time line from 0 to 330 seconds. R2 sends R1 updates about 10.5.0.0/16 at 0, 30 and 60 s, and R1’s table shows R 10.5.0.0/16 [120/1] via 10.0.12.2, Serial0/3/0. After 60 s R2 goes silent; the age of the route keeps growing. At 240 s (180 s without news) the route is invalid: R1 shows '10.5.0.0/16 is possibly down', advertises it with metric 16 and starts hold-down. At 300 s (240 s without news) the route is flushed and disappears from the table.
Updates every 30 s; invalid at 180 s; flushed at 240 s.نوێکردنەوە هەموو ⁦30⁩ چرکە؛ نادروست لە ⁦180⁩ چرکەدا؛ سڕینەوە لە ⁦240⁩ چرکەدا.CêIT

RIP’s administrative distance on Cisco routers is 120, so a route learned by OSPF (110) or EIGRP (90) for the same network wins (the AD table). The RFC itself names two timers, a 180-second timeout and a 120-second garbage-collection timer; Cisco’s hold-down is an extra protection against loops.

لەسەر Cisco ⁦120⁩ـە، بۆیە ڕێگەیەک بۆ هەمان کە لە ⁦(110)⁩ یان ⁦(90)⁩ـەوە فێربووبێت دەباتەوە (خشتەی AD). خودی RFCـەکە ناوی دوو دەبات، timeoutـی ⁦180⁩ چرکەیی و ⁦garbage-collection⁩ـی ⁦120⁩ چرکەیی؛ Cisco پاراستنێکی زیادەیە دژی .

RIPv1, RIPv2 and RIPng⁦RIPv1⁩، ⁦RIPv2⁩ و RIPng

RIPv1 (RFC 1058, 1988) is classful: its updates carry no subnet masks, and it sends them as broadcasts to 255.255.255.255, so every device on the link — PCs included — must stop and read them. It has no authentication, so any device can send fake routes. RIPv2 (1994; today RFC 2453, 1998) fixes this: it is classless — every route carries its mask, so VLSM and CIDR work — it sends updates to the multicast address 224.0.0.9, which only RIPv2 routers listen to, and it supports authentication (next lesson). RIPng (RFC 2080) is RIP for IPv6; it uses FF02::9 and UDP port 521. On Cisco routers we always choose version 2.

⁦RIPv1⁩ (⁦RFC 1058⁩، ⁦1988⁩) پۆلدارە: نوێکردنەوەکانی هەڵناگرن و وەک بۆ ⁦255.255.255.255⁩ دەینێرێت، بۆیە هەموو ئامێرێکی سەر بەستەرەکە — PCـەکانیش — دەبێت بوەستن و بیخوێننەوە. پشتگیریی ناکات، بۆیە هەر ئامێرێک دەتوانێت ڕێگەی ساختە بنێرێت. ⁦RIPv2⁩ (⁦1994⁩؛ ئەمڕۆ ⁦RFC 2453⁩، ⁦1998⁩) ئەمە چاک دەکات: بێپۆلە — هەر ڕێگەیەک ماسکەکەی هەڵدەگرێت، بۆیە و کار دەکەن — نوێکردنەوەکان بۆ ناونیشانی ⁦224.0.0.9⁩ دەنێرێت، کە تەنیا ⁦RIPv2⁩ گوێی لێ دەگرن. هەروەها پشتگیریی دەکات (وانەی داهاتوو). RIPng ⁦(RFC 2080)⁩ بۆ ؛ ⁦FF02::9⁩ و ⁦521⁩ بەکار دەهێنێت. لەسەر Cisco هەمیشە وەشانی 2 هەڵدەبژێرین.

Two panels with R1 on a switch shared with three PCs and one other router. Left, RIPv1 (1988): broadcast to 255.255.255.255, so every device must read it (the PCs are orange); classful, the mask is not sent; no authentication. Right, RIPv2 (1998): multicast to 224.0.0.9, so only RIPv2 routers listen (the PCs are left alone); classless, the mask goes with every route (VLSM, CIDR); optional authentication.دوو بەش، R1 لەسەر سویچێک لەگەڵ سێ PC و ڕێدۆزێکی تر. چەپ، RIPv1 (1988): پەخشکردن بۆ 255.255.255.255، بۆیە هەموو ئامێرێک دەبێت بیخوێنێتەوە (PCـەکان پرتەقاڵین)؛ پۆلدار، ماسک نانێردرێت؛ بێ پشتڕاستکردنەوەی ناسنامە. ڕاست، RIPv2 (1998): فرەپەخش بۆ 224.0.0.9، بۆیە تەنیا ڕێدۆزەکانی RIPv2 گوێ دەگرن (PCـەکان بێزار ناکرێن)؛ بێپۆل، ماسک لەگەڵ هەر ڕێگەیەک دەڕوات (VLSM، CIDR)؛ پشتڕاستکردنەوەی ناسنامەی ئارەزوومەندانە.
RIPv2 talks only to routers, and tells them the masks.⁦RIPv2⁩ تەنیا لەگەڵ قسە دەکات و ماسکەکانیان پێ دەڵێت.CêIT

Configuring RIP: four commandsڕێکخستنی RIP: چوار فەرمان

  1. Start RIPدەستپێکردنی RIP

    router rip — in global configuration mode, starts the RIP process and enters router configuration mode, R1(config-router)#.

    router rip — لە ، پرۆسەی دەست پێ دەکات و دەچێتە باری ڕێکخستنی ، R1(config-router)#.

  2. Choose version 2هەڵبژاردنی وەشانی 2

    version 2 — use RIPv2 only. Without it, Cisco IOS sends version 1 updates and accepts both versions.

    version 2 — تەنیا ⁦RIPv2⁩ بەکار بهێنە. بەبێ ئەمە، Cisco IOS نوێکردنەوەی وەشانی 1 دەنێرێت و هەردوو وەشانەکە وەردەگرێت.

  3. Stop automatic summarisingوەستاندنی پوختکردنەوەی خۆکار

    no auto-summary — RIP summarises routes at classful boundaries by default; turn that off so that every subnet is advertised as it is (Automatic summarization).

    no auto-summary — بە بنەڕەت ڕێگەکان لە سنووری پۆلەکاندا پوخت دەکاتەوە؛ ئەمە بکوژێنەرەوە بۆ ئەوەی هەر وەک خۆی ڕابگەیەنرێت (ڕاپوختکردنی خۆکار).

  4. List the connected networksناساندنی ڕایەڵەیە بەستراوەکان

    network 192.168.1.0 — one line for each directly connected network, written as its classful network address. It does two things: RIP starts sending and receiving updates on every interface inside that network, and the network itself is advertised.

    network 192.168.1.0 — یەک دێڕ بۆ هەر ڕاستەوخۆ بەستراو، بە پۆلدارەکەی دەنووسرێت. دوو کار دەکات: لەسەر هەموو ناو ئەو دەست بە ناردن و وەرگرتنی نوێکردنەوە دەکات. هەروەها خودی ڕادەگەیەنرێت.

R1 with three interfaces: Fa0/0 192.168.1.1/24 and Se0/3/1 192.168.3.1/24 (green), Se0/3/0 192.168.4.1/24 (grey). The configuration router rip, network 192.168.1.0, network 192.168.3.0 matches the two green interfaces. Se0/3/0 matches no network line: no RIP updates on it, and 192.168.4.0 is not advertised. A network line turns RIP on for every interface in that classful network and advertises it.R1 بە سێ نێوبەستە: Fa0/0 192.168.1.1/24 و Se0/3/1 192.168.3.1/24 (سەوز)، Se0/3/0 192.168.4.1/24 (خۆڵەمێشی). ڕێکخستنی router rip، network 192.168.1.0، network 192.168.3.0 لەگەڵ دوو نێوبەستەیە سەوزەکە دەگونجێت. Se0/3/0 لەگەڵ هیچ دێڕێکی network ناگونجێت: هیچ نوێکردنەوەیەکی RIP لەسەری نییە و 192.168.4.0 ڕاناگەیەنرێت. هەر دێڕێکی network RIP لەسەر هەموو نێوبەستەیەکی ناو ئەو ڕایەڵەیە پۆلدارە هەڵدەکات و ڕایدەگەیەنێت.
Only interfaces inside a network line take part in RIP.تەنیا ئەو ناو دێڕێکی network بەشداری دەکەن.CêIT

A network line also makes RIP send updates out of LAN interfaces where no router listens. To keep them quiet while still advertising their networks, add passive-interface — taught in Passive interfaces.

دێڕێکی network وا دەکات نوێکردنەوە لەو بنێرێت کە بەرەو دەچن و هیچ گوێی لێ ناگرێت. بۆ بێدەنگکردنیان و هێشتا ڕاگەیاندنی ، passive-interface زیاد بکە — لە نێوبەستە ناچالاکەکاندا دەخوێنرێت.

Lab 1: RIP between two routersتاقیکردنەوەی 1: RIP لە نێوان دوو ڕێدۆزدا

The first lab has four 2811 routers in a ring, but only the two lower ones, R1 and R2, run RIP: PC0 (192.168.1.2) must reach PC1 (192.168.2.2) through them. The interfaces are already addressed and up, as in Basic router configuration; R2’s Se0/3/0 is the DCE end, so it also has clock rate 64000. Now each router gets RIP for its own connected networks.

تاقیکردنەوەی یەکەم چوار ⁦2811⁩ـی هەیە لە ئەڵقەیەکدا، بەڵام تەنیا دوو خوارەوەکە، ⁦R1⁩ و ⁦R2⁩، کار پێ دەکەن: ⁦PC0 (192.168.1.2)⁩ دەبێت لە ڕێی ئەوانەوە بگاتە ⁦PC1 (192.168.2.2)⁩. پێشتر ناونیشانیان دراوە و هەڵکراون، وەک لە ڕێکخستنی سەرەتاییی ڕێدۆزدا؛ ⁦Se0/3/0⁩ـی ⁦R2⁩ لای DCEـیە، بۆیە clock rate 64000ـیشی هەیە. ئێستا هەر بۆ بەستراوەکانی خۆی وەردەگرێت.

Four routers in a ring. R1 (bottom left) and R2 (bottom right) are joined by the serial link 192.168.3.0/24 (R1 Se0/3/1 = 192.168.3.1, R2 Se0/3/0 = 192.168.3.2) and run RIP. R3 and R4 above them, with the links 192.168.4.0/24, 192.168.5.0/24 and 192.168.6.0/24, are dashed: they come in the exercise. Under R1: SW1 and PC0 192.168.1.2 in 192.168.1.0/24 (R1 Fa0/0 = 192.168.1.1). Under R2: SW2 and PC1 192.168.2.2 in 192.168.2.0/24 (R2 Fa0/0 = 192.168.2.1). Gateways: PC0 192.168.1.1, PC1 192.168.2.1; the DCE end of the serial link is R2.چوار ڕێدۆز لە ئەڵقەیەکدا. R1 (خوارەوەی چەپ) و R2 (خوارەوەی ڕاست) بە بەستەری زنجیرەیی 192.168.3.0/24 بەستراون (R1 Se0/3/1 = 192.168.3.1، R2 Se0/3/0 = 192.168.3.2) و RIP کار پێ دەکەن. R3 و R4 لە سەرەوەیان، بە بەستەرەکانی 192.168.4.0/24، 192.168.5.0/24 و 192.168.6.0/24، پچڕپچڕن: لە ڕاهێنانەکەدا دێن. لە ژێر R1: SW1 و PC0 192.168.1.2 لە 192.168.1.0/24 (R1 Fa0/0 = 192.168.1.1). لە ژێر R2: SW2 و PC1 192.168.2.2 لە 192.168.2.0/24 (R2 Fa0/0 = 192.168.2.1). دەروازەکان: PC0 بۆ 192.168.1.1، PC1 بۆ 192.168.2.1؛ لای DCEـی بەستەری زنجیرەیی R2ـیە.
The lab topology, redrawn from a Packet Tracer lab. تاقیکردنەوەکە، لە تاقیکردنەوەیەکی Packet Tracerـەوە دووپاتە کێشراوە.CêIT
R1: the RIP part⁦R1⁩: بەشی RIPTEXT
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.3.0
R1(config-router)#end
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 2-3

Many lab guides type only version 2; add no auto-summary too — a good habit for every RIPv2 router.

زۆر ڕێنمایی تاقیگە تەنیا version 2 دەنووسن؛ no auto-summaryـیش زیاد بکە — خوویەکی باشە بۆ هەموو ⁦RIPv2⁩.

Lineدێڕی 4-5

R1’s two connected networks: the LAN and the serial link.

دوو بەستراوەکەی ⁦R1⁩: و بەستەرە زنجیرەییەکە.

R2: the RIP part⁦R2⁩: بەشی RIPTEXT
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 192.168.3.0
R2(config-router)#network 192.168.2.0
R2(config-router)#end
R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

Checking RIPپشکنینی RIP

After a few seconds R1 learns 192.168.2.0/24 from R2. show ip route marks it with R; [120/1] means administrative distance 120 and 1 hop. Reading every part of the table is taught in Reading the routing table.

دوای چەند چرکەیەک ⁦R1⁩ لە ⁦R2⁩ـەوە فێری ⁦192.168.2.0/24⁩ دەبێت. show ip route بە R نیشانی دەکات؛ [120/1] واتە ⁦120⁩ و 1 . خوێندنەوەی هەموو بەشێکی خشتەکە لە خوێندنەوەی خشتەی ڕێدۆزیدا دەخوێنرێت.

R1’s routing table (IOS 15 format)خشتەی ڕێدۆزیی ⁦R1⁩ (شێوەی ⁦IOS 15⁩)TEXT
R1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, FastEthernet0/0
L        192.168.1.1/32 is directly connected, FastEthernet0/0
R     192.168.2.0/24 [120/1] via 192.168.3.2, 00:00:12, Serial0/3/1
      192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.3.0/24 is directly connected, Serial0/3/1
L        192.168.3.1/32 is directly connected, Serial0/3/1
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 17

The RIP route: AD 120, 1 hop, next hop R2 (192.168.3.2), heard 12 seconds ago, out of Serial0/3/1.

ڕێگەی : ⁦AD 120⁩، 1 ، ⁦R2 (192.168.3.2)⁩، ⁦12⁩ چرکە لەمەوبەر بیستراوە، لە ⁦Serial0/3/1⁩ـەوە.

The line R 192.168.2.0/24 [120/1] via 192.168.3.2, 00:00:12, Serial0/3/1 with its parts labelled: R = learned by RIP; the remote network; 120 = AD, 1 = hops; next hop (R2); time since the last update; exit interface. Notes: the age resets every 30 s when R2’s update arrives, and after 180 s without one the route is invalid; a RIP hop count is never compared with an OSPF cost — AD decides between protocols.دێڕی R 192.168.2.0/24 [120/1] via 192.168.3.2, 00:00:12, Serial0/3/1 و بەشەکانی: R واتە RIP؛ ڕایەڵەکە دوور؛ AD 120 و باز 1؛ بازی دواتر (R2)؛ کات لە دوایین نوێکردنەوە؛ نێوبەستەی دەرچوون. تێبینی: تەمەنەکە هەموو 30 چرکە سفر دەبێتەوە کاتێک نوێکردنەوەی R2 دەگات و دوای 180 چرکە بێ نوێکردنەوە ڕێگەکە نادروست دەبێت؛ ژمارەی بازەکانی RIP هەرگیز لەگەڵ تێچووی OSPF بەراورد ناکرێت — AD لە نێوان پرۆتۆکۆڵەکاندا بڕیار دەدات.
One RIP route, part by part.یەک ڕێگەی ، بەش بە بەش.CêIT

Checking RIPپشکنینی RIP

show ip protocols and a pingshow ip protocols و پینگ

show ip protocols shows RIP’s settings in one place: the timers, the version on each interface, whether auto-summary is off, the network lines and the routers that send updates.

show ip protocols ڕێکخستنەکانی لە یەک شوێندا پیشان دەدات: ، وەشان لەسەر هەر ، ئایا ⁦auto-summary⁩ کوژاوەتەوە، دێڕەکانی network و ئەو نوێکردنەوە دەنێرن.

show ip protocols: the RIP settings at a glanceshow ip protocols: ڕێکخستنەکانی RIP بە یەک نیگاTEXT
R1#show ip protocols
*** IP Routing is NSF aware ***

Routing Protocol is "rip"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Sending updates every 30 seconds, next due in 16 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Redistributing: rip
  Default version control: send version 2, receive version 2
    Interface             Send  Recv  Triggered RIP  Key-chain
    FastEthernet0/0       2     2
    Serial0/3/1           2     2
  Automatic network summarization is not in effect
  Maximum path: 4
  Routing for Networks:
    192.168.1.0
    192.168.3.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    192.168.3.2          120      00:00:08
  Distance: (default is 120)
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 7-8

The four timers: update 30, invalid 180, hold-down 180, flush 240.

چوار : نوێکردنەوە ⁦30⁩، نادروست ⁦180⁩، ڕاگرتن ⁦180⁩، سڕینەوە ⁦240⁩.

Lineدێڕی 10-13

Version 2 is sent and received on both interfaces.

وەشانی 2 لەسەر هەردوو دەنێردرێت و وەردەگیرێت.

Lineدێڕی 14

no auto-summary worked.

no auto-summary کاری کرد.

Lineدێڕی 16-18

The network lines.

دێڕەکانی network.

Lineدێڕی 19-21

Where updates come from: R2, AD 120, last heard 8 seconds ago.

نوێکردنەوەکان لە کوێوە دێن: ⁦R2⁩، ⁦AD 120⁩، 8 چرکە لەمەوبەر بیستراوە.

Packet Tracer’s routers print the same fields, in a slightly different order and without the NSF line. Finally test from PC0: ping 192.168.2.2 gets four replies with TTL=126 — the packet crossed two routers (128 − 2).

Packet Tracer هەمان خانەکان چاپ دەکەن، بە ڕیزبەندییەکی کەمێک جیاواز و بەبێ دێڕی NSF. لە کۆتاییدا لە ⁦PC0⁩ـەوە تاقی بکەرەوە: ping 192.168.2.2 چوار وەڵام بە TTL=126 وەردەگرێت — بە دوو تێپەڕیوە ⁦(128 − 2)⁩.

Checking RIPپشکنینی RIP

Watching updates with debug ip ripسەیرکردنی نوێکردنەوەکان بە debug ip rip

debug ip rip prints every RIP update the router sends and receives. Look at the lines: R1 receives 192.168.2.0/24 “in 1 hops” from R2; it sends that network on to its LAN with metric 2; and towards R2 it sends only 192.168.1.0/24 — split horizon keeps 192.168.2.0 from going back where it came from. Notice too that the sender counts the hop: R1 lists its own networks with metric 1 and 192.168.2.0 with metric 2 — the “neighbour’s hops + 1” of distance vector. Debug output costs CPU on a busy router, so switch it off as soon as you have seen enough with undebug all (or no debug all). Over SSH, type terminal monitor first to see the messages.

debug ip rip هەموو نوێکردنەوەیەکی چاپ دەکات کە دەینێرێت و وەری دەگرێت. سەیری دێڕەکان بکە: ⁦R1⁩ ڕێگەی ⁦192.168.2.0/24⁩ بە «⁦in 1 hops⁩» لە ⁦R2⁩ـەوە وەردەگرێت؛ ئەو بە 2 بۆ دەنێرێت؛ و بەرەو ⁦R2⁩ تەنیا ⁦192.168.1.0/24⁩ دەنێرێت — ناهێڵێت ⁦192.168.2.0⁩ بگەڕێتەوە ئەو شوێنەی لێوەی هاتووە. هەروەها سەرنج بدە کە نێرەر دەژمێرێت: ⁦R1⁩ خۆییەکانی بە 1 و ⁦192.168.2.0⁩ بە 2 دەنێرێت — هەمان « دراوسێ + 1»ـی مەودای ئاڕاستە. دەرچوونی debug لەسەر قەرەباڵغ CPU دەخوات، بۆیە هەر کە بەشی خۆت بینی بە undebug all (یان no debug all) بیکوژێنەرەوە. لە ڕێی SSHـەوە سەرەتا terminal monitor بنووسە بۆ بینینی پەیامەکان.

debug ip rip on R1debug ip rip لەسەر ⁦R1⁩TEXT
R1#debug ip rip
RIP protocol debugging is on
R1#
RIP: received v2 update from 192.168.3.2 on Serial0/3/1
     192.168.2.0/24 via 0.0.0.0 in 1 hops
RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (192.168.1.1)
RIP: build update entries
      192.168.2.0/24 via 0.0.0.0, metric 2, tag 0
      192.168.3.0/24 via 0.0.0.0, metric 1, tag 0
RIP: sending v2 update to 224.0.0.9 via Serial0/3/1 (192.168.3.1)
RIP: build update entries
      192.168.1.0/24 via 0.0.0.0, metric 1, tag 0
R1#undebug all
All possible debugging has been turned off
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 4-5

Received from R2: 192.168.2.0/24, 1 hop. (via 0.0.0.0 means “via the sender”.)

لە ⁦R2⁩ـەوە وەرگیراوە: ⁦192.168.2.0/24⁩، 1 . (via 0.0.0.0 واتە «لە ڕێی نێرەرەوە».)

Lineدێڕی 10-12

Towards R2 only 192.168.1.0/24 is sent: split horizon at work.

بەرەو ⁦R2⁩ تەنیا ⁦192.168.1.0/24⁩ دەنێردرێت: لە کاردا.

Lineدێڕی 13-14

Always switch debugging off when you are done.

هەمیشە کە تەواو بوویت debug بکوژێنەرەوە.

R1 between its LAN 192.168.1.0/24 on Fa0/0 and R2 on Se0/3/1. The update out of Fa0/0 lists 192.168.2.0/24 metric 2 and 192.168.3.0/24 metric 1. The update out of Se0/3/1 lists only 192.168.1.0/24 metric 1; 192.168.2.0/24 is crossed out, because it came from R2 and split horizon never sends it back.R1 لە نێوان ڕایەڵەی ناوچەییەکەی 192.168.1.0/24 لەسەر Fa0/0 و R2 لەسەر Se0/3/1. لە نوێکردنەوەی Fa0/0دا 192.168.2.0/24 بە پێوانەی 2 و 192.168.3.0/24 بە پێوانەی 1 هەن. نوێکردنەوەی Se0/3/1 تەنیا 192.168.1.0/24 بە پێوانەی 1ـی تێدایە؛ 192.168.2.0/24 خەتی بەسەردا هاتووە، چونکە لە R2ـەوە هات و ئاسۆی لەتکراو هەرگیز نایگەڕێنێتەوە.
Each interface gets its own update: split horizon in action.هەر نوێکردنەوەی خۆی وەردەگرێت: لە کاردا.CêIT

Lab 2: RIP with VLANsتاقیکردنەوەی 2: RIP لەگەڵ VLANـەکان

In the second lab the right-hand switch, SW1, has two VLANs: VLAN 10 (192.168.3.0/24) and VLAN 20 (192.168.4.0/24). Their gateways live on R2 as subinterfaces — the cable between SW1 and R2 is a trunk and Fa0/0 itself has no IP address (Router-on-a-stick). R1 and R2 are joined by a serial link, 192.168.2.0/24, with the DCE end on R2. As in every lab of this course, the trunk’s native VLAN is the unused VLAN 999 (why) and unused switch ports are parked in VLAN 998. RIP then carries the two VLAN networks to R1 and the left LAN to R2.

لە تاقیکردنەوەی دووەمدا لای ڕاست، ⁦SW1⁩، دوو هەیە: ⁦VLAN 10 (192.168.3.0/24)⁩ و ⁦VLAN 20 (192.168.4.0/24)⁩. هەردووکیان لەسەر ⁦R2⁩ـە، وەک دوو — کێبڵی نێوان ⁦SW1⁩ و ⁦R2⁩ و خودی ⁦Fa0/0⁩ وەرناگرێت (ڕێدۆزی تاکقۆڵ). ⁦R1⁩ و ⁦R2⁩ بە بەستەرێکی زنجیرەیی بەستراون، ⁦192.168.2.0/24⁩، کە لای DCEـی لەسەر ⁦R2⁩ـیە. وەک هەموو تاقیکردنەوەکانی ئەم کۆرسە، ⁦VLAN 999⁩ـی بەکارنەهێنراوە (بۆچی) و هەموو بەکارنەهێنراوی دەخرێتە ⁦VLAN 998⁩. پاشان هەردوو VLAN دەگەیەنێتە ⁦R1⁩ و چەپ دەگەیەنێتە ⁦R2⁩.

R1 on the left: Fa0/0 = 192.168.1.1 to SW0 and PC0 192.168.1.2 in LAN 192.168.1.0/24; Se0/3/0 = 192.168.2.1 on the serial link 192.168.2.0/24 to R2 (Se0/3/1 = 192.168.2.2, DCE). R2’s Fa0/0 has no IP; a thick blue trunk goes to SW1 Fa0/2, and R2 has subinterfaces Fa0/0.10 = 192.168.3.1 and Fa0/0.20 = 192.168.4.1. SW1 Fa0/1 goes to PC1 192.168.3.2 in VLAN 10 (gateway 192.168.3.1) and Fa0/6 to PC2 192.168.4.2 in VLAN 20 (gateway 192.168.4.1). R2 routes between the VLANs (router-on-a-stick) and RIP carries both VLAN networks to R1.R1 لە چەپ: Fa0/0 = 192.168.1.1 بۆ SW0 و PC0 192.168.1.2 لە ڕایەڵەی ناوچەیی 192.168.1.0/24؛ Se0/3/0 = 192.168.2.1 لەسەر بەستەری زنجیرەیی 192.168.2.0/24 بۆ R2 (Se0/3/1 = 192.168.2.2، DCE). Fa0/0ـی R2 IPـی نییە؛ ترەنکێکی شینی ئەستوور دەچێت بۆ Fa0/2ـی SW1 و R2 ژێرنێوبەستەکانی Fa0/0.10 = 192.168.3.1 و Fa0/0.20 = 192.168.4.1ـی هەیە. Fa0/1ـی SW1 دەچێت بۆ PC1 192.168.3.2 لە VLAN 10 (دەروازە 192.168.3.1) و Fa0/6 بۆ PC2 192.168.4.2 لە VLAN 20 (دەروازە 192.168.4.1). R2 لە نێوان VLANـەکاندا ڕێدۆزی دەکات (ڕێدۆزی تاکقۆڵ) و RIP هەردوو ڕایەڵەی VLAN دەگەیەنێتە R1.
RIP with VLANs: router-on-a-stick on R2, RIP between R1 and R2. لەگەڵ : لەسەر ⁦R2⁩، لە نێوان ⁦R1⁩ و ⁦R2⁩.CêIT
SW1: two VLANs, parked ports and the trunk to R2⁦SW1⁩: دوو VLAN، دەرچە بەکارنەهێنراوەکان و ترەنک بۆ ⁦R2⁩TEXT
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname SW1
SW1(config)#vlan 10
SW1(config-vlan)#exit
SW1(config)#vlan 20
SW1(config-vlan)#exit
SW1(config)#vlan 998
SW1(config-vlan)#name Unused
SW1(config-vlan)#vlan 999
SW1(config-vlan)#name Native
SW1(config-vlan)#exit
SW1(config)#interface range fastEthernet 0/1 , fastEthernet 0/3 - 5
SW1(config-if-range)#switchport mode access
SW1(config-if-range)#switchport access vlan 10
SW1(config-if-range)#exit
SW1(config)#interface range fastEthernet 0/6 - 10
SW1(config-if-range)#switchport mode access
SW1(config-if-range)#switchport access vlan 20
SW1(config-if-range)#exit
SW1(config)#interface range fastEthernet 0/11 - 24 , gigabitEthernet 0/1 - 2
SW1(config-if-range)#switchport mode access
SW1(config-if-range)#switchport access vlan 998
SW1(config-if-range)#shutdown
SW1(config-if-range)#exit
SW1(config)#interface fastEthernet 0/2
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk native vlan 999
SW1(config-if)#end
SW1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 9-12

The course’s two special VLANs: 998 for unused ports, 999 as the trunk’s native VLAN — no users, no IP address.

دوو تایبەتەکەی ئەم کۆرسە: ⁦998⁩ بۆ ، ⁦999⁩ وەک — بێ بەکارهێنەر، بێ .

Lineدێڕی 14

Fa0/2 is left out of the VLAN 10 range, because it becomes the trunk.

⁦Fa0/2⁩ لە interface rangeـی ⁦VLAN 10⁩ دەرهێنراوە، چونکە دەبێتە .

Lineدێڕی 22-25

Every port the lab does not use is parked in VLAN 998 and shut down (why).

هەر کە تاقیکردنەوەکە بەکاری ناهێنێت دەخرێتە ⁦VLAN 998⁩ و دەکوژێنرێتەوە (بۆچی).

Lineدێڕی 27-29

The uplink to R2 is a trunk with native VLAN 999, configured once.

بەستەری سەرەوە بۆ ⁦R2⁩ بە ⁦999⁩، یەک جار ڕێک دەخرێت.

Lab 2: RIP with VLANsتاقیکردنەوەی 2: RIP لەگەڵ VLANـەکان

Lab 2: the two routersتاقیکردنەوەی 2: دوو ڕێدۆزەکە

R1 (left router)⁦R1⁩ (ڕێدۆزی چەپ)TEXT
Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/3/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#end
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R2 (right router, router-on-a-stick)⁦R2⁩ (ڕێدۆزی ڕاست، ڕێدۆزی تاکقۆڵ)TEXT
Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R2
R2(config)#interface serial 0/3/1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 0/0.10
R2(config-subif)#encapsulation dot1Q 10
R2(config-subif)#ip address 192.168.3.1 255.255.255.0
R2(config-subif)#exit
R2(config)#interface fastEthernet 0/0.20
R2(config-subif)#encapsulation dot1Q 20
R2(config-subif)#ip address 192.168.4.1 255.255.255.0
R2(config-subif)#exit
R2(config)#interface fastEthernet 0/0.999
R2(config-subif)#encapsulation dot1Q 999 native
R2(config-subif)#exit
R2(config)#interface fastEthernet 0/0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.3.0
R2(config-router)#network 192.168.4.0
R2(config-router)#end
R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 7

Se0/3/1 is the DCE end of the serial cable, so it gives the clock. Packet Tracer marks that end with a clock icon.

⁦Se0/3/1⁩ لای DCEـی کێبڵە زنجیرەییەکەیە، بۆیە کاتژمێرەکە دەدات. Packet Tracer ئەو لایە بە وێنەی کاتژمێرێک نیشان دەکات.

Lineدێڕی 18-19

The native VLAN 999 is named on the router too, so both ends of the trunk agree. It carries no users and gets no IP address.

⁦999⁩ لەسەر ناو دەبرێت، بۆ ئەوەی هەردوو سەری ڕێک بن. هیچ بەکارهێنەرێک هەڵناگرێت و وەرناگرێت.

Lineدێڕی 21-22

The physical interface needs no shutdown; its subinterfaces come up with it.

فیزیکی پێویستی بە no shutdownـە؛ لەگەڵیدا هەڵدەکرێن.

Lineدێڕی 28-29

The two VLAN networks are advertised like any other connected network.

هەردوو VLAN وەک هەر بەستراوی تر ڕادەگەیەنرێن.

Test from PC0: ping 192.168.3.2 and ping 192.168.4.2 should both succeed, and R1’s table shows two R routes, 192.168.3.0/24 and 192.168.4.0/24, through 192.168.2.2.

لە ⁦PC0⁩ـەوە تاقی بکەرەوە: ping 192.168.3.2 و ping 192.168.4.2 دەبێت هەردووکیان سەرکەوتوو بن و خشتەی ⁦R1⁩ دوو ڕێگەی R پیشان دەدات، ⁦192.168.3.0/24⁩ و ⁦192.168.4.0/24⁩، لە ڕێی ⁦192.168.2.2⁩ـەوە.

Lab 3: RIP with subnetsتاقیکردنەوەی 3: RIP لەگەڵ ژێرڕایەڵەکان

The third lab subnets 172.16.0.0/16 into /18 networks: the mask is 255.255.192.0, two borrowed bits give 2² = 4 subnets of 64 in the third octet (Subnetting). Subnet 1 is 172.16.0.0–172.16.63.255, subnet 2 172.16.64.0–172.16.127.255, subnet 3 172.16.128.0–172.16.191.255, and the fourth, 172.16.192.0/18, stays unused. The address 172.16.128.200 belongs to subnet 3.

تاقیکردنەوەی سێیەم ⁦172.16.0.0/16⁩ دابەش دەکات بۆ /18: ماسکەکە ⁦255.255.192.0⁩ـیە، دوو بیتی قەرزکراو ⁦2² = 4⁩ دەدەن بە قەبارەی ⁦64⁩ لە سێیەمدا (ژێرڕایەڵەسازی). ⁦1 172.16.0.0–172.16.63.255⁩ـە، ⁦2 172.16.64.0–172.16.127.255⁩، ⁦3 172.16.128.0–172.16.191.255⁩ و چوارەمیان، ⁦172.16.192.0/18⁩، بەکارنەهاتوو دەمێنێتەوە. ناونیشانی ⁦172.16.128.200⁩ سەر بە 3ـە.

R3 and R4 joined by subnet 2, 172.16.64.0/18 (R3 Fa0/1 = 172.16.64.1, R4 Fa0/1 = 172.16.64.2). Under R3: Fa0/0 172.16.0.1 and PC6 172.16.0.2 in subnet 1, 172.16.0.0/18. Under R4: Fa0/0 172.16.128.1 and PC7 172.16.128.2 in subnet 3, 172.16.128.0/18. The mask is 255.255.192.0 (/18) everywhere; the fourth subnet, 172.16.192.0/18, is unused.R3 و R4 بە ژێرڕایەڵە 2 بەستراون، 172.16.64.0/18 (R3 Fa0/1 = 172.16.64.1، R4 Fa0/1 = 172.16.64.2). لە ژێر R3: Fa0/0 172.16.0.1 و PC6 172.16.0.2 لە ژێرڕایەڵە 1، 172.16.0.0/18. لە ژێر R4: Fa0/0 172.16.128.1 و PC7 172.16.128.2 لە ژێرڕایەڵە 3، 172.16.128.0/18. ماسکەکە لە هەموو شوێنێک 255.255.192.0ـە؛ ژێرڕایەڵەی چوارەم، 172.16.192.0/18، بەکار نەهاتووە.
Three /18 subnets of 172.16.0.0, two routers, RIPv2.سێ ⁦172.16.0.0/16⁩ بە ماسکی ⁦255.255.192.0⁩، دوو ، ⁦RIPv2⁩.CêIT
R3: the RIP part (with no auto-summary)⁦R3⁩: بەشی RIP (لەگەڵ ⁦no auto-summary⁩)TEXT
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 172.16.0.0
R3(config-router)#network 172.16.64.0
R3(config-router)#end
R3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
What show running-config then shows under router ripدواتر ⁦show running-config⁩ لە ژێر router ripـدا چی پیشان دەداتTEXT
router rip
 version 2
 network 172.16.0.0
 no auto-summary

The network command is classful: IOS turns both lines into the class B network 172.16.0.0 and keeps it once. That is enough, because one line covers every interface in 172.16.0.0/16. The subnet masks still travel in the updates because the routers run version 2, and no auto-summary keeps each /18 subnet as it is. R4 is configured the same way (network 172.16.64.0 and network 172.16.128.0 also become network 172.16.0.0), and R3 then shows R 172.16.128.0/18 [120/1] via 172.16.64.2.

network پۆلدارە: IOS هەردوو دێڕەکە دەکاتە ⁦172.16.0.0⁩ـی پۆلی B و یەک جار دەیهێڵێتەوە. ئەمە بەسە، چونکە یەک دێڕ هەموو ناو ⁦172.16.0.0/16⁩ دەگرێتەوە. هێشتا لە نوێکردنەوەکاندا دەڕوات چونکە وەشانی 2 کار پێ دەکەن و no auto-summary هەر /18 وەک خۆی دەهێڵێتەوە. ⁦R4⁩ بە هەمان شێوە ڕێک دەخرێت (network 172.16.64.0 و network 172.16.128.0ـیش دەبنە network 172.16.0.0) و پاشان ⁦R3⁩ پیشان دەدات R 172.16.128.0/18 [120/1] via 172.16.64.2.

RIP todayRIP لە ئەمڕۆدا

RIP is old and limited: it converges slowly, it cannot grow past 15 hops, and it ignores link speed. As of November 2026 it is rarely chosen for new enterprise networks; it survives in labs, in very small networks where simplicity matters more than speed, and in some older equipment. Medium and large networks use OSPF (why OSPF) or EIGRP inside the organisation, and BGP between organisations. RIP is still worth learning, because it is the clearest example of distance-vector routing — every idea in it reappears elsewhere.

کۆن و سنووردارە: خاو دەگاتە ، ناتوانێت لە ⁦15⁩ گەورەتر بێت و خێراییی بەستەر پشتگوێ دەخات. تا تشرینی دووەمی ⁦2026⁩ بە دەگمەن بۆ نوێی دامەزراوەکان هەڵدەبژێردرێت؛ لە تاقیگەکان، لە زۆر بچووکدا کە سادەیی لە خێرایی گرنگترە و لە هەندێک ئامێری کۆندا ماوەتەوە. مامناوەند و گەورە لە ناو دامەزراوەکەدا (بۆچی OSPF) یان و لە نێوان دامەزراوەکاندا بەکار دەهێنن. هێشتا شایەنی فێربوونە، چونکە ڕوونترین نموونەی — هەموو بیرۆکەیەکی تێیدا لە شوێنی تردا دەردەکەوێتەوە.

Two cards. RIP still fits: labs and learning; a few routers, simple paths; small offices and some old gear. Use OSPF or EIGRP instead: more than 15 routers deep; links of different speeds; fast convergence needed. Note: between organisations the Internet uses BGP; RIPng (RIP for IPv6) exists but is rare.دوو کارت. RIP هێشتا دەگونجێت: تاقیگە و فێربوون؛ چەند ڕێدۆزێک، ڕێگای سادە؛ نووسینگەی بچووک و هەندێک ئامێری کۆن. لە جیاتی ئەوە OSPF یان EIGRP: قووڵتر لە 15 ڕێدۆز؛ بەستەری خێرایی جیاواز؛ پێویستی بە پێکگەیشتنی خێرا. تێبینی: لە نێوان دامەزراوەکاندا ئینتەرنێت BGP بەکار دەهێنێت؛ RIPng، واتە RIP بۆ IPv6، هەیە بەڵام دەگمەنە.
Where RIP fits in 2026, and where it does not. لە ⁦2026⁩دا لە کوێ دەگونجێت و لە کوێ نا.CêIT

Common mistakesهەڵە باوەکان

Exercisesڕاهێنانەکان

ExerciseڕاهێنانClose the ringئەڵقەکە تەواو بکە

In lab 1, configure RIPv2 on R3 and R4 too (R3: 192.168.4.0 and 192.168.5.0; R4: 192.168.5.0 and 192.168.6.0), and add network 192.168.4.0 on R1 and network 192.168.6.0 on R2. (a) Which path does R1 use to reach 192.168.2.0/24, and with which metric? (b) The link R1–R2 fails. What does R1 use after RIP converges?

لە تاقیکردنەوەی 1دا، ⁦RIPv2⁩ لەسەر ⁦R3⁩ و ⁦R4⁩ـیش ڕێک بخە (⁦R3: 192.168.4.0⁩ و ⁦192.168.5.0⁩؛ ⁦R4: 192.168.5.0⁩ و ⁦192.168.6.0⁩) و network 192.168.4.0 لەسەر ⁦R1⁩ و network 192.168.6.0 لەسەر ⁦R2⁩ زیاد بکە. (ئ) ⁦R1⁩ بۆ گەیشتن بە ⁦192.168.2.0/24⁩ کام ڕێگا بەکار دەهێنێت و بە چ ؟ (ب) بەستەری ⁦R1–R2⁩ دەپچڕێت. دوای ⁦R1⁩ چی بەکار دەهێنێت؟

Show answerوەڵامەکە پیشان بدە
R3 (R4 is the same with 192.168.5.0 and 192.168.6.0)⁦R3 (R4⁩ هەمان شتە بە ⁦192.168.5.0⁩ و ⁦192.168.6.0⁩)TEXT
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 192.168.4.0
R3(config-router)#network 192.168.5.0
R3(config-router)#end
R3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

(a) The direct serial link: R 192.168.2.0/24 [120/1] via 192.168.3.2 — 1 hop beats the 3 hops round the ring (R3, R4, R2). (b) After the link fails, R1 learns the network through R3 with metric 3: R 192.168.2.0/24 [120/3] via 192.168.4.2. Pings still work, a little later.

(ئ) بەستەرە زنجیرەییە ڕاستەوخۆکە: ⁦R 192.168.2.0/24 [120/1] via 192.168.3.2 — 1⁩ لە 3 دەوری ئەڵقەکە (⁦R3⁩، ⁦R4⁩، ⁦R2⁩) دەباتەوە. (ب) دوای پچڕانی بەستەرەکە، ⁦R1⁩ لە ڕێی ⁦R3⁩ـەوە بە 3 فێری دەبێت: ⁦R 192.168.2.0/24 [120/3] via 192.168.4.2⁩. هێشتا کار دەکات، کەمێک دواتر.

ExerciseڕاهێنانRead the routeڕێگەکە بخوێنەرەوە

Explain every part of: R 10.4.0.0/16 [120/3] via 10.0.23.3, 00:00:21, Serial0/0/1. Is the route healthy?

هەموو بەشێکی ئەمە ڕوون بکەرەوە: R 10.4.0.0/16 [120/3] via 10.0.23.3, 00:00:21, Serial0/0/1. ئایا ڕێگەکە تەندروستە؟

Show answerوەڵامەکە پیشان بدە

R = learned by RIP; 10.4.0.0/16 = the destination network; 120 = RIP’s administrative distance; 3 = three hops away; via 10.0.23.3 = next hop; 00:00:21 = the last update came 21 seconds ago; Serial0/0/1 = exit interface. Healthy: updates come every 30 seconds, and 21 s is well below the 180-s invalid timer.

R = لە فێربووە؛ ⁦10.4.0.0/16⁩ = مەبەست؛ ⁦120⁩ = ؛ 3 = سێ دوورە؛ ⁦via 10.0.23.3⁩ = ؛ ⁦00:00:21⁩ = دوایین نوێکردنەوە ⁦21⁩ چرکە لەمەوبەر هات؛ ⁦Serial0/0/1⁩ = . تەندروستە: نوێکردنەوەکان هەموو ⁦30⁩ چرکە دێن و ⁦21⁩ چرکە زۆر کەمترە لە نادروستی ⁦180⁩ چرکەیی.

ExerciseڕاهێنانWhat does IOS store?IOS چی هەڵدەگرێت؟

Under router rip you type network 172.20.8.0, network 192.168.50.0 and network 10.200.0.0. What appears in the running configuration?

لە ژێر router rip دەنووسیت network 172.20.8.0، network 192.168.50.0 و network 10.200.0.0. چی لە دەردەکەوێت؟

Show answerوەڵامەکە پیشان بدە
The classful networksڕایەڵەیە پۆلدارەکانTEXT
router rip
 network 10.0.0.0
 network 172.20.0.0
 network 192.168.50.0

172.20.x.x is class B → 172.20.0.0; 192.168.50.x is class C → stays 192.168.50.0; 10.x.x.x is class A → 10.0.0.0. IOS lists them in order.

⁦172.20.x.x⁩ پۆلی Bـیە ← ⁦172.20.0.0⁩؛ ⁦192.168.50.x⁩ پۆلی Cـیە ← وەک خۆی ⁦192.168.50.0⁩؛ ⁦10.x.x.x⁩ پۆلی Aـیە ← ⁦10.0.0.0. IOS⁩ بە ڕیز ڕیزیان دەکات.

ExerciseڕاهێنانTimersتایمەرەکان

R1 last heard a RIP update for 10.9.0.0/16 at 10:00:00, and then its neighbour crashed. With Cisco’s default timers, when is the route marked invalid and when is it removed?

⁦R1⁩ دوایین نوێکردنەوەی بۆ ⁦10.9.0.0/16⁩ لە کاتژمێر ⁦10:00:00⁩دا بیست و پاشان دراوسێکەی تێکچوو. بە بنەڕەتیی Cisco، ڕێگەکە کەی وەک نادروست نیشان دەکرێت و کەی لادەبرێت؟

Show answerوەڵامەکە پیشان بدە

Invalid 180 s later, at 10:03:00 (“possibly down”, advertised with metric 16, hold-down starts). Flushed 240 s after the last update, at 10:04:00.

⁦180⁩ چرکە دواتر نادروست دەبێت، لە ⁦10:03:00⁩دا («ڕەنگە پچڕابێت»، بە ⁦16⁩ ڕادەگەیەنرێت، دەست پێ دەکات). ⁦240⁩ چرکە دوای دوایین نوێکردنەوە دەسڕدرێتەوە، لە ⁦10:04:00⁩دا.

ExerciseڕاهێنانRIPv1 or RIPv2?⁦RIPv1⁩ یان ⁦RIPv2⁩؟

A network uses 10.1.1.0/26, 10.1.1.64/26 and 10.1.2.0/24 on three routers. Explain why RIPv1 is a bad choice and which commands you type instead.

⁦10.1.1.0/26⁩، ⁦10.1.1.64/26⁩ و ⁦10.1.2.0/24⁩ لەسەر سێ بەکار دەهێنێت. ڕوونی بکەرەوە بۆچی ⁦RIPv1⁩ هەڵبژاردنێکی خراپە و لە جیاتی ئەوە چ دەنووسیت.

Show answerوەڵامەکە پیشان بدە

The masks differ (VLSM: /26 and /24), and RIPv1 sends no masks, so routers would guess wrongly. Use RIPv2 on every router: router rip, version 2, no auto-summary, network 10.0.0.0.

ماسکەکان جیاوازن (: /26 و /24) و ⁦RIPv1⁩ هیچ ماسکێک نانێرێت، بۆیە بە هەڵە مەزەندە دەکەن. لەسەر هەموو ⁦RIPv2⁩ بەکار بهێنە: router rip، version 2، no auto-summary، network 10.0.0.0.

Summaryکورتە

  • RIP is the classic distance-vector protocol: metric = hop count (1–15, 16 = unreachable), whole table every 30 s, AD 120, UDP 520.
  • Hop count ignores speed, so RIP can pick a slow path.
  • Timers: update 30, invalid 180, hold-down 180, flush 240 seconds.
  • RIPv1 classful + broadcast; RIPv2 classless + multicast 224.0.0.9 + authentication; RIPng for IPv6.
  • Configure: router rip, version 2, no auto-summary, network <classful network> for each connected network; verify with show ip route, show ip protocols and, briefly, debug ip rip; save with copy running-config startup-config.
  • RIP fits labs and small networks; real networks use OSPF or EIGRP inside and BGP between organisations.
  • نموونەی کلاسیکی : = ژمارەی (⁦1–15⁩، ⁦16⁩ = ناگەیەنرێت)، هەموو خشتەکە هەموو ⁦30⁩ چرکە، AD ⁦120⁩، ⁦520⁩.
  • ژمارەی خێرایی پشتگوێ دەخات، بۆیە دەتوانێت ڕێگایەکی خاو هەڵبژێرێت.
  • : نوێکردنەوە ⁦30⁩، نادروست ⁦180⁩، ڕاگرتن ⁦180⁩، سڕینەوە ⁦240⁩ چرکە.
  • ⁦RIPv1⁩ پۆلدار + ؛ ⁦RIPv2⁩ بێپۆل + ⁦224.0.0.9 +⁩ ؛ RIPng بۆ .
  • ڕێکخستن: router rip، version 2، no auto-summary، network <classful network> بۆ هەر بەستراو؛ پشکنین بە show ip route، show ip protocols و بۆ ماوەیەکی کورت debug ip rip؛ پاشەکەوت بە copy running-config startup-config.
  • بۆ تاقیگە و بچووک دەگونجێت؛ ڕاستەقینە لە ناوەوە یان و لە نێوان دامەزراوەکاندا بەکار دەهێنن.

Next: protect RIP updates with authentication and keep them off LAN ports — RIP authentication and passive interfaces.

دواتر: نوێکردنەوەکانی بە بپارێزە و لە دووریان بخەرەوە — پشتڕاستکردنەوەی ناسنامەی RIP و نێوبەستە ناچالاکەکان.

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

Securing Routing Updates: RIP Authentication and Passive Interfacesپاراستنی نوێکردنەوەکانی ڕێدۆزی: پشتڕاستکردنەوەی ناسنامەی RIP و نێوبەستە ناچالاکەکان

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.

Appearanceڕووکار

Modeدۆخ
Styleشێواز
Coloursڕەنگەکان

Saved on this device only.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.