Chapterبەش 6 · Lectureوانە 6.1

Troubleshooting with IOS: show, ping, traceroute and debugچارەسەرکردنی کێشە بە ⁦IOS: show⁩، پینگ، بەدواداچوونی ڕێگە و debug

The troubleshooting method applied on Cisco routers and switches: show commands by layer, interface Status and Protocol, error counters, serial clocks with show controllers, CDP and LLDP neighbours, switch and routing checks, IOS ping characters and patterns, extended ping with a source, IOS traceroute marks, safe debugging with terminal monitor and undebug all, service checks, the four static-route faults, a divide-and-conquer case, backups and documentation, and Packet Tracer practice scenarios.

ڕێگای لەسەر و Cisco: show بەپێی چین، Status و Protocolـی ، ژمێرەرەکانی هەڵە، کاتژمێری زنجیرەیی بە show controllers، دراوسێکانی CDP و LLDP، پشکنینەکانی و ، پیت و شێوەکانی IOS، extended ping بە سەرچاوەوە، نیشانەکانی IOS، debugـی سەلامەت بە terminal monitor و undebug all، پشکنینی خزمەتگوزارییەکان، چوار هەڵەکەی ، نموونەیەکی دابەشکردن و زاڵبوون، و و سیناریۆکانی ڕاهێنان لە Packet Tracerـدا.

19 min read20 خولەک خوێندنەوە · 21 stepsهەنگاو

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

  • Choose the right IOS show command for each layer and read interface Status/Protocol and error counters.
  • Use show controllers, CDP and LLDP to check serial clocks and neighbours.
  • Read IOS ping characters and patterns, run an extended ping with a source, and read IOS traceroute marks.
  • Use debug safely with terminal monitor, a filter and undebug all.
  • Find the four typical static and default route faults and finish a fix with saving, a backup and documentation.
  • showـی گونجاو بۆ هەر چینێک هەڵبژێریت و ⁦Status/Protocol⁩ و ژمێرەرەکانی هەڵەی بخوێنیتەوە.
  • show controllers، CDP و LLDP بەکار بهێنیت بۆ پشکنینی کاتژمێری زنجیرەیی و دراوسێکان.
  • پیت و شێوەکانی IOS بخوێنیتەوە، extended ping بە سەرچاوەوە بکەیت و نیشانەکانی IOS بخوێنیتەوە.
  • debug بە سەلامەتی بەکار بهێنیت لەگەڵ terminal monitor، فلتەرێک و undebug all.
  • چوار هەڵە ئاساییەکەی و بدۆزیتەوە و چاککردنەوەیەک بە پاشەکەوت، و تەواو بکەیت.

The method you know, from the network’s sideئەو ڕێگایەی دەیناسیت، لە لای ڕایەڵەکەوە

You already have a method: the seven steps, the layers as a checklist, and the approaches bottom-up, top-down and divide and conquer (Troubleshooting networks, approaches). On a PC your tools were ipconfig, ping and tracert. On a Cisco router or switch the same questions are answered by show commands, by IOS’s own ping and traceroute, and — carefully — by debug. This lesson maps each tool to the layer it checks.

پێشتر ڕێگایەکت هەیە: حەوت هەنگاوەکە، چینەکان وەک لیستی پشکنین و ڕێگاکانی خوارەوە-بۆ-سەرەوە، سەرەوە-بۆ-خوارەوە و دابەشکردن و زاڵبوون (چارەسەرکردنی کێشەی ڕایەڵەکان، ڕێگاکان). لەسەر PC ئامرازەکانت ipconfig، ping و tracert بوون. لەسەر یان Cisco هەمان پرسیارەکان بە show، بە و خودی IOS و — بە وریاییەوە — بە debug وەڵام دەدرێنەوە. ئەم وانەیە هەر ئامرازێک بەو چینە دەبەستێتەوە کە دەیپشکنێت.

Four bands. Services: do DHCP, NAT and ACLs do what you meant? — show ip dhcp binding, show ip nat translations, show access-lists. Layer 3: right address, a route there and back? — show ip interface brief, show ip route, show ip protocols, ping, traceroute. Layer 2: who is my neighbour, right VLAN and trunk? — show cdp neighbors, show mac address-table, show vlan brief, show interfaces trunk, show spanning-tree. Layer 1: signal, cable, errors, clock? — show interfaces (status, counters), show controllers serial. Footer: work up from layer 1, or start in the middle with ping and follow the answer.چوار پارچە. خزمەتگوزارییەکان: DHCP، NAT و ACL ئەوە دەکەن کە مەبەستت بوو؟ — show ip dhcp binding، show ip nat translations، show access-lists. چینی 3: ناونیشانی دروست، ڕێگە بۆ ئەوێ و گەڕانەوە؟ — show ip interface brief، show ip route، show ip protocols، ping، traceroute. چینی 2: دراوسێکەم کێیە، VLAN و ترەنکی دروست؟ — show cdp neighbors، show mac address-table، show vlan brief، show interfaces trunk، show spanning-tree. چینی 1: سیگناڵ، کێبڵ، هەڵە، کاتژمێر؟ — show interfaces (دۆخ، ژمێرەرەکان)، show controllers serial. لە خوارەوە: لە چینی 1ـەوە بەرەو سەرەوە کار بکە، یان لە ناوەڕاستەوە بە پینگ دەست پێ بکە و دوای وەڵامەکە بکەوە.
The IOS toolbox, layer by layer.سندووقی ئامرازی IOS، چین بە چین.CêIT

show first, debug lastسەرەتا show، دواجار debug

show commands only read — they change nothing and cost almost nothing, so they are always the first step. ping and traceroute send a handful of test packets. debug makes the router describe events as they happen; on a busy router that can use so much processor time that the router stops responding, so it comes last, as narrow as possible, and is switched off at once.

show تەنیا دەخوێننەوە — هیچ شتێک ناگۆڕن و هیچ نرخێکیان نییە، بۆیە هەمیشە هەنگاوی یەکەمن. ping و traceroute چەند تاقیکردنەوە دەنێرن. debug ناچار دەکات ڕووداوەکان لە کاتی ڕوودانیاندا وەسف بکات؛ لەسەر سەرقاڵ ئەمە دەتوانێت ئەوەندە کاتی پرۆسێسەر بەکار بهێنێت کە وەڵام نەداتەوە، بۆیە دواجار دێت، تا بتوانرێت تەسک و دەستبەجێ دەکوژێنرێتەوە.

Three steps rising to the right. show: only reads, safe on any router at any time. ping and traceroute: send a few test packets. debug: describes live events and can overload a busy router. An arrow along the bottom: more load and more risk.سێ پلە کە بەرەو ڕاست بەرز دەبنەوە. show: تەنیا دەخوێنێتەوە، لەسەر هەر ڕێدۆزێک و لە هەر کاتێکدا سەلامەتە. ping و traceroute: چەند پاکێتێکی تاقیکردنەوە دەنێرن. debug: ڕووداوە ڕاستەوخۆکان وەسف دەکات و دەتوانێت ڕێدۆزێکی سەرقاڵ قورس بکات. تیرێک لە خوارەوە: بار و مەترسیی زیاتر.
The order of the tools.ڕیزبەندیی ئامرازەکان.CêIT

The practice networkڕایەڵەی ڕاهێنان

Build this in Packet Tracer to follow the lesson: PC1 on R1’s LAN, three routers joined by serial links, and a server on R3’s LAN. R1 and R3 use default routes towards R2; R2 has a static route to each LAN (Static routes, Default routes). Every fault in this lesson is one small change to this network.

ئەمە لە Packet Tracerـدا دروست بکە بۆ ئەوەی دوای وانەکە بکەویت: ⁦PC1⁩ لەسەر ⁦R1⁩، سێ کە بە بەستەری زنجیرەیی بەستراون و لەسەر ⁦R3. R1⁩ و ⁦R3⁩ بەرەو ⁦R2⁩ بەکار دەهێنن؛ ⁦R2⁩ بۆ هەر هەیە (ڕێگە جێگیرەکان، ڕێگە بنەڕەتییەکان). هەموو هەڵەیەکی ئەم وانەیە یەک گۆڕانکاریی بچووکە لەم .

PC1 192.168.1.10 — R1 (G0/0 .1) — serial 10.0.12.0/30 — R2 — serial 10.0.23.0/30 — R3 (G0/0 .1) — Server 192.168.3.10. Below: R1 ip route 0.0.0.0 0.0.0.0 10.0.12.2; R3 ip route 0.0.0.0 0.0.0.0 10.0.23.1; R2 ip route 192.168.1.0 255.255.255.0 10.0.12.1 and ip route 192.168.3.0 255.255.255.0 10.0.23.2.PC1 192.168.1.10 — R1 (G0/0، 192.168.1.1) — زنجیرەیی 10.0.12.0/30 — R2 — زنجیرەیی 10.0.23.0/30 — R3 (G0/0، 192.168.3.1) — ڕاژەکار 192.168.3.10. لە خوارەوە: R1 ip route 0.0.0.0 0.0.0.0 10.0.12.2؛ R3 ip route 0.0.0.0 0.0.0.0 10.0.23.1؛ R2 ip route 192.168.1.0 255.255.255.0 10.0.12.1 و ip route 192.168.3.0 255.255.255.0 10.0.23.2.
Three routers, two serial links, static and default routes.سێ ، دوو بەستەری زنجیرەیی، و .CêIT

Layer 1 and 2: the two interface statesچینی 1 و 2: دوو دۆخەکەی نێوبەستە

Start with show ip interface brief (you met it in Your first router). The Status column is mostly layer 1 — is there a signal, and is the interface switched on? The Protocol column is layer 2 — does the link really work? Here R2’s link to R3 has a signal but does not come up:

بە show ip interface brief دەست پێ بکە (لە یەکەم ڕێدۆزەکەت بینیت). ستوونی Status زۆرتر چینی 1ـە — سیگناڵ هەیە و هەڵکراوە؟ ستوونی Protocol چینی 2ـیە — بەستەرەکە بەڕاستی کار دەکات؟ لێرەدا بەستەری ⁦R2⁩ بۆ ⁦R3⁩ سیگناڵی هەیە بەڵام کارا نابێت:

R2: Serial0/0/1 is up/down⁦R2: Serial0/0/1 up/down⁩ـەTEXT
R2#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0     unassigned      YES unset  administratively down down
GigabitEthernet0/1     unassigned      YES unset  administratively down down
Serial0/0/0            10.0.12.2       YES manual up                    up
Serial0/0/1            10.0.23.1       YES manual up                    down
A table. up/up: working at layers 1 and 2, nothing to fix. up/down: signal, but the link does not work (layer 2) — on serial links check the clock rate on the DCE and matching encapsulation. down/down: no signal (layer 1) — cable, far end off or shut, wrong port. administratively down/down: switched off by configuration — no shutdown. Note: on a switch, down (err-disabled) means the switch shut the port itself, for example port security.خشتەیەک. up/up: لە چینی 1 و 2دا کار دەکات، هیچ شتێک چاک ناکرێتەوە. up/down: سیگناڵ هەیە، بەڵام بەستەرەکە کار ناکات (چینی 2) — لە بەستەری زنجیرەییدا clock rate لەسەر DCE و encapsulationـی وەک یەک بپشکنە. down/down: سیگناڵ نییە (چینی 1) — کێبڵ، سەرەکەی تر کوژاوە، دەرچەی هەڵە. administratively down/down: بە ڕێکخستن کوژێنراوەتەوە — no shutdown. تێبینی: لەسەر سویچێک، down (err-disabled) واتە سویچەکە خۆی دەرچەکەی کوژاندووەتەوە، بۆ نموونە ئاسایشی دەرچە.
Status, Protocol, and what each pair means.Status، Protocol و واتای هەر جووتێک.CêIT

Reading the error countersخوێندنەوەی ژمێرەرەکانی هەڵە

When the state is up/up but users complain of slow or broken transfers, read the counters in show interfaces. A few errors over months mean little; a counter that keeps rising is the clue. Reset them with clear counters, wait a few minutes of normal traffic, and look again.

کاتێک دۆخەکە ⁦up/up⁩ـە بەڵام بەکارهێنەران سکاڵا لە گواستنەوەی هێواش یان پچڕاو دەکەن، ژمێرەرەکان لە show interfacesـدا بخوێنەوە. چەند هەڵەیەک لە چەند مانگێکدا واتای کەمە؛ ژمێرەرێک کە بەردەوام زیاد دەبێت نیشانەکەیە. بە clear counters بیانگەڕێنەوە بۆ سفر، چەند خولەکێک لە هاتوچۆی ئاسایی چاوەڕێ بکە و دووپاتە سەیر بکە.

Excerpt: the first lines and the error countersبەشێک: یەکەم دێڕەکان و ژمێرەرەکانی هەڵەTEXT
R1#show interfaces g0/0
GigabitEthernet0/0 is up, line protocol is up
  Hardware is CN Gigabit Ethernet, address is 0001.6458.2501 (bia 0001.6458.2501)
  Internet address is 192.168.1.1/24
     0 runts, 0 giants, 0 throttles
     412 input errors, 398 CRC, 14 frame, 0 overrun, 0 ignored
     0 output errors, 0 collisions, 1 interface resets
Four rows. CRC, frame, input errors: damaged frames — a bad or too long cable, noise, a faulty port. runts, giants: frames too short or too long — often a duplex mismatch or a bad network card. late collision: there should be none on a full-duplex link — duplex mismatch. output errors: the port could not send — often congestion or a bad port. Footer: look at whether a counter keeps rising: clear counters, wait, then show interfaces again.چوار دێڕ. CRC، frame، input errors: فرەیمەکانی تێکچوو — کێبڵی خراپ یان زۆر درێژ، دەنگەدەنگ، دەرچەی تێکچوو. runts، giants: فرەیمەکانی زۆر کورت یان زۆر درێژ — زۆرجار نەگونجانی duplex یان کارتی ڕایەڵەی خراپ. late collision: لەسەر بەستەرێکی دوولایەنەی هاوکات نابێت هیچ هەبێت — نەگونجانی duplex. output errors: دەرچەکە نەیتوانی بنێرێت — زۆرجار قەرەباڵغی یان دەرچەی خراپ. لە خوارەوە: سەیر بکە ئایا ژمێرەرێک بەردەوام زیاد دەبێت: clear counters، چاوەڕێ بکە، پاشان دووپاتە show interfaces.
Each counter hints at a different cause.هەر ژمێرەرێک ئاماژە بە هۆکارێکی جیاواز دەکات.CêIT

Who is next to me? CDP and LLDPکێ لە تەنیشتمە؟ CDP و LLDP

When a diagram is missing or wrong, ask the devices. CDP (Cisco Discovery Protocol) runs at layer 2 on Cisco devices and is on by default: every 60 seconds each device announces itself, and neighbours keep the information for 180 seconds. show cdp neighbors lists who is plugged into which port — even before any IP address is right. detail adds the neighbour’s IP address and IOS version.

کاتێک هێڵکارییەک نییە یان هەڵەیە، لە ئامێرەکان بپرسە. لە چینی 2دا لەسەر ئامێرەکانی Cisco کار دەکات و بە شێوەی بنەڕەت کارایە: هەر ⁦60⁩ چرکە جارێک هەر ئامێرێک خۆی ڕادەگەیەنێت و دراوسێکان زانیارییەکە بۆ ⁦180⁩ چرکە هەڵدەگرن. show cdp neighbors ڕیز دەکات کێ بە کام بەستراوە — تەنانەت پێش ئەوەی هیچ دروست بێت. detail دراوسێکە و وەشانی IOSـەکەی زیاد دەکات.

R2’s neighbours on IOS 15 (detail: the first entry’s first lines; the IOS version follows)دراوسێکانی ⁦R2⁩ لەسەر ⁦IOS 15 (detail⁩: یەکەم دێڕەکانی یەکەم تۆمار؛ وەشانی IOS دوای ئەوان دێت)TEXT
R2#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
                  D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
R1               Ser 0/0/0         152             R S I  CISCO1941 Ser 0/0/0
R3               Ser 0/0/1         137             R S I  CISCO1941 Ser 0/0/1

Total cdp entries displayed : 2
R2#show cdp neighbors detail
-------------------------
Device ID: R1
Entry address(es):
  IP address: 10.0.12.1
Platform: Cisco CISCO1941/K9,  Capabilities: Router Switch IGMP
Interface: Serial0/0/0,  Port ID (outgoing port): Serial0/0/0
Holdtime : 152 sec
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 7-8

R S I = router, switch, IGMP. Packet Tracer prints a shorter legend and may show only R.

R S I = ، ، ⁦IGMP. Packet Tracer⁩ ڕوونکردنەوەیەکی کورتتر چاپ دەکات و لەوانەیە تەنیا R پیشان بدات.

R1 — R2 — R3 joined by serial links (Ser 0/0/0 and Ser 0/0/1 on R2). Below, R2#show cdp neighbors: R1 on local interface Ser 0/0/0, holdtime 152, capability R S I, platform CISCO1941, port ID Ser 0/0/0; R3 on Ser 0/0/1, holdtime 137, port ID Ser 0/0/1. Notes: CDP is Cisco’s own protocol, on by default; LLDP (IEEE 802.1AB) does the same for any vendor. Both work at layer 2: a neighbour shows up even before any IP address is right.R1 — R2 — R3 بە بەستەری زنجیرەیی بەستراون (Ser 0/0/0 و Ser 0/0/1 لەسەر R2). لە خوارەوە، R2#show cdp neighbors: R1 لەسەر نێوبەستەی ناوخۆیی Ser 0/0/0، holdtime 152، capability R S I، platform CISCO1941، port ID Ser 0/0/0؛ R3 لەسەر Ser 0/0/1، holdtime 137، port ID Ser 0/0/1. تێبینی: CDP پرۆتۆکۆڵی تایبەتی Ciscoـیە و بە شێوەی بنەڕەت کارایە؛ LLDP (IEEE 802.1AB) هەمان کار بۆ هەموو کۆمپانیایەک دەکات. هەردووکیان لە چینی 2دا کار دەکەن: دراوسێ دەردەکەوێت تەنانەت پێش ئەوەی هیچ ناونیشانێکی IP دروست بێت.
Asking the network for its own map.لە بپرسە کێ لە تەنیشت کێیە.CêIT

LLDP (IEEE 802.1AB) is the vendor-neutral twin, needed when Cisco devices meet other brands (phones, servers, other switches). On most Cisco devices it is off by default: switch it on with lldp run in global configuration and read show lldp neighbors — device, local interface, hold time, capabilities and port ID. Both protocols tell strangers about your devices, so turn them off where they face users or the ISP (no cdp enable, no lldp transmit on the interface).

⁦(IEEE 802.1AB)⁩ جووتە بێلایەنەکەیە، پێویست کاتێک ئامێرەکانی Cisco بە براندەکانی تر دەگەن (تەلەفۆن، ، تر). لەسەر زۆربەی ئامێرەکانی Cisco بە شێوەی بنەڕەت کوژاوە: بە lldp run لە هەڵیبکە و show lldp neighbors بخوێنەوە — ئامێر، ناوخۆیی، hold time، capabilities و port ID. هەردوو لەبارەی ئامێرەکانت بە نامۆکان دەڵێن، بۆیە لەو شوێنانەی ڕوویان لە بەکارهێنەران یان بیانکوژێنەرەوە (no cdp enable، no lldp transmit لەسەر ).

Layer 2 on a switchچینی 2 لەسەر سویچێک

When a PC cannot even reach its gateway, the fault is often on the switch. Five show commands answer the usual questions; each is explained in its own lesson:

کاتێک PCـێک تەنانەت ناگاتە ، هەڵەکە زۆرجار لەسەر . پێنج show وەڵامی پرسیارە ئاساییەکان دەدەنەوە؛ هەریەکەیان لە وانەی خۆیدا ڕوون کراوەتەوە:

Five rows. show interfaces status: is the port connected, and in which VLAN? show vlan brief: does the VLAN exist, with the right ports? show interfaces trunk: is the trunk up, and is the VLAN allowed on it? show mac address-table: which port did the PC’s MAC address appear on? show spanning-tree: is the port forwarding, or blocked by STP?پێنج دێڕ. show interfaces status: دەرچەکە بەستراوە و لە کام VLANـدایە؟ show vlan brief: VLANـەکە هەیە، بە دەرچەکان دروستەوە؟ show interfaces trunk: ترەنکەکە کارایە و VLANـەکە ڕێگەی پێ دراوە؟ show mac address-table: ناونیشانی MACـی PCـەکە لەسەر کام دەرچە دەرکەوت؟ show spanning-tree: دەرچەکە دەنێرێت، یان STP ڕایگرتووە؟
Five questions for a switch.پێنج پرسیار بۆ .CêIT

Layer 3: the routing table and the protocolsچینی 3: خشتەی ڕێدۆزی و پرۆتۆکۆڵەکان

show ip route shows every route (The routing table). When you care about one destination, give the address: IOS shows the route that would be used, or tells you there is none. show ip protocols shows which routing protocols run, on which networks and with which neighbours; for OSPF, show ip ospf neighbor lists the neighbours and their state (OSPF neighbours).

show ip route هەموو ڕێگەیەک پیشان دەدات (خشتەی ڕێدۆزی). کاتێک گرنگیت بە یەک مەبەست هەیە، ناونیشانەکە بدە: IOS ئەو ڕێگەیە پیشان دەدات کە بەکار دەهێنرێت، یان پێت دەڵێت هیچ نییە. show ip protocols پیشان دەدات کام کار دەکەن، لەسەر کام و لەگەڵ کام دراوسێ؛ بۆ OSPF، show ip ospf neighbor دراوسێکان و دۆخیان ڕیز دەکات (دراوسێکانی OSPF).

One destination at a time: a match, and no matchیەک مەبەست لە یەک کاتدا: گونجان و نەگونجانTEXT
R2#show ip route 192.168.3.10
Routing entry for 192.168.3.0/24
  Known via "static", distance 1, metric 0
  Routing Descriptor Blocks:
  * 10.0.23.2
      Route metric is 0, traffic share count is 1
R2#show ip route 192.168.9.1
% Network not in table
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 2-5

The route R2 would use: a static route via 10.0.23.2.

ئەو ڕێگەیەی ⁦R2⁩ بەکاری دەهێنێت: لە ڕێگەی ⁦10.0.23.2⁩ـەوە.

Lineدێڕی 8

No route and no default route: R2 drops packets to this address.

نە ڕێگە، نە : ⁦R2⁩ بۆ ئەم ناونیشانە فڕێ دەدات.

ping from IOSپینگ لە IOSـەوە

IOS ping differs from Windows ping. It sends five ICMP echoes of 100 bytes, waits 2 seconds for each, and prints one character per echo on a single line, then a success rate:

IOS لە Windows جیاوازە. پێنج echoـی ICMPـی ⁦100⁩ دەنێرێت، بۆ هەریەکەیان 2 چرکە چاوەڕێ دەکات و بۆ هەر echoـێک یەک پیت لەسەر یەک دێڕ چاپ دەکات، پاشان ڕێژەی سەرکەوتن:

A failed ping from R1پینگێکی شکستخواردوو لە ⁦R1⁩ـەوەTEXT
R1#ping 192.168.3.10

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.10, timeout is 2 seconds:
U.U.U
Success rate is 0 percent (0/5)
Seven cards. ! a reply arrived. . timed out waiting for a reply. U a destination unreachable message came back. Q source quench (destination too busy). M could not fragment. ? unknown packet type. & packet lifetime exceeded. A summary line: Success rate is 80 percent (4/5). Footer: IOS sends 5 echoes of 100 bytes and waits 2 seconds for each.حەوت کارت. ! وەڵامێک گەیشت. . لە چاوەڕوانیی وەڵامدا کات تەواو بوو. U پەیامی destination unreachable گەڕایەوە. Q source quench (مەبەست زۆر سەرقاڵە). M نەتوانرا پارچە بکرێت. ? جۆری پاکێتی نەناسراو. & تەمەنی پاکێتەکە تەواو بوو. دێڕی پوختە: Success rate is 80 percent (4/5). لە خوارەوە: IOS پێنج echoـی 100 بایت دەنێرێت و بۆ هەریەکەیان 2 چرکە چاوەڕێ دەکات.
Cisco’s ping characters.پیتەکانی Cisco.CêIT

Reading ping patternsخوێندنەوەی شێوەکانی پینگ

The pattern says more than the success rate. .!!!! on the first try is just ARP (why the first ping fails). U means a router answered that it cannot deliver — so the path works up to that router; the dots between the Us appear because, by default, a Cisco router sends at most one unreachable message every 500 ms. A row of dots means silence: the target may be off, the reply may be lost on the way back, or something filters it.

شێوەکە زیاتر لە ڕێژەی سەرکەوتن دەڵێت. .!!!! لە یەکەم هەوڵدا تەنیا ARPـە (بۆچی یەکەم پینگ شکست دەهێنێت). U واتە وەڵامی داوەتەوە کە ناتوانێت بیگەیەنێت — بۆیە ڕێگاکە تا ئەو کار دەکات؛ خاڵەکانی نێوان Uـەکان دەردەکەون چونکە بە شێوەی بنەڕەت Cisco لە هەر ⁦500 ms⁩ جارێک زۆرترین یەک پەیامی unreachable دەنێرێت. ڕیزێک خاڵ واتە بێدەنگی: لەوانەیە ئامانجەکە کوژاوە بێت، وەڵامەکە لە ڕێگای گەڕانەوەدا ون بووبێت، یان شتێک فلتەری دەکات.

Four rows. !!!!!: there and back, the path and the return route work. .!!!!: the first echo waited for ARP; then everything works. U.U.U: a router on the way says no route; the dots in between because it answers at most once per 500 ms. .....: silence — target off, reply lost on the way back, or filtered.چوار دێڕ. !!!!!: چوون و گەڕانەوە، ڕێگاکە و ڕێگەی گەڕانەوە کار دەکەن. .!!!!: یەکەم echo چاوەڕێی ARPـی کرد؛ پاشان هەموو شتێک کار دەکات. U.U.U: ڕێدۆزێک لە ڕێگادا دەڵێت ڕێگە نییە؛ خاڵەکانی نێوان چونکە زۆرترین جارێک لە هەر 500 ms وەڵام دەداتەوە. .....: بێدەنگی — ئامانجەکە کوژاوە، وەڵام لە گەڕانەوەدا ون بووە، یان فلتەر کراوە.
Four patterns, four different stories.چوار شێوە، چوار چیرۆکی جیاواز.CêIT

Extended ping: choose the sourceextended ping: سەرچاوە هەڵبژێرە

A plain ping from R1 uses R1’s exit interface (10.0.12.1) as its source. That can fool you: the far routers may know the way back to 10.0.12.0 but not to the users’ LAN. Extended ping lets you choose the source, so the router tests exactly what PC1 experiences. Type ping alone in privileged EXEC and answer the questions (Enter keeps the default in brackets):

سادە لە ⁦R1⁩ـەوە ⁦R1 (10.0.12.1)⁩ وەک سەرچاوە بەکار دەهێنێت. ئەمە دەتوانێت فریوت بدات: لەوانەیە ڕێگای گەڕانەوە بۆ ⁦10.0.12.0⁩ بزانن بەڵام بۆ بەکارهێنەران نا. extended ping ڕێگەت پێ دەدات سەرچاوە هەڵبژێریت، بۆیە ڕێک ئەوە تاقی دەکاتەوە کە ⁦PC1⁩ تووشی دەبێت. ping بە تەنیا لە بنووسە و وەڵامی پرسیارەکان بدەرەوە (Enter بەهای بنەڕەتی ناو کەوانەکە دەهێڵێتەوە):

Extended ping from R1 with the LAN address as source (R2 has lost its route to 192.168.1.0)extended ping لە ⁦R1⁩ـەوە بە ناونیشانی ڕایەڵەی ناوچەیی وەک سەرچاوە (⁦R2⁩ ڕێگەکەی بۆ ⁦192.168.1.0⁩ لەدەست داوە)TEXT
R1#ping
Protocol [ip]:
Target IP address: 192.168.3.10
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.10, timeout is 2 seconds:
Packet sent with a source address of 192.168.1.1
.....
Success rate is 0 percent (0/5)
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 7-8

Answer y, then give the source: an address or an interface name such as g0/0.

وەڵام بدەرەوە y، پاشان سەرچاوە بدە: ناونیشانێک یان ناوی وەک ⁦g0/0⁩.

Lineدێڕی 18

Silence: the requests arrive, but the replies to 192.168.1.1 have no way back.

بێدەنگی: دەگەن، بەڵام وەڵامەکان بۆ ⁦192.168.1.1⁩ ڕێگای گەڕانەوەیان نییە.

PC1 — R1 — R2 — R3 — Server. Green card: R1#ping 192.168.3.10, source = exit interface 10.0.12.1, result !!!!! — R2 and R3 know the way back to 10.0.12.0 (R2 connected, R3 default route). Orange card: ping … source 192.168.1.1, the LAN interface like PC1, result ..... — R2 has no route back to 192.168.1.0: the users’ problem, found from R1.PC1 — R1 — R2 — R3 — ڕاژەکار. کارتی سەوز: R1#ping 192.168.3.10، سەرچاوە = نێوبەستەی دەرچوون 10.0.12.1، ئەنجام !!!!! — R2 و R3 ڕێگای گەڕانەوە بۆ 10.0.12.0 دەزانن (R2 بەستراو، R3 ڕێگەی بنەڕەتی). کارتی پرتەقاڵی: ping … source 192.168.1.1، نێوبەستەی ڕایەڵەی ناوچەیی وەک PC1، ئەنجام ..... — R2 هیچ ڕێگەیەکی گەڕانەوەی بۆ 192.168.1.0 نییە: کێشەی بەکارهێنەران، لە R1ـەوە دۆزرایەوە.
The source decides which return route you test.سەرچاوە بڕیار دەدات کام ڕێگەی گەڕانەوە تاقی دەکەیتەوە.CêIT

On real IOS the same test fits on one line: ping 192.168.3.10 source g0/0. Extended ping can also repeat many echoes or send bigger packets, which helps with links that fail only under load.

لە IOSـی ڕاستەقینەدا هەمان تاقیکردنەوە لە یەک دێڕدا جێی دەبێتەوە: ping 192.168.3.10 source g0/0. extended ping دەتوانێت زۆر echo دووپاتە بکاتەوە یان بنێرێت، ئەمەش یارمەتیدەرە بۆ ئەو بەستەرانەی تەنیا لە ژێر باردا شکست دەهێنن.

traceroute from IOSبەدواداچوونی ڕێگە لە IOSـەوە

IOS traceroute works like Linux’s (tracert and traceroute): it sends UDP probes starting at port 33434, three per hop, with TTL 1, 2, 3 … up to 30, and lists who answered. A line of * is a timeout; letters such as !H (host unreachable), !N (network unreachable) and !A (administratively prohibited — often an ACL) say why a router refused. To stop a long trace, press Ctrl+Shift+6 (hot keys).

tracerouteـی IOS وەک هی Linux کار دەکات (tracert و traceroute): تاقیکەرەوەی UDP دەنێرێت کە لە ⁦33434⁩ـەوە دەست پێ دەکەن، سێ دانە بۆ هەر ، بە TTLـی 1، 2، 3 … تا ⁦30⁩. پاشان ڕیزی دەکات کێ وەڵامی دایەوە. دێڕێکی * کات تەواوبوونە؛ پیتەکانی وەک !H ⁦(host unreachable)⁩، !N ⁦(network unreachable)⁩ و !A (administratively prohibited — زۆرجار ) دەڵێن بۆچی ڕەتی کردەوە. بۆ ڕاگرتنی بەدواداچوونێکی درێژ، ⁦Ctrl+Shift+6⁩ دابگرە (کلیلە خێراکان).

Output of R1#traceroute 192.168.3.10: Type escape sequence to abort; Tracing the route to 192.168.3.10; 1 10.0.12.2 4 msec 1 msec 1 msec; 2 10.0.12.2 !H * !H. Cards: hop 1 answers — R2 is reachable, three probes, three times. !H from R2 again — R2 says host unreachable: it has no route onward. Other marks: * timeout, !N network, !A admin (ACL), !P protocol, Q quench, U port, ? unknown.دەرەنجامی R1#traceroute 192.168.3.10: Type escape sequence to abort؛ Tracing the route to 192.168.3.10؛ 1 10.0.12.2 4 msec 1 msec 1 msec؛ 2 10.0.12.2 !H * !H. کارتەکان: بازی 1 وەڵام دەداتەوە — R2 دەگیرێت، سێ تاقیکەرەوە، سێ کات. دووپاتە !H لە R2ـەوە — R2 دەڵێت host unreachable: ڕێگەی بۆ پێشەوە نییە. نیشانەکانی تر: * timeout، !N network، !A admin (ACL)، !P protocol، Q quench، U port، ? unknown.
The trace stops at the router that cannot go on.بەدواداچوونەکە لەو دەوەستێت کە ناتوانێت بەردەوام بێت.CêIT

debug, carefullydebug، بە وریاییەوە

When show commands and pings cannot explain a fault, debug lets you watch it happen. On the console, debug messages appear by default; in an SSH session you must first type terminal monitor. Make the debug as narrow as you can — debug ip packet with an access list shows only the packets that list permits (the list only selects; it filters nothing) — and switch everything off with undebug all as soon as you have the answer. show debugging lists what is running.

کاتێک show و ناتوانن هەڵەیەک ڕوون بکەنەوە، debug ڕێگەت پێ دەدات سەیری ڕوودانی بکەیت. لەسەر کۆنسۆڵ، پەیامەکانی debug بە شێوەی بنەڕەت دەردەکەون؛ لە دانیشتنێکی SSHـدا دەبێت سەرەتا terminal monitor بنووسیت. debugـەکە تا بتوانیت تەسک بکە — debug ip packet لەگەڵ تەنیا ئەو پیشان دەدات کە لیستەکە ڕێگەیان پێ دەدات (لیستەکە تەنیا هەڵدەبژێرێت؛ هیچ شتێک فلتەر ناکات) — و هەر کە وەڵامەکەت دەست کەوت هەموو شتێک بە undebug all بکوژێنەرەوە. show debugging ڕیزی دەکات چی کار دەکات.

R2 shows PC1’s ping arriving with no route onward (timestamps removed)⁦R2⁩ پیشان دەدات پینگی ⁦PC1⁩ دەگات بەبێ ڕێگەی بۆ پێشەوە (کاتەکان لابراون)TEXT
R2#configure terminal
R2(config)#access-list 101 permit icmp host 192.168.1.10 host 192.168.3.10
R2(config)#end
R2#debug ip packet 101
IP packet debugging is on for access list 101
IP: s=192.168.1.10 (Serial0/0/0), d=192.168.3.10, len 60, unroutable
R2#undebug all
All possible debugging has been turned off
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 2

ACL 101 only picks what the debug shows.

⁦ACL 101⁩ تەنیا ئەوە هەڵدەبژێرێت کە debugـەکە پیشانی دەدات.

Lineدێڕی 6

unroutable: R2 has no route for 192.168.3.10 — the same fault ping and traceroute pointed at.

⁦unroutable: R2⁩ ڕێگەی بۆ ⁦192.168.3.10⁩ نییە — هەمان هەڵە کە و ئاماژەیان پێ کرد.

Four steps. 1 terminal monitor: only in an SSH session, show debug output here. 2 debug ip packet 101: as narrow as possible, here only what ACL 101 permits. 3 show debugging: which debugs are running? 4 undebug all: the moment you have seen enough. Footer: on the console, debug messages appear by default; prefer show commands on busy routers.چوار هەنگاو. 1 terminal monitor: تەنیا لە دانیشتنێکی SSHـدا، دەرەنجامی debug لێرە پیشان بدە. 2 debug ip packet 101: تا بتوانرێت تەسک، لێرەدا تەنیا ئەوەی ACL 101 ڕێگەی پێ دەدات. 3 show debugging: کام debug کار دەکەن؟ 4 undebug all: هەر کە بەسەت بینی. لە خوارەوە: لەسەر کۆنسۆڵ، پەیامەکانی debug بە شێوەی بنەڕەت دەردەکەون؛ لەسەر ڕێدۆزەکانی سەرقاڵ فەرمانەکانی show باشترن.
The safe debug routine.ڕێڕەوی سەلامەتی debug.CêIT

Checking the servicesپشکنینی خزمەتگوزارییەکان

When the path works but a service does not, ask the service directly. Each command below is taught in its own lesson:

کاتێک ڕێگاکە کار دەکات بەڵام خزمەتگوزارییەک کار ناکات، ڕاستەوخۆ لە خزمەتگوزارییەکە بپرسە. هەر خوارەوە لە وانەی خۆیدا فێر کراوە:

CommandQuestion it answersئەو پرسیارەی وەڵامی دەداتەوەTaught inفێرکراوە لە
show ip dhcp bindingWhich PC got which address from the router?کام PC کام ناونیشانی لە وەرگرت؟DHCP on a Cisco routerDHCP لەسەر ڕێدۆزێکی Cisco
show ip nat translationsWhich inside address is mapped to which public address?کام ناونیشانی ناوەوە بە کام ناونیشانی گشتی بەستراوەتەوە؟Step 4: ping and read the translation tableهەنگاوی 4: خشتەی وەرگێڕان
show ip nat statisticsAre the inside and outside interfaces marked? Is the pool full? ناوەوە و دەرەوە دیاری کراون؟ پڕە؟Checking dynamic NATپشکنینی وەرگێڕانی بزۆکی ناونیشانی ڕایەڵە
show access-listsWhich ACL line do the packets really hit? بەڕاستی بە کام دێڕی دەگەن؟Checking an ACLپشکنینی ACL
show ip interface g0/0Which ACL is applied here, in which direction?کام لێرە جێبەجێ کراوە، بە کام ئاڕاستە؟Checking an ACLپشکنینی ACL

Four faults of static and default routesچوار هەڵەی ڕێگە جێگیرەکان و ڕێگە بنەڕەتییەکان

Cisco’s switching and routing course ends with troubleshooting static and default routes. Almost every fault is one of four. Each leaves a clear trace in a show command:

کۆرسی و Cisco بە و کۆتایی دێت. نزیکەی هەموو هەڵەیەک یەکێکە لە چوار. هەریەکەیان شوێنێکی ڕوون لە showـدا جێدەهێڵێت:

Four cards. Wrong next hop: symptom R1 to the server gives U.U.U from R2; show ip route on R2 has no S 192.168.3.0; ip route … 10.0.32.2 was a typo — use 10.0.23.2. Missing route back: R1 pings work, PC1 times out; extended ping with source 192.168.1.1 gives .....; R2 has no route to 192.168.1.0 — add ip route 192.168.1.0 255.255.255.0 10.0.12.1. Interface down: all routes over the link vanish; show ip interface brief shows up/down; no clock on the DCE end — clock rate 64000, no shutdown. Mask typo: only 192.168.3.0 itself is reachable; show ip route shows 192.168.3.0/32; mask 255.255.255.255 should be 255.255.255.0.چوار کارت. بازی دواتری هەڵە: نیشانە R1 بۆ ڕاژەکار U.U.U لە R2ـەوە وەردەگرێت؛ show ip route لەسەر R2 S 192.168.3.0ـی تێدا نییە؛ ip route … 10.0.32.2 هەڵەی نووسین بوو — 10.0.23.2 بەکار بهێنە. ڕێگەی گەڕانەوە نییە: پینگەکانی R1 کار دەکەن، PC1 کاتی بەسەر دەچێت؛ extended ping بە سەرچاوەی 192.168.1.1 ..... دەدات؛ R2 ڕێگەی بۆ 192.168.1.0 نییە — ip route 192.168.1.0 255.255.255.0 10.0.12.1 زیاد بکە. نێوبەستە کەوتووە: هەموو ڕێگەکانی سەر بەستەرەکە نامێنن؛ show ip interface brief up/down پیشان دەدات؛ کاتژمێر لەسەر سەری DCE نییە — clock rate 64000، no shutdown. هەڵەی ماسک: تەنیا خودی 192.168.3.0 دەگیرێت؛ show ip route 192.168.3.0/32 پیشان دەدات؛ ماسکی 255.255.255.255 دەبێت 255.255.255.0 بێت.
Symptom → command → finding → fix.نیشانە ← ← دۆزینەوە ← چاککردنەوە.CêIT
The mask typo, seen twice (Codes legend removed)هەڵەی ماسکەکە، دوو جار بینراو (لیستی Codes لابراوە)TEXT
R2#show ip route static
S     192.168.1.0/24 [1/0] via 10.0.12.1
      192.168.3.0/32 is subnetted, 1 subnets
S        192.168.3.0 [1/0] via 10.0.23.2
R2#show running-config | include ip route
ip route 192.168.1.0 255.255.255.0 10.0.12.1
ip route 192.168.3.0 255.255.255.255 10.0.23.2
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 3-4

A /32 route: it matches only the address 192.168.3.0, not the server (192.168.3.10).

ڕێگەیەکی /32: تەنیا ناونیشانی ⁦192.168.3.0⁩ دەگرێتەوە، نەک ⁦(192.168.3.10)⁩.

Lineدێڕی 5

| include shows only matching lines. If your Packet Tracer version rejects |, read the full show running-config.

| include تەنیا دێڕە گونجاوەکان پیشان دەدات. ئەگەر وەشانی Packet Tracerـەکەت | ڕەت بکاتەوە، هەموو show running-config بخوێنەوە.

Putting it together: divide and conquer along the pathکۆکردنەوەی هەمووی: دابەشکردن و زاڵبوون لە درێژایی ڕێگاکەدا

Here is a whole case. PC1 cannot reach the server, and its ping already gives a clue: R2 answers “unreachable”. From R1, test the middle of the path, then a little further, until a ping fails; then look inside the router where it fails. Each test halves the suspects.

ئەمە نموونەیەکی تەواوە. ⁦PC1⁩ ناگاتە و پێشتر سەرەداوێک دەدات: ⁦R2⁩ وەڵامی «unreachable» دەداتەوە. لە ⁦R1⁩ـەوە ناوەڕاستی ڕێگاکە تاقی بکەرەوە، پاشان کەمێک دوورتر، تا شکست دەهێنێت؛ پاشان سەیری ناو ئەو بکە کە شکستەکەی لێیە. هەر تاقیکردنەوەیەک گومانلێکراوەکان نیوە دەکات.

Six frames on PC1 — R1 — R2 — R3 — Server. 1: PC1’s ping says Reply from 10.0.12.2: Destination host unreachable. 2: R1#ping 10.0.12.2 gives !!!!! — the first link is fine. 3: R1#ping 10.0.23.2 gives !!!!! — R2 and its link to R3 are fine. 4: R1#ping 192.168.3.10 gives U.U.U — R2 is highlighted. 5: on R2, show ip route 192.168.3.0 says % Network not in table and show running-config | include ip route shows ip route 192.168.3.0 255.255.255.0 10.0.32.2 — a typo. 6: R2 removes the wrong route and adds ip route 192.168.3.0 255.255.255.0 10.0.23.2; R1’s ping gives !!!!!.
Six frames on PC1 — R1 — R2 — R3 — Server. 1: PC1’s ping says Reply from 10.0.12.2: Destination host unreachable. 2: R1#ping 10.0.12.2 gives !!!!! — the first link is fine. 3: R1#ping 10.0.23.2 gives !!!!! — R2 and its link to R3 are fine. 4: R1#ping 192.168.3.10 gives U.U.U — R2 is highlighted. 5: on R2, show ip route 192.168.3.0 says % Network not in table and show running-config | include ip route shows ip route 192.168.3.0 255.255.255.0 10.0.32.2 — a typo. 6: R2 removes the wrong route and adds ip route 192.168.3.0 255.255.255.0 10.0.23.2; R1’s ping gives !!!!!.
From symptom to the one wrong line, in five tests.لە نیشانەوە بۆ تاکە دێڕە هەڵەکە، بە پێنج تاقیکردنەوە.CêIT

After the fix: verify, save, back up, documentدوای چاککردنەوە: پشکنین، پاشەکەوت، باکئەپ، بەڵگەنامە

A fix is finished when the user’s test works, not just yours. Then save it (copy running-config startup-config), keep a copy of the configuration off the device — a TFTP or SCP server, as in Backups on a server — and write down what happened, what you changed and why (Verify, prevent and document). A saved, known-good configuration is also your fastest tool next time: compare the broken router with it.

چاککردنەوەیەک کاتێک تەواو دەبێت کە تاقیکردنەوەی بەکارهێنەر کار بکات، نەک تەنیا هی تۆ. پاشان پاشەکەوتی بکە (copy running-config startup-config)، کۆپییەکی لە دەرەوەی ئامێرەکە هەڵبگرە — TFTP یان SCP، وەک لە باکئەپ لەسەر ڕاژەکارێک — و بنووسە چی ڕوویدا، چیت گۆڕی و بۆچی (پشکنین، ڕێگرتن و بەڵگەنامە). پاشەکەوتکراو و دڵنیا خێراترین ئامرازیشتە بۆ جاری داهاتوو: تێکچووەکەی لەگەڵ بەراورد بکە.

Save the fix, then keep a copy on the serverچاککردنەوەکە پاشەکەوت بکە، پاشان کۆپییەک لەسەر ڕاژەکارەکە هەڵبگرەTEXT
R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R2#copy running-config tftp://192.168.3.10/r2-confg
Address or name of remote host [192.168.3.10]?
Destination filename [r2-confg]?
!!
1279 bytes copied in 0.140 secs (9136 bytes/sec)
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 6-7

Press Enter to accept the answers in brackets. Packet Tracer words these lines a little differently.

Enter دابگرە بۆ وەرگرتنی وەڵامەکانی ناو کەوانە. Packet Tracer ئەم دێڕانە کەمێک بە شێوەیەکی تر دەنووسێت.

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

Practice scenarios in Packet Tracerسیناریۆکانی ڕاهێنان لە Packet Tracerـدا

Break the practice network (or a lab from an earlier lesson) in one of these ways, swap with a classmate, and find each other’s fault with the tools of this lesson. Write down: symptom → command → finding → fix.

ڕاهێنان (یان تاقیکردنەوەیەک لە وانەیەکی پێشوو) بە یەکێک لەم ڕێگایانە تێک بدە، لەگەڵ هاوپۆلێک بیگۆڕنەوە و بە ئامرازەکانی ئەم وانەیە هەڵەی یەکتری بدۆزنەوە. بنووسە: نیشانە ← ← دۆزینەوە ← چاککردنەوە.

ExerciseڕاهێنانScenario 1: a link that will not come upسیناریۆی 1: بەستەرێک کە کارا نابێت

R2’s Serial0/0/1 shows up/down after someone erased part of the configuration. Which commands find the cause, and what is the fix?

⁦Serial0/0/1⁩ـی ⁦R2⁩ دوای ئەوەی کەسێک بەشێک لە سڕییەوە ⁦up/down⁩ پیشان دەدات. کام هۆکارەکە دەدۆزنەوە و چاککردنەوەکە چییە؟

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

show ip interface brief (up/down = layer 2), then show controllers serial 0/0/1 on both routers: R2 has the DCE cable. Add clock rate 64000 under R2’s S0/0/1, check that the line protocol comes up, then save.

show ip interface brief (⁦up/down⁩ = چینی ⁦2⁩)، پاشان show controllers serial 0/0/1 لەسەر هەردوو : کێبڵی DCE لای ⁦R2⁩ـیە. clock rate 64000 لە ژێر ⁦S0/0/1⁩ـی ⁦R2⁩ زیاد بکە، بپشکنە کە line protocol کارا دەبێت، پاشان پاشەکەوت بکە.

ExerciseڕاهێنانScenario 2: one VLAN cut offسیناریۆی 2: یەک VLAN دابڕاوە

In the router-on-a-stick lab, PCs in VLAN 20 cannot ping their gateway while VLAN 10 works. Find the fault on the switch.

لە تاقیکردنەوەی ⁦router-on-a-stick⁩ـدا، PCـەکانی ⁦VLAN 20⁩ ناتوانن بۆ بکەن لە کاتێکدا ⁦VLAN 10⁩ کار دەکات. هەڵەکە لەسەر بدۆزەرەوە.

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

show vlan brief (does VLAN 20 exist and hold the PCs’ ports?) and show interfaces trunk (is VLAN 20 in the allowed and active list?). A typical fix: switchport trunk allowed vlan add 20 on the trunk (native and allowed VLANs); on the router, check the subinterface’s encapsulation dot1Q 20 (the router side).

show vlan brief (⁦VLAN 20⁩ هەیە و PCـەکانی تێدایە؟) و show interfaces trunk (⁦VLAN 20⁩ لە نێو VLANـە ڕێگەپێدراو و کاراکاندایە؟). چاککردنەوەی ئاسایی: switchport trunk allowed vlan add 20 لەسەر (VLANـی ڕەسەن و ڕێگەپێدراو)؛ لەسەر ، encapsulation dot1Q 20ـی بپشکنە (لای ڕێدۆزەکە).

ExerciseڕاهێنانScenario 3: SSH works from one PC onlyسیناریۆی ⁦3: SSH⁩ تەنیا لە یەک PCـەوە کار دەکات

The new admin laptop (192.168.10.6) cannot open SSH to R1; the old admin PC (192.168.10.5) can. Passwords are correct. What do you check?

نوێی بەڕێوەبەر ⁦(192.168.10.6)⁩ ناتوانێت SSH بۆ ⁦R1⁩ بکاتەوە؛ PCـی کۆنی بەڕێوەبەر ⁦(192.168.10.5)⁩ دەتوانێت. دروستن. چی دەپشکنیت؟

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

show running-config under line vty 0 4 shows access-class 5 in; show access-lists shows that ACL 5 permits only host 192.168.10.5 (and its counter rises for the old PC). Add access-list 5 permit host 192.168.10.6 (access-class).

show running-config لە ژێر line vty 0 4 access-class 5 in پیشان دەدات؛ show access-lists پیشان دەدات کە ⁦ACL 5⁩ تەنیا ڕێگە بە ⁦host 192.168.10.5⁩ دەدات (و ژمێرەرەکەی بۆ PCـە کۆنەکە زیاد دەبێت). access-list 5 permit host 192.168.10.6 زیاد بکە (⁦access-class⁩).

ExerciseڕاهێنانScenario 4: NAT translates nothingسیناریۆی ⁦4: NAT⁩ هیچ شتێک وەرناگێڕێت

In the PAT lab, no PC reaches the outside and show ip nat translations stays empty. Which command shows the fault quickest?

لە تاقیکردنەوەی PATـدا، هیچ PCـێک ناگاتە دەرەوە و show ip nat translations بەتاڵ دەمێنێتەوە. کام خێراتر هەڵەکە پیشان دەدات؟

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

show ip nat statistics: if the inside or outside interface list is empty or wrong, add ip nat inside / ip nat outside; if they are right, check the access list with show access-lists (NAT checklist).

show ip nat statistics: ئەگەر لیستی ناوەوە یان دەرەوە بەتاڵ یان هەڵە بێت، ip nat inside / ip nat outside زیاد بکە؛ ئەگەر دروست بن، بە show access-lists بپشکنە (لیستی پشکنینی NAT).

ExerciseڕاهێنانScenario 5: a port that switched itself offسیناریۆی 5: دەرچەیەک کە خۆی کوژاندەوە

A PC in the library stopped working after someone plugged a small hub into its wall port. The switch port shows down (err-disabled). What happened, and how do you bring it back?

PCـێک لە کتێبخانەکە دوای ئەوەی کەسێک بچووکی بە دیوارەکەیەوە بەست وەستا. down (err-disabled) پیشان دەدات. چی ڕوویدا و چۆن دەیگەڕێنیتەوە؟

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

Port security saw a second MAC address and shut the port (show port-security interface …). Remove the hub, then shutdown and no shutdown on the port (bring the port back).

دووەمی بینی و کوژاندەوە (show port-security interface …). لاببە، پاشان shutdown و no shutdown لەسەر (دەرچەکە بگەڕێنەرەوە).

Summaryپوختە

  • Same method as on a PC, different tools: show commands first, then ping and traceroute, debug last.
  • Layer 1–2: show ip interface brief (Status/Protocol), show interfaces counters, show controllers serial (DCE clock), show cdp neighbors / LLDP, the switch commands.
  • Layer 3: show ip route [address], show ip protocols; IOS ping characters ! . U Q M ? &; extended ping with a source; traceroute marks * !H !N !A.
  • Services: show ip dhcp binding, show ip nat translations, show access-lists.
  • debug: terminal monitor over SSH, filter it, undebug all at once.
  • Static-route faults: wrong next hop, missing return route, interface down, mask typo. Then verify, save, back up and document.
  • هەمان ڕێگای سەر PC، ئامرازی جیاواز: سەرەتا show، پاشان و ، دواجار debug.
  • چینی ⁦1–2⁩: show ip interface brief ⁦(Status/Protocol)⁩، ژمێرەرەکانی show interfaces، show controllers serial (کاتژمێری DCE)، show cdp neighbors / LLDP، .
  • چینی 3: show ip route [address]، show ip protocols؛ پیتەکانی ⁦IOS ! . U Q M ?⁩ &؛ extended ping بە سەرچاوەوە؛ نیشانەکانی ⁦traceroute * !H !N !A⁩.
  • خزمەتگوزارییەکان: show ip dhcp binding، show ip nat translations، show access-lists.
  • debug: terminal monitor بە SSH، فلتەری بکە، دەستبەجێ undebug all.
  • هەڵەکانی : هەڵە، ڕێگەی گەڕانەوەی ون، کەوتوو، هەڵەی ماسک. پاشان پشکنین، پاشەکەوت، و .

The next lesson leaves the command line behind: Network Virtualization, SDN and Automation shows how controllers and scripts configure — and check — hundreds of devices at once.

وانەی داهاتوو بەجێ دەهێڵێت: Network Virtualization، SDN و ئۆتۆماتیک پیشان دەدات کۆنترۆڵەر و سکریپتەکان چۆن سەدان ئامێر بەیەکجار ڕێک دەخەن — و دەپشکنن.

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

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

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

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

Network Virtualization, SDN and Automationگریمانەسازیی ڕایەڵە، SDN و خۆکارکردن

Related lecturesوانە پەیوەندیدارەکان

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.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.