Chapterبەش 1 · Lectureوانە 1.2

Show Commands, Running and Startup Configurationsفەرمانەکانی show، ڕێکخستنی کارا و ڕێکخستنی دەستپێکردن

The running-config in RAM and the startup-config in NVRAM; why configure terminal saves nothing and how copy running-config startup-config (write memory) does; reload and its questions; show running-config, show startup-config, show version and the configuration register, show flash:, show history, show ip interface brief and the full show ? list; reading a running-config; the do command; erasing and a full switch reset with vlan.dat; merging with copy and the legacy configure memory / configure network; backups to TFTP and SCP servers.

لە RAMـدا و لە NVRAMـدا؛ بۆچی configure terminal هیچ پاشەکەوت ناکات و ⁦copy running-config startup-config (write memory)⁩ چۆن دەیکات؛ reload و پرسیارەکانی؛ ⁦show running-config⁩، ⁦show startup-config⁩، show version و configuration register، show flash:، show history، show ip interface brief و لیستی تەواوی ⁦show ?⁩؛ خوێندنەوەی ⁦running-config⁩؛ do؛ سڕینەوە و ڕێکخستنەوەی تەواوی لەگەڵ ⁦vlan.dat⁩؛ تێکەڵکردن بە copy و ⁦configure memory / configure network⁩ـی کۆن؛ بۆ TFTP و SCP.

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

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

  • Explain the difference between the running-config (RAM) and the startup-config (NVRAM) and what happens at power-off.
  • Save with copy running-config startup-config or write memory, and explain why configure terminal does not save.
  • Use the main show commands, read a running-config from top to bottom and use do from configuration mode.
  • Erase a router and fully reset a switch (including vlan.dat), and reload safely.
  • Explain that copying into the running-config merges, and back up a configuration to a TFTP or SCP server.
  • جیاوازیی نێوان ⁦(RAM)⁩ و ⁦(NVRAM)⁩ و ئەوەی لە کاتی بڕینی کارەبادا ڕوو دەدات ڕوون بکەیتەوە.
  • بە ⁦copy running-config startup-config⁩ یان write memory پاشەکەوت بکەیت و ڕوونی بکەیتەوە بۆچی configure terminal پاشەکەوت ناکات.
  • سەرەکییەکانی show بەکار بهێنیت، ⁦running-config⁩ لە سەرەوە بۆ خوارەوە بخوێنیتەوە و do لە ڕێکخستنەوە بەکار بهێنیت.
  • بسڕیتەوە و بە تەواوی ڕێکبخەیتەوە (لەگەڵ ⁦vlan.dat⁩) و بە سەلامەتی reload بکەیت.
  • ڕوونی بکەیتەوە کە کۆپیکردن بۆ ناو ⁦running-config⁩ تێکەڵ دەکات و لە بۆ TFTP یان SCP دروست بکەیت.

Two configurations: running and startupدوو ڕێکخستن: کارا و دەستپێکردن

A Cisco device keeps its configuration in two places, which you met as two of the four memories. The running-config lives in RAM: it is the configuration the device is using right now, and every command you type changes it at once. The startup-config lives in NVRAM: it is the saved copy that IOS loads when the device starts.

ئامێرێکی Cisco لە دوو شوێندا هەڵدەگرێت، کە وەک دووان لە چوار بیرگەکە ناسیتن. لە RAMـدایە: ئەو کە ئامێرەکە ئێستا بەکاری دەهێنێت و هەر بنووسیت دەستبەجێ دەیگۆڕێت. لە NVRAMـدایە: ئەو کۆپییە پاشەکەوتکراوەیە کە IOS لە کاتی دەستپێکردنی ئامێرەکەدا باری دەکات.

RAM is volatile: if the power goes off before you save, everything since the last save is gone, and the device starts from the old startup-config — or from nothing.

RAM . ئەگەر پێش پاشەکەوتکردن کارەبا ببڕێت، هەموو ئەو شتانەی لە دوایین پاشەکەوتەوە ڕێکت خستوون ون دەبن و ئامێرەکە دووپاتە لە ⁦startup-config⁩ـە کۆنەکەوە دەست پێ دەکاتەوە — یان لە هیچەوە.

The whiteboard and the notebookتەختەی سپی و دەفتەر

The running-config is like the classroom whiteboard: you can change it freely and everyone works from it, but the cleaner wipes it every evening. The startup-config is your notebook: it stays. Before you leave, copy the board into the notebook.

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

Where the analogy stops workingسنووری ئەم نموونەیە

A whiteboard changes only when you write; the running-config also changes when the device itself learns things, such as a new route.

تەختەی سپی تەنیا کاتێک دەگۆڕێت کە دەنووسیت؛ کاتێکیش دەگۆڕێت کە خودی ئامێرەکە شتێک فێر دەبێت.

An animation with two boxes, RAM holding the running-config and NVRAM holding the startup-config. 1: commands typed at the console fill the running-config; NVRAM is empty. 2: the power goes off and RAM is crossed out — nothing was saved. 3: at power-on NVRAM is empty, so the router asks the initial configuration question and shows Router>. 4: the commands are typed again and copy running-config startup-config copies RAM into NVRAM; the console shows Building configuration... [OK]. 5: after power off and on, the startup-config is copied back into RAM and the prompt R1> shows the configuration is back.
An animation with two boxes, RAM holding the running-config and NVRAM holding the startup-config. 1: commands typed at the console fill the running-config; NVRAM is empty. 2: the power goes off and RAM is crossed out — nothing was saved. 3: at power-on NVRAM is empty, so the router asks the initial configuration question and shows Router>. 4: the commands are typed again and copy running-config startup-config copies RAM into NVRAM; the console shows Building configuration... [OK]. 5: after power off and on, the startup-config is copied back into RAM and the prompt R1> shows the configuration is back.
What is not copied to NVRAM does not survive a power cut.ئەوەی بۆ NVRAM کۆپی نەکرابێت بە بڕینی کارەبا نامێنێت.CêIT

configure terminal does not save anythingconfigure terminal هیچ پاشەکەوت ناکات

A common belief is that configure terminal saves the configuration. It does not. It only moves you from privileged EXEC (R1#) into global configuration mode (R1(config)#), where you may type configuration commands. Each of those commands takes effect immediately in the running-config — the device starts using it the moment you press Enter — and NVRAM stays exactly as it was.

باوەڕێکی باو ئەوەیە کە configure terminal پاشەکەوت دەکات. وا نییە. تەنیا لە (R1#)ەوە دەتباتە (R1(config)#)، کە لەوێ دەتوانیت ڕێکخستن بنووسیت. هەر لەوانە دەستبەجێ لە ⁦running-config⁩ـدا کار دەکات — ئامێرەکە لەو ساتەوە بەکاری دەهێنێت کە Enter دادەگریت — و NVRAM ڕێک وەک خۆی دەمێنێتەوە.

So two separate steps always belong together: change (in configuration mode) and save (copy running-config startup-config, back at R1#). When you leave configuration mode, IOS logs %SYS-5-CONFIG_I: Configured from console by console — that only says the running-config was changed, not that it was saved.

بۆیە دوو هەنگاوی جیا هەمیشە پێکەوەن: گۆڕین (لە ) و پاشەکەوتکردن (copy running-config startup-config، دوای گەڕانەوە بۆ R1#). کاتێک لە ڕێکخستن دەردەچیت، IOS دەنووسێت %SYS-5-CONFIG_I: Configured from console by console — ئەمە تەنیا دەڵێت ⁦running-config⁩ گۆڕدرا، نەک پاشەکەوت کرا.

R1# goes with conf t into R1(config)#, global configuration. An arrow from there points to RAM, where the running-config changes at once. Below, NVRAM with the startup-config is marked unchanged; only the arrow labelled copy run start goes from RAM to NVRAM. Text: every command you type in configuration mode takes effect immediately in the running-config (RAM); only copy running-config startup-config writes it to NVRAM, so that it survives a restart.R1# بە conf t دەچێتە R1(config)#، باری ڕێکخستنی گشتی. تیرێک لەوێوە ئاماژە بۆ RAM دەکات، کە running-config دەستبەجێ دەگۆڕێت. لە خوارەوە، NVRAM لەگەڵ startup-config وەک نەگۆڕاو نیشانە کراوە؛ تەنیا ئەو تیرەی copy run startـی لەسەرە لە RAMـەوە دەچێت بۆ NVRAM. دەق: هەر فەرمانێک لە ڕێکخستندا بینووسیت دەستبەجێ لە running-config (RAM)دا کار دەکات؛ تەنیا copy running-config startup-config دەینووسێت لە NVRAMـدا تا دوای دەستپێکردنەوە بمێنێت.
Entering configuration mode is not saving.چوونە ناو ڕێکخستن پاشەکەوتکردن نییە.CêIT

Saving: copy running-config startup-configپاشەکەوتکردن: ⁦copy running-config startup-config⁩

copy running-config startup-config copies the running-config from RAM to NVRAM and replaces the old startup-config. Most people type the short form copy run start. The older write memory (or just wr) does the same and still works on current IOS and IOS XE. Make it a habit: every lab in this course ends with this command.

copy running-config startup-config لە RAMـەوە کۆپی دەکات بۆ NVRAM و ⁦startup-config⁩ـە کۆنەکە دەگۆڕێتەوە. زۆربەی خەڵک copy run start دەنووسن. write memoryـی کۆنتر (یان تەنیا wr) هەمان کار دەکات و هێشتا لە IOS و IOS XEـی ئەمڕۆدا کار دەکات. بیکە بە ڕاهاتن: هەموو تاقیگەیەکی ئەم کۆرسە بەم کۆتایی دێت.

Two ways to save, and what IOS answersدوو ڕێگەی پاشەکەوتکردن و وەڵامی IOSTEXT
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#write memory
Building configuration...
[OK]
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 2

IOS proposes the name startup-config: just press Enter.

IOS ناوی ⁦startup-config⁩ پێشنیار دەکات: تەنیا Enter دابگرە.

Lineدێڕی 4

[OK] means the configuration is now in NVRAM.

⁦[OK]⁩ واتە ئێستا لە NVRAMـدایە.

Lineدێڕی 5-7

write memory saves without asking for a file name.

write memory بەبێ پرسیاری ناوی پاشەکەوت دەکات.

Three ways to type the same save: copy running-config startup-config (the full command), copy run start (the usual short form) and write memory or wr (an older command that still works). A small picture shows an arrow from RAM (running-config) to NVRAM (startup-config) that replaces the old copy. Below, the console: R1#copy running-config startup-config, Destination filename [startup-config]? (press Enter to accept the name), Building configuration..., [OK].سێ شێوە بۆ نووسینی هەمان پاشەکەوتکردن: copy running-config startup-config (فەرمانی تەواو)، copy run start (کورتکراوەی باو) و write memory یان wr (فەرمانێکی کۆنترە، هێشتا کار دەکات). وێنەیەکی بچووک تیرێک لە RAM (running-config)ەوە بۆ NVRAM (startup-config) پیشان دەدات کە کۆپییە کۆنەکە دەگۆڕێتەوە. لە خوارەوە، کۆنسۆڵ: R1#copy running-config startup-config، Destination filename [startup-config]? (Enter دابگرە بۆ پەسەندکردنی ناوەکە)، Building configuration...، [OK].
copy run start = write memory: both overwrite the startup-config.⁦copy run start = write memory⁩: هەردووکیان ⁦startup-config⁩ دەگۆڕنەوە.CêIT

reload: restarting from the command linereload: دەستپێکردنەوە لە هێڵی فەرمانەوە

reload restarts a router or switch, like switching it off and on. If the running-config differs from the startup-config, IOS first asks whether to save. Answer yes to keep your changes or no to throw them away — useful when an experiment went wrong. Then confirm the restart with Enter.

reload یان دەستپێدەکاتەوە، وەک کوژاندنەوە و هەڵکردنەوە. ئەگەر ⁦running-config⁩ جیاواز بێت لە ⁦startup-config⁩، IOS سەرەتا دەپرسێت ئایا پاشەکەوتی بکات. وەڵامی yes بدەوە بۆ پاراستنی گۆڕانکارییەکانت یان no بۆ فڕێدانیان — بەسوودە کاتێک تاقیکردنەوەیەک هەڵە دەرچوو. پاشان بە Enter پشتڕاست بکەرەوە.

Restarting without saving the latest changesدەستپێکردنەوە بەبێ پاشەکەوتکردنی دوایین گۆڕانکارییەکانTEXT
R1#reload
System configuration has been modified. Save? [yes/no]: no
Proceed with reload? [confirm]
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 2

Asked only when there are unsaved changes.

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

Lineدێڕی 3

Enter restarts; any other key cancels.

Enter دەستپێدەکاتەوە؛ هەر دوگمەیەکی تر هەڵی دەوەشێنێتەوە.

R1#reload leads to the question System configuration has been modified. Save? [yes/no]:, which is asked only when the running-config differs from the startup-config. yes saves to NVRAM first and then restarts; no restarts without saving, so unsaved changes are lost. Then Proceed with reload? [confirm]: Enter restarts now, any other key cancels. Good habit: save first, then reload.R1#reload دەگاتە پرسیاری System configuration has been modified. Save? [yes/no]:، کە تەنیا کاتێک دەپرسرێت running-config جیاواز بێت لە startup-config. yes سەرەتا لە NVRAMـدا پاشەکەوت دەکات و پاشان دەستپێدەکاتەوە؛ no بەبێ پاشەکەوت دەستپێدەکاتەوە، بۆیە گۆڕانکارییە پاشەکەوتنەکراوەکان ون دەبن. پاشان Proceed with reload? [confirm]: Enter ئێستا دەستپێدەکاتەوە، هەر دوگمەیەکی تر هەڵی دەوەشێنێتەوە. ڕاهاتنی باش: سەرەتا پاشەکەوت بکە، پاشان reload.
Read the question before you press Enter.پێش لێدانی Enter پرسیارەکە بخوێنەوە.CêIT

Looking at the two configurationsسەیرکردنی هەردوو ڕێکخستنەکە

show running-config lists the configuration the device is using now, from RAM. show startup-config lists the saved one, from NVRAM; on a new or erased device it answers startup-config is not present. Both are privileged EXEC commands. Compare them: if they differ, you have unsaved changes.

show running-config ئەو ڕیز دەکات کە ئامێرەکە ئێستا بەکاری دەهێنێت، لە RAMـەوە. show startup-config ئەوەی پاشەکەوتکراو ڕیز دەکات، لە NVRAMـەوە؛ لە ئامێرێکی نوێ یان سڕاوەدا وەڵام دەداتەوە startup-config is not present. هەردووکیان . بەراوردیان بکە: ئەگەر جیاواز بن، گۆڕانکاریی پاشەکەوتنەکراوت هەیە.

A long output stops at --More--. Press Space for the next screen, Enter for the next line, or any other key to stop. Short forms: sh run, sh start.

دەرچوونێکی درێژ لە --More--ـدا دەوەستێت. Space دابگرە بۆ پەڕەی داهاتوو، Enter بۆ دێڕی داهاتوو، یان هەر دوگمەیەکی تر بۆ وەستان. : sh run، sh start.

Two panels. show running-config reads RAM, what the device is doing now; its output starts Building configuration..., Current configuration : 801 bytes, version 15.1, hostname R1. show startup-config reads NVRAM, what it will load at the next start; on a new device it says startup-config is not present, because nothing has been saved yet. Compare the two: if they differ, you have unsaved changes.دوو بەش. show running-config RAM دەخوێنێتەوە، ئەوەی ئامێرەکە ئێستا دەیکات؛ دەرچوونەکەی بە Building configuration...، Current configuration : 801 bytes، version 15.1، hostname R1 دەست پێ دەکات. show startup-config NVRAM دەخوێنێتەوە، ئەوەی لە دەستپێکردنی داهاتوودا باری دەکات؛ لە ئامێرێکی نوێدا دەڵێت startup-config is not present، چونکە هێشتا هیچ پاشەکەوت نەکراوە. بەراوردیان بکە: ئەگەر جیاواز بن، گۆڕانکاریی پاشەکەوتنەکراوت هەیە.
show running-config = now; show startup-config = after the next restart.⁦show running-config⁩ = ئێستا؛ ⁦show startup-config⁩ = دوای داهاتوو.CêIT

Reading a running-configخوێندنەوەی ⁦running-config⁩

Here is the real running-config of a Cisco 1941 router from a Packet Tracer DHCP lab (empty ! lines shortened). Read it from top to bottom: global settings, then services, then one block per interface, then the lines.

ئەمە ⁦running-config⁩ـی ڕاستەقینەی ⁦Cisco 1941⁩ـە لە تاقیگەیەکی DHCPـی Packet Tracerـەوە (دێڕە بەتاڵەکانی ! کورت کراونەتەوە). لە سەرەوە بۆ خوارەوە بیخوێنەوە: ڕێکخستنە گشتییەکان، پاشان خزمەتگوزارییەکان، پاشان بۆ هەر بلۆکێک، پاشان هێڵەکان.

show running-config of a DHCP router (Packet Tracer, Cisco 1941)⁦show running-config⁩ـی ڕێدۆزێکی ⁦DHCP (Packet Tracer⁩، ⁦Cisco 1941⁩)TEXT
Router#show running-config
Building configuration...

Current configuration : 801 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
ip dhcp excluded-address 192.168.2.100
ip dhcp excluded-address 192.168.2.5
!
ip dhcp pool vlan2
 network 192.168.2.0 255.255.255.0
 default-router 192.168.2.5
 dns-server 8.8.8.8
!
ip cef
no ipv6 cef
!
license udi pid CISCO1941/K9 sn FTX1524T2NP-
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0
 ip address 192.168.2.5 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
ip flow-export version 9
!
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 4

The size of the configuration.

قەبارەی .

Lineدێڕی 6-11

Global settings. no service password-encryption is the default: passwords would appear as plain text (see lesson 3).

ڕێکخستنە گشتییەکان. ⁦no service password-encryption⁩ بنەڕەتە: وەک دەردەکەون (بڕوانە وانەی ⁦3⁩).

Lineدێڕی 13-19

The DHCP service: excluded addresses and the pool. Lines that start with a space belong to the line above.

خزمەتگوزاریی DHCP: ناونیشانە دەرکراوەکان و . ئەو دێڕانەی بە دەست پێ دەکەن سەر بە دێڕی سەرەوەن.

Lineدێڕی 28-31

The interface in use: its address.

ئەو بەکار دێت: ناونیشانەکەی.

Lineدێڕی 33-37

An unused interface: no address and shutdown (router interfaces start switched off).

بەکارنەهاتوو: بێ ناونیشان و shutdown ( کوژاوە دەست پێ دەکەن).

Not every line comes from you: IOS also prints settings it added itself (ip cef, license udi …, spanning-tree mode pvst). On a real router the configuration ends with the line con 0 and line vty blocks and the word end.

هەموو دێڕێک لە تۆوە نایەت: IOS ئەو ڕێکخستنانەش چاپ دەکات کە خۆی زیادی کردوون (ip cef، license udi …، spanning-tree mode pvst). لە ڕاستەقینەدا بە بلۆکەکانی line con 0 و line vty و وشەی end کۆتایی دێت.

A running-config split into four coloured blocks with labels. 1 Global settings: IOS version, services, host name (version 15.1, no service password-encryption, hostname R1). 2 Services, here the DHCP pool; the indented lines belong to it. 3 One block per interface; an unused one shows shutdown. 4 Lines (console, vty), then end. A note says that ! lines are only separators and lines with a leading space belong to the block above them.running-configـێک دابەشکراو بۆ چوار بلۆکی ڕەنگاوڕەنگ بە ناونیشان. 1 ڕێکخستنە گشتییەکان: وەشانی IOS، خزمەتگوزارییەکان، ناوی میوانگر (version 15.1، no service password-encryption، hostname R1). 2 خزمەتگوزارییەکان، لێرە پووڵی DHCP؛ دێڕە ناوخراوەکان سەر بەون. 3 بۆ هەر نێوبەستەیەک بلۆکێک؛ ئەوەی بەکار نەهاتووە shutdown پیشان دەدات. 4 هێڵەکان (کۆنسۆڵ، vty)، پاشان end. تێبینییەک دەڵێت دێڕەکانی ! تەنیا جیاکەرەوەن و دێڕێک کە بە بۆشایی دەست پێ دەکات سەر بە بلۆکەکەی سەرەوەیەتی.
Top to bottom: global, services, interfaces, lines.لە سەرەوە بۆ خوارەوە: گشتی، خزمەتگوزارییەکان، ، هێڵەکان.CêIT

The show commands you will use mostئەو فەرمانەکانی show کە زۆرترین بەکاریان دەهێنیت

show commands only look; they never change anything, so you can type them freely in privileged EXEC mode. show ? lists them all. The ones you need from the start:

show تەنیا سەیر دەکەن؛ هەرگیز هیچ ناگۆڕن، بۆیە دەتوانیت بە ئازادی لە بیاننووسیت. show ? هەموویان ڕیز دەکات. ئەوانەی لە سەرەتاوە پێویستن:

Show commands for a first look at a device show بۆ یەکەم سەیرکردنی ئامێرێک
CommandWhat it showsچی پیشان دەدات
show versionthe IOS version, uptime, image file, memory sizes, interfaces and the configuration registerوەشانی IOS، کاتی کارکردن، IOS، قەبارەی ، و configuration register
show flash:the files in flash memory — the IOS image, and on a switch vlan.dat ناو — IOS و لە vlan.dat
show historythe commands in the history buffer ناو مێژوو
show running-config / show startup-configthe configuration in RAM / in NVRAM لە RAM / لە NVRAMـدا
show ip interface briefone line per interface: address and statusیەک دێڕ بۆ هەر : ناونیشان و دۆخ
show interfacesfull details of every interface: status, MAC address, speed, countersوردەکاریی تەواوی هەموو : دۆخ، ، خێرایی، ژمێرەرەکان
show clockthe time the device usesئەو کاتەی ئامێرەکە بەکاری دەهێنێت
Four memory columns with the show commands that read them. ROM: show version (the bootstrap version). Flash: show flash: and show version (the IOS image). NVRAM: show startup-config. RAM: show running-config, show ip interface brief, show interfaces, show history, show clock. Below: show version sums up the device — IOS version, uptime, image file, memory sizes, interfaces — and its last line gives the configuration register, normally 0x2102.چوار ستوونی بیرگە لەگەڵ ئەو فەرمانەکانی show کە دەیانخوێننەوە. ROM: show version (وەشانی bootstrap). فلاش مێمۆری: show flash: و show version (فایلی IOS). NVRAM: show startup-config. RAM: show running-config، show ip interface brief، show interfaces، show history، show clock. لە خوارەوە: show version کورتەی ئامێرەکە دەدات — وەشانی IOS، کاتی کارکردن، فایلی IOS، قەبارەی بیرگەکان، نێوبەستەکان — و دوایین دێڕی configuration register دەدات، بە شێوەی ئاسایی 0x2102.
Each show command looks into one memory.هەر show سەیری یەک دەکات.CêIT

The show commands you will use mostئەو فەرمانەکانی show کە زۆرترین بەکاریان دەهێنیت

Inside show versionلە ناو show versionـدا

show version is the device's identity card. On the Packet Tracer Cisco 2901 it includes the lines below. The last line is the configuration register: 0x2102 means a normal start — load IOS from flash and the startup-config from NVRAM. Other values are used, for example, to recover a lost password.

show version ناسنامەی ئامێرەکەیە. لە ⁦Cisco 2901⁩ـی Packet Tracerـدا ئەم دێڕانەی خوارەوەی تێدایە. دوایین دێڕ configuration registerـە: 0x2102 واتە دەستپێکردنی ئاسایی — IOS لە و ⁦startup-config⁩ لە NVRAMـەوە بار بکە. بەهای تر بەکار دێن، بۆ نموونە بۆ گەڕاندنەوەی لەبیرچوو.

Parts of show version (Packet Tracer, Cisco 2901)بەشێک لە ⁦show version (Packet Tracer⁩، ⁦Cisco 2901⁩)TEXT
R1#show version
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc2)
<output omitted>
Cisco CISCO2901/K9 (revision 1.0) with 491520K/32768K bytes of memory.
Processor board ID FTX152400KS
2 Gigabit Ethernet interfaces
DRAM configuration is 64 bits wide with parity disabled.
255K bytes of non-volatile configuration memory.
249856K bytes of ATA System CompactFlash 0 (Read/Write)
<output omitted>
Configuration register is 0x2102
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 2

The IOS image family and version.

خێزان و وەشانی IOS.

Lineدێڕی 4

RAM: main memory plus memory for packets.

RAM: سەرەکی لەگەڵ بۆ .

Lineدێڕی 8

NVRAM, where the startup-config lives.

NVRAM، شوێنی ⁦startup-config⁩.

Lineدێڕی 9

Flash (CompactFlash), where the IOS image lives.

⁦(CompactFlash)⁩، شوێنی IOS.

Lineدێڕی 11

0x2102 = normal start.

⁦0x2102⁩ = دەستپێکردنی ئاسایی.

The show commands you will use mostئەو فەرمانەکانی show کە زۆرترین بەکاریان دەهێنیت

show ? on a 1941 router⁦show ?⁩ لە ڕێدۆزی ⁦1941⁩ـدا

show alone is not enough — IOS answers % Incomplete command. — and show ? lists every subject it can show. This is the full list of a Cisco 1941 router in Packet Tracer (IOS 15.1). You do not need to learn it; notice how many parts of the device you can inspect.

show بەتەنیا بەس نییە — IOS وەڵام دەداتەوە % Incomplete command. — و show ? هەموو ئەو بابەتانە ڕیز دەکات کە دەتوانێت پیشانیان بدات. ئەمە لیستی تەواوی ⁦Cisco 1941⁩ـە لە Packet Tracerـدا ⁦(IOS 15.1)⁩. پێویست ناکات لەبەری بکەیت؛ سەرنج بدە چەند بەشی ئامێرەکە دەتوانیت بپشکنیت.

The show ? list of a 1941 router (Packet Tracer, IOS 15.1)لیستی ⁦show ?⁩ـی ڕێدۆزی ⁦1941 (Packet Tracer⁩، ⁦IOS 15.1⁩)TEXT
Router#show
% Incomplete command.
Router#show ?
  aaa                Show AAA values
  access-lists       List access lists
  arp                Arp table
  cdp                CDP information
  class-map          Show QoS Class Map
  clock              Display the system clock
  controllers        Interface controllers status
  crypto             Encryption module
  debugging          State of each debugging option
  dhcp               Dynamic Host Configuration Protocol status
  dot11              IEEE 802.11 show information
  file               Show filesystem information
  flash:             display information about flash: file system
  flow               Flow information
  frame-relay        Frame-Relay information
  history            Display the session command history
  hosts              IP domain-name, lookup style, nameservers, and host table
  interfaces         Interface status and configuration
  ip                 IP information
  ipv6               IPv6 information
  license            Show license information
  line               TTY line information
  lldp               LLDP information
  logging            Show the contents of logging buffers
  login              Display Secure Login Configurations and State
  mac-address-table  MAC forwarding table
  ntp                Network time protocol
  parser             Show parser commands
  policy-map         Show QoS Policy Map
  pppoe              PPPoE information
  privilege          Show current privilege level
  processes          Active process statistics
  protocols          Active network routing protocols
  queue              Show queue contents
  queueing           Show queueing configuration
  running-config     Current operating configuration
  secure             Show secure image and configuration archive
  sessions           Information about Telnet connections
  snmp               snmp statistics
  spanning-tree      Spanning tree topology
  ssh                Status of SSH server connections
  standby            standby configuration
  startup-config     Contents of startup configuration
  storm-control      Show storm control configuration
  tcp                Status of TCP connections
  tech-support       Show system information for Tech-Support
  terminal           Display terminal configuration parameters
  users              Display information about terminal lines
  version            System hardware and software status
  vlan-switch        VTP VLAN status
  vtp                Configure VLAN database
  zone               Zone Information
  zone-pair          Zone pair information
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1-2

show needs a subject.

show پێویستی بە بابەتێک هەیە.

Lineدێڕی 39

running-config: the configuration in RAM.

⁦running-config⁩: لە RAMـدا.

Lineدێڕی 45

startup-config: the configuration in NVRAM.

⁦startup-config⁩: لە NVRAMـدا.

Lineدێڕی 51

version: hardware and software status.

version: دۆخی و .

Checking interfaces: show ip interface brief and pingپشکنینی نێوبەستەکان: show ip interface brief و ping

After configuring addresses, check them with show ip interface brief (short: sh ip int br): one line per interface with its address and two status columns. Status is the physical side (cable, power, and whether the interface was switched on); Protocol says whether the link really works. administratively down means someone — or the factory default — switched the interface off with shutdown.

دوای ڕێکخستنی ناونیشانەکان، بە show ip interface brief (کورتەکەی: sh ip int br) بیانپشکنە: یەک دێڕ بۆ هەر لەگەڵ ناونیشانەکەی و دوو ستوونی دۆخ. Status لایەنی فیزیکییە (کێبڵ، کارەبا و ئایا هەڵکراوە)؛ Protocol دەڵێت ئایا بەستەرەکە بەڕاستی کار دەکات. administratively down واتە کەسێک — یان ڕێکخستنی کارگە — بە shutdown کوژاندووەتەوە.

Checking the DHCP router's interfaces, then a pingپشکنینی نێوبەستەکانی ڕێدۆزی DHCP، پاشان پینگێکTEXT
Router#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0     192.168.2.5     YES manual up                    up
GigabitEthernet0/1     unassigned      YES unset  administratively down down
Vlan1                  unassigned      YES unset  administratively down down
Router#ping 192.168.2.10

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/1 ms
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 3

In use: an address typed by hand (manual), up and up.

بەکار دێت: ناونیشانێکی دەستی ⁦(manual)⁩، up و up.

Lineدێڕی 4-5

Not in use and switched off.

بەکار نایەت و کوژێنراوەتەوە.

Lineدێڕی 10

! = a reply, . = a timeout. The first dot is normal: the router was still learning the PC's MAC address with ARP.

! = وەڵامێک، . = تەواوبوونی کات. یەکەم خاڵ ئاساییە: هێشتا بە ARP فێری دەبوو.

The output of show ip interface brief with the column header Interface, IP-Address, OK?, Method, Status, Protocol and three interfaces: GigabitEthernet0/0 192.168.2.5 manual up up; GigabitEthernet0/1 unassigned unset administratively down down; Vlan1 unassigned unset administratively down down. A legend explains: Interface is the port name and number; IP-Address is its IPv4 address or unassigned; Method manual means typed by you, unset means none; Status is layer 1 (cable, power, no shutdown); Protocol is layer 2 (the link really works). up/up means working; administratively down means switched off with shutdown, as router interfaces start.دەرچوونی show ip interface brief بە سەردێڕی ستوونەکان Interface، IP-Address، OK?، Method، Status، Protocol و سێ نێوبەستە: GigabitEthernet0/0 192.168.2.5 manual up up؛ GigabitEthernet0/1 unassigned unset administratively down down؛ Vlan1 unassigned unset administratively down down. ڕوونکەرەوەیەک دەڵێت: Interface ناو و ژمارەی دەرچەکەیە؛ IP-Address ناونیشانی IPـەکەیەتی یان unassigned؛ Method manual واتە خۆت نووسیوتە، unset واتە نییە؛ Status چینی 1ـە (کێبڵ، کارەبا، no shutdown)؛ Protocol چینی 2ـە (بەستەرەکە بەڕاستی کار دەکات). up/up واتە کار دەکات؛ administratively down واتە بە shutdown کوژێنراوەتەوە، وەک نێوبەستەکانی ڕێدۆز دەست پێ دەکەن.
Two ups mean the interface works.دوو up واتە کار دەکات.CêIT

do: show commands from configuration modedo: فەرمانەکانی show لە ڕێکخستنەوە

show, copy, ping and clock are privileged EXEC commands. If you type show running-config at R1(config)#, IOS answers with an error (Packet Tracer sometimes says % Unrecognized command instead). You could type end, look, and go back with conf t — or put do in front: do show running-config runs the EXEC command and leaves you in the same configuration mode.

show، copy، ping و clock . ئەگەر لە R1(config)#ـدا show running-config بنووسیت، IOS بە هەڵەیەک وەڵام دەداتەوە (Packet Tracer هەندێک جار لەبری ئەوە دەڵێت % Unrecognized command). دەتوانیت end بنووسیت، سەیر بکەیت و بە conf t بگەڕێیتەوە — یان do بخەیتە پێشەوەی: do show running-config EXEC جێبەجێ دەکات و لە هەمان بارێکی ڕێکخستندا دەتهێڵێتەوە.

Checking and saving without leaving the interfaceپشکنین و پاشەکەوتکردن بەبێ دەرچوون لە نێوبەستەکەTEXT
R1(config)#interface g0/0
R1(config-if)#do show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0     192.168.2.5     YES manual up                    up
GigabitEthernet0/1     unassigned      YES unset  administratively down down
Vlan1                  unassigned      YES unset  administratively down down
R1(config-if)#do copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1(config-if)#
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 2

do + any EXEC command.

⁦do +⁩ هەر EXEC.

Lineدێڕی 11

Still in interface sub-mode.

هێشتا لە .

Two consoles. Without do: R1(config)#show running-config gives a caret and % Invalid input detected at '^' marker. With do: R1(config)#do show running-config prints Building configuration... and the configuration, and the prompt is still R1(config)#. Text: show, copy and ping belong to privileged EXEC (R1#); in any configuration mode put do in front of them — do show ip interface brief, do copy run start, do ping 192.168.2.1 — and you stay in the same mode.دوو کۆنسۆڵ. بەبێ do: R1(config)#show running-config نیشانەی ^ و % Invalid input detected at '^' marker دەدات. بە do: R1(config)#do show running-config Building configuration... و ڕێکخستنەکە چاپ دەکات و دەقی داواکردنەکە هێشتا R1(config)#ـە. دەق: show، copy و ping سەر بە باری مۆڵەتدارن (R1#)؛ لە هەر بارێکی ڕێکخستندا do بخە پێشیان — do show ip interface brief، do copy run start، do ping 192.168.2.1 — و لە هەمان باری فەرماندا دەمێنیتەوە.
do borrows an EXEC command without leaving configuration mode.do EXEC بە قەرز وەردەگرێت بەبێ دەرچوون لە ڕێکخستن.CêIT

Erasing: back to factory settingsسڕینەوە: گەڕانەوە بۆ ڕێکخستنی کارگە

To start a lab from zero, delete the saved configuration and restart. erase startup-config deletes the startup-config from NVRAM (the older write erase and erase nvram: do the same). The running-config is untouched until you reload — and at the reload, answer no if IOS asks to save, or you write the old configuration straight back.

بۆ دەستپێکردنی تاقیگەیەک لە سفرەوە، پاشەکەوتکراو بسڕەوە و دەستپێبکەرەوە. erase startup-config ⁦startup-config⁩ لە NVRAMـدا دەسڕێتەوە (write erase و erase nvram:ـی کۆنتر هەمان کار دەکەن). ⁦running-config⁩ دەست لێنەدراو دەمێنێت تا reload دەکەیت — و لە کاتی reloadـدا، ئەگەر IOS پرسی پاشەکەوت بکات، وەڵامی no بدەوە، ئەگەرنا کۆنەکە ڕاستەوخۆ دەنووسیتەوە.

A switch keeps its VLANs in a separate file, vlan.dat, in flash — not in the startup-config. For a full reset of a lab switch, also delete flash:vlan.dat before the reload. (To change single VLANs, use the VLAN commands of VLANs instead; Cisco warns that deleting the file by hand outside a full reset can leave the VLAN database inconsistent.)

لە جیادا هەڵدەگرێت، vlan.dat، لە — نەک لە ⁦startup-config⁩ـدا. بۆ ڕێکخستنەوەی تەواوی تاقیگە، پێش reload delete flash:vlan.datیش بکە. (بۆ گۆڕینی تاکە ، لەبری ئەوە VLAN بەکار بهێنە؛ Cisco ئاگاداری دەکاتەوە کە سڕینەوەی بە دەست لە دەرەوەی ڕێکخستنەوەیەکی تەواو دەتوانێت بنکەی تێکبدات.)

A full reset of a lab switchڕێکخستنەوەی تەواوی سویچێکی تاقیگەTEXT
Switch#delete flash:vlan.dat
Delete filename [vlan.dat]?
Delete flash:/vlan.dat? [confirm]
Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Switch#reload
Proceed with reload? [confirm]
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1-3

Remove the VLAN database from flash; press Enter twice to confirm.

بنکەی لە لاببە؛ دوو جار Enter دابگرە بۆ پشتڕاستکردنەوە.

Lineدێڕی 4-8

Delete the startup-config from NVRAM.

⁦startup-config⁩ لە NVRAMـدا بسڕەوە.

Lineدێڕی 9-10

Restart. If IOS asks Save? [yes/no], answer no.

دەستپێبکەرەوە. ئەگەر IOS پرسی ⁦Save? [yes/no]⁩، وەڵامی no بدەوە.

Three numbered steps. 1 erase startup-config deletes the configuration in NVRAM, for router and switch. 2 delete flash:vlan.dat deletes the VLAN database in flash, for a switch only. 3 reload restarts; answer no to Save?, for router and switch. Below, a console shows Switch#delete flash:vlan.dat, Delete filename [vlan.dat]?, Delete flash:/vlan.dat? [confirm], Switch#erase startup-config and Erasing the nvram filesystem will remove all configuration files! Continue? [confirm].سێ هەنگاوی ژمارەدار. 1 erase startup-config ڕێکخستنەکە لە NVRAMـدا دەسڕێتەوە، بۆ ڕێدۆز و سویچ. 2 delete flash:vlan.dat بنکەی VLANـەکان لە فلاش مێمۆریدا دەسڕێتەوە، تەنیا بۆ سویچ. 3 reload دەستپێدەکاتەوە؛ وەڵامی Save? بە no بدەوە، بۆ ڕێدۆز و سویچ. لە خوارەوە، کۆنسۆڵێک پیشان دەدات: Switch#delete flash:vlan.dat، Delete filename [vlan.dat]?، Delete flash:/vlan.dat? [confirm]، Switch#erase startup-config و Erasing the nvram filesystem will remove all configuration files! Continue? [confirm].
Router: erase and reload. Switch: also delete vlan.dat.: سڕینەوە و reload. : هەروەها ⁦vlan.dat⁩ بسڕەوە.CêIT

Loading a configuration: copy mergesبارکردنی ڕێکخستنێک: copy تێکەڵ دەکات

You can also copy into the running-config: copy startup-config running-config takes the saved file from NVRAM, and copy tftp: running-config takes a file from a TFTP server. Either way, IOS does not erase the running-config first. It applies the copied lines as if you typed them: lines in the copied file win, and lines the file does not mention stay. The result is a mixture, not a clean copy.

دەتوانیت بۆ ناو ⁦running-config⁩یش کۆپی بکەیت: copy startup-config running-config پاشەکەوتکراو لە NVRAMـەوە وەردەگرێت و copy tftp: running-config لە TFTPـەوە وەردەگرێت. لە هەردوو ڕێگەدا IOS سەرەتا ⁦running-config⁩ ناسڕێتەوە. دێڕە کۆپیکراوەکان جێبەجێ دەکات وەک ئەوەی خۆت نووسیبێتت: دێڕەکانی کۆپیکراو سەردەکەون و ئەو دێڕانەی باسیان ناکات دەمێنن. ئەنجامەکە تێکەڵەیەکە، نەک کۆپییەکی پاک.

Older IOS books name two commands for this. configure memory merged the startup-config from NVRAM into the running-config — it does not change the startup-config. configure network loaded a configuration from a network (TFTP) host into the running-config — it does not move where the device stores its configuration. Both are legacy forms; today you use the copy commands above.

کتێبە کۆنەکانی IOS ناوی دوو بۆ ئەمە دەبەن. configure memory ⁦startup-config⁩ـی لە NVRAMـەوە تێکەڵی ⁦running-config⁩ دەکرد — ⁦startup-config⁩ ناگۆڕێت. configure network لە ⁦(TFTP)⁩ەوە بار دەکرد بۆ ناو ⁦running-config⁩ — شوێنی هەڵگرتنی ئامێرەکە ناگوازێتەوە. هەردووکیان شێوەی کۆنن؛ ئەمڕۆ copyـی سەرەوە بەکار دەهێنیت.

Three boxes. The running-config now has hostname R1, ip domain-name lab.example and banner motd #Lab#. The file copied in has hostname R2 and ip domain-name hq.example. The result is a mixture: hostname R2 and ip domain-name hq.example from the file, and banner motd #Lab#, which the file did not mention, kept. Lines in the copied file win; lines it does not mention stay. Below: copy startup-config running-config merges the saved file into RAM (old form configure memory); copy tftp: running-config merges a file from a TFTP server (old form configure network).سێ چوارگۆشە. running-config ئێستا hostname R1، ip domain-name lab.example و banner motd #Lab#ـی تێدایە. فایلی کۆپیکراو hostname R2 و ip domain-name hq.exampleـی تێدایە. ئەنجامەکە تێکەڵەیەکە: hostname R2 و ip domain-name hq.example لە فایلەکەوە و banner motd #Lab#، کە فایلەکە باسی نەکردبوو، مایەوە. دێڕەکانی فایلی کۆپیکراو سەردەکەون؛ ئەو دێڕانەی باسیان ناکات دەمێنن. لە خوارەوە: copy startup-config running-config فایلی پاشەکەوتکراو تێکەڵی RAM دەکات (شێوەی کۆن configure memory)؛ copy tftp: running-config فایلێک لە ڕاژەکارێکی TFTPـەوە تێکەڵ دەکات (شێوەی کۆن configure network).
Copying into RAM adds and overwrites lines; it never deletes the others.کۆپیکردن بۆ ناو RAM دێڕ زیاد دەکات و دەینووسێتەوە؛ هەرگیز ئەوانی تر ناسڕێتەوە.CêIT

Backups on a server: TFTP and SCPباکئەپ لەسەر ڕاژەکارێک: TFTP و SCP

NVRAM keeps a configuration through a restart, but not through a broken router or a mistake. Network teams therefore keep copies on a server. TFTP (how it works) is the simple way: no user name, no password, nothing encrypted — fine in a lab (Packet Tracer's Server has a TFTP service), risky on a real network. SCP (Secure Copy) runs over SSH, so it asks for a user name and password and encrypts the file.

NVRAM لە دەپارێزێت، بەڵام لە تێکچوو یان هەڵەیەکدا نا. بۆیە تیمەکانی کۆپی لەسەر هەڵدەگرن. TFTP (چۆن کار دەکات) ڕێگە سادەکەیە: بێ ، بێ ، هیچ شفرە ناکرێت — بۆ تاقیگە باشە ( Packet Tracer خزمەتگوزاریی TFTPـی هەیە)، بۆ ڕاستەقینە مەترسیدارە. SCP ⁦(Secure Copy)⁩ بە ناو کار دەکات، بۆیە داوای و دەکات و شفرە دەکات.

Back up to a TFTP server, and load the file back (IOS 15 and IOS XE output)باکئەپ بۆ ڕاژەکارێکی TFTP و بارکردنەوەی فایلەکە (ئەوەی ⁦IOS 15⁩ و IOS XE پیشانی دەدەن)TEXT
R1#copy running-config tftp://192.168.1.10/r1-confg
Address or name of remote host [192.168.1.10]?
Destination filename [r1-confg]?
!!
874 bytes copied in 0.092 secs (9500 bytes/sec)
R1#copy tftp://192.168.1.10/r1-confg running-config
Destination filename [running-config]?
Accessing tftp://192.168.1.10/r1-confg...
Loading r1-confg from 192.168.1.10 (via GigabitEthernet0/0): !
[OK - 874 bytes]

874 bytes copied in 9.520 secs (91 bytes/sec)
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1-5

IOS asks for the server and the file name and shows its guess in brackets: press Enter to accept it. Each ! is a block of the file sent.

IOS ناونیشانی و ناوی دەپرسێت و پێشنیارەکەی لە ناو [ ]ـدا پیشان دەدات: بۆ پەسەندکردنی Enter دابگرە. هەر ! بەشێکی کە نێردرا.

Lineدێڕی 6-12

Loading the file back merges it into the running-config; then copy run start if you want to keep it.

بارکردنەوەی تێکەڵی ⁦running-config⁩ دەکات؛ پاشان ئەگەر دەتەوێت بیمێنێتەوە copy run start بکە.

In Packet Tracer, type copy running-config tftp: without an address: IOS asks Address or name of remote host []? (type the server's address) and Destination filename [R1-confg]? (press Enter), then reports the bytes copied.

لە Packet Tracerـدا copy running-config tftp: بەبێ ناونیشان بنووسە: IOS دەپرسێت Address or name of remote host []? (ناونیشانی بنووسە) و Destination filename [R1-confg]? (Enter دابگرە)، پاشان دەڵێت چەند کۆپی کرا.

Router R1 with its running-config sends a copy to a server at 192.168.1.10 in two ways. An orange arrow: TFTP, no password and nothing encrypted, for labs only. A green arrow: SCP, which runs over SSH with a user name, a password and encryption. Below, a console: R1#copy running-config tftp://192.168.1.10/r1-confg, Address or name of remote host [192.168.1.10]?, Destination filename [r1-confg]?, !!, 874 bytes copied in 0.092 secs (9500 bytes/sec), and R1#copy running-config scp://admin@192.168.1.10/r1-confg.ڕێدۆزی R1 لەگەڵ running-configـەکەی کۆپییەک بە دوو ڕێگە دەنێرێت بۆ ڕاژەکارێک لە 192.168.1.10. تیرێکی پرتەقاڵی: TFTP، بێ تێپەڕەوشە و هیچ شفرە ناکرێت، تەنیا بۆ تاقیگە. تیرێکی سەوز: SCP، کە بە ناو SSHـدا کار دەکات بە ناوی بەکارهێنەر، تێپەڕەوشە و شفرەکردن. لە خوارەوە، کۆنسۆڵێک: R1#copy running-config tftp://192.168.1.10/r1-confg، Address or name of remote host [192.168.1.10]?، Destination filename [r1-confg]?، !!، 874 bytes copied in 0.092 secs (9500 bytes/sec) و R1#copy running-config scp://admin@192.168.1.10/r1-confg.
TFTP for the lab, SCP for real networks.TFTP بۆ تاقیگە، SCP بۆ ڕاستەقینە.CêIT

Command card: modes, files and sessionsکارتی فەرمانەکان: بارەکانی فەرمان، فایلەکان و دانیشتنەکان

This table collects the basic commands of the first two lessons with the mode in which each one is typed:

ئەم خشتەیە سەرەتاییەکانی دوو وانەی یەکەم کۆ دەکاتەوە لەگەڵ ئەو هەریەکەیان تێیدا دەنووسرێت:

Basic commands and their modes سەرەتاییەکان و
CommandModeWhat it doesچی دەکات
enable / disable> / #to privileged EXEC (asks for a password if one is set) / back to user EXECبۆ (ئەگەر دانرابێت داوای دەکات) / گەڕانەوە بۆ
configure terminal#into global configuration modeبۆ ناو
hostname R1(config)#sets the host name, also the first part of the prompt دادەنێت، کە بەشی یەکەمی
interface g0/1(config)#into interface mode, e.g. interface FastEthernet0/1 on a switchبۆ ناو ، بۆ نموونە interface FastEthernet0/1 لە
line console 0(config)#into the console lineبۆ ناو هێڵی کۆنسۆڵ
password …, login(config-line)#set a line password; ask for it at login (lesson 3) بۆ هێڵەکە دادەنێت؛ لە کاتی چوونەژوورەوەدا داوای دەکات (وانەی ⁦3⁩)
exit / end, Ctrl+Zany configuration modeهەر بارێکی ڕێکخستنone level up / straight back to # (Ctrl+Z is a key combination, not a command)ئاستێک بۆ سەرەوە / ڕاستەوخۆ بۆ # (⁦Ctrl+Z⁩ تێکەڵەی دوگمەیە، نەک )
copy running-config startup-config#save: replace the startup-config with the running-configپاشەکەوتکردن: ⁦startup-config⁩ بە ⁦running-config⁩ دەگۆڕێتەوە
copy startup-config running-config#merge the startup-config into the running-config⁦startup-config⁩ تێکەڵی ⁦running-config⁩ دەکات
show running-config / show startup-config#list the running / saved configuration کارا / پاشەکەوتکراو ڕیز دەکات
write erase, erase startup-config, erase nvram:#erase the startup-config⁦startup-config⁩ دەسڕێتەوە
reload#restart the switch or router یان دەستپێدەکاتەوە
no debug all / undebug all#turn off every debug that is runningهەموو debugـێکی کارا دەکوژێنێتەوە
quit, exit, logout> / #disconnect from the CLI sessionلە دانیشتنی دەردەچێت
A card in three columns. Look: show running-config (sh run), show startup-config (sh start), show version (sh ver), show flash: (sh flash:), show ip interface brief (sh ip int br). Save and load: copy running-config startup-config (copy run start), write memory (wr), copy startup-config running-config (merge the saved file into RAM), copy running-config tftp: (backup to a server), copy tftp: running-config (restore; it merges). Erase and restart: erase startup-config (write erase), delete flash:vlan.dat (switch: remove the VLANs), reload (restart the device), do show … (from any configuration mode).کارتێک بە سێ ستوون. سەیرکردن: show running-config (sh run)، show startup-config (sh start)، show version (sh ver)، show flash: (sh flash:)، show ip interface brief (sh ip int br). پاشەکەوت و بارکردن: copy running-config startup-config (copy run start)، write memory (wr)، copy startup-config running-config (تێکەڵکردنی فایلی پاشەکەوتکراو لەگەڵ RAM)، copy running-config tftp: (باکئەپ بۆ ڕاژەکارێک)، copy tftp: running-config (گەڕاندنەوە؛ تێکەڵ دەکات). سڕینەوە و دەستپێکردنەوە: erase startup-config (write erase)، delete flash:vlan.dat (سویچ: سڕینەوەی VLANـەکان)، reload (دەستپێکردنەوەی ئامێرەکە)، do show … (لە هەر بارێکی ڕێکخستنەوە).
Keep this card next to you in the labs.ئەم کارتە لە تاقیگەکاندا لە تەنیشت خۆت دابنێ.CêIT

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

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

ExerciseڕاهێنانThe homework questionپرسیاری ئەرکی ماڵەوە

Explain what each command does, and correct any wrong idea: (a) configure terminal (b) configure memory (c) configure network. Then say which command saves the configuration.

ڕوونی بکەرەوە هەر چی دەکات و هەر بیرۆکەیەکی هەڵە ڕاست بکەرەوە: ⁦(a)⁩ configure terminal ⁦(b)⁩ configure memory ⁦(c)⁩ configure network. پاشان بڵێ کام پاشەکەوت دەکات.

Show answerوەڵامەکە پیشان بدە
  • (a) Enters global configuration mode. It saves nothing; commands typed there change the running-config in RAM at once.
  • (b) A legacy command that merges the startup-config from NVRAM into the running-config. It does not change the startup-config. Today: copy startup-config running-config.
  • (c) A legacy command that loads a configuration file from a TFTP host into the running-config. It does not change where the device stores its configuration. Today: copy tftp: running-config.
  • Saving: copy running-config startup-config (or write memory).
  • ⁦(a)⁩ دەچێتە ناو . هیچ پاشەکەوت ناکات؛ کە لەوێ دەنووسرێن دەستبەجێ ⁦running-config⁩ لە RAMـدا دەگۆڕن.
  • ⁦(b)⁩ کۆنە کە ⁦startup-config⁩ لە NVRAMـەوە تێکەڵی ⁦running-config⁩ دەکات. ⁦startup-config⁩ ناگۆڕێت. ئەمڕۆ: copy startup-config running-config.
  • ⁦(c)⁩ کۆنە کە لە TFTPـەوە بار دەکات بۆ ناو ⁦running-config⁩. شوێنی هەڵگرتنی ئامێرەکە ناگۆڕێت. ئەمڕۆ: copy tftp: running-config.
  • پاشەکەوتکردن: copy running-config startup-config (یان write memory).
ExerciseڕاهێنانRead the running-config⁦running-config⁩ بخوێنەوە

Use the running-config in Reading a running-config. (a) What is the host name? (b) Which address do DHCP clients get as their default gateway? (c) Which interfaces are not in use? (d) Would passwords be shown as plain text? (e) How many addresses are excluded from the DHCP pool?

⁦running-config⁩ـەکەی خوێندنەوەی ⁦running-config⁩ بەکار بهێنە. ⁦(a)⁩ چییە؟ ⁦(b)⁩ DHCP کام ناونیشان وەک وەردەگرن؟ ⁦(c)⁩ کام بەکار نایەن؟ ⁦(d)⁩ ئایا وەک پیشان دەدرێن؟ ⁦(e)⁩ چەند ناونیشان لە پووڵی DHCP دەرکراون؟

Show answerوەڵامەکە پیشان بدە
  • (a) Router — the default; it was never changed.
  • (b) 192.168.2.5 (default-router), which is the G0/0 address — correct.
  • (c) GigabitEthernet0/1 and Vlan1: no address and shutdown.
  • (d) Yes: no service password-encryption is set (lesson 3 explains what that changes).
  • (e) Two: 192.168.2.100 and 192.168.2.5.
  • ⁦(a)⁩ Router — بنەڕەتییەکە؛ هەرگیز نەگۆڕدراوە.
  • ⁦(b) 192.168.2.5⁩ (default-router)، کە ناونیشانی ⁦G0/0⁩ـە — دروستە.
  • ⁦(c) GigabitEthernet0/1⁩ و ⁦Vlan1⁩: بێ ناونیشان و shutdown.
  • ⁦(d)⁩ بەڵێ: no service password-encryption دانراوە (وانەی 3 ڕوونی دەکاتەوە چی دەگۆڕێت).
  • ⁦(e)⁩ دوو: ⁦192.168.2.100⁩ و ⁦192.168.2.5⁩.
ExerciseڕاهێنانReset a lab switchسویچێکی تاقیگە ڕێکبخەرەوە

Write, in order, the commands that return switch SW1 completely to factory settings, and say what to answer at each question.

بە ڕیز بنووسە کە ⁦SW1⁩ بە تەواوی دەگەڕێننەوە بۆ ڕێکخستنی کارگە و بڵێ وەڵامی هەر پرسیارێک چی بێت.

Show answerوەڵامەکە پیشان بدە
TEXT
SW1#delete flash:vlan.dat          ! Enter, then Enter again to confirm
SW1#erase startup-config           ! Enter to confirm
SW1#reload                         ! Save? answer no; then Enter to confirm
ExerciseڕاهێنانWhich memory?کام بیرگە؟

For each command, name the memory it reads or writes: (a) show running-config (b) copy run start (c) show flash: (d) erase startup-config (e) delete flash:vlan.dat (f) show startup-config.

بۆ هەر ، ناوی ئەو بڵێ کە دەیخوێنێتەوە یان دەینووسێت: ⁦(a)⁩ show running-config ⁦(b)⁩ copy run start ⁦(c)⁩ show flash: ⁦(d)⁩ erase startup-config ⁦(e)⁩ delete flash:vlan.dat ⁦(f)⁩ show startup-config.

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

(a) RAM. (b) reads RAM, writes NVRAM. (c) flash. (d) NVRAM. (e) flash. (f) NVRAM.

⁦(a) RAM. (b) RAM⁩ دەخوێنێتەوە، NVRAM دەنووسێت. ⁦(c)⁩ . ⁦(d) NVRAM. (e)⁩ . ⁦(f) NVRAM⁩.

ExerciseڕاهێنانSave, check, proveپاشەکەوت بکە، بپشکنە، بیسەلمێنە

In Packet Tracer, give a new router the host name R1, save, change the host name to R2 without saving, then reload and answer no. Which name does the router have afterwards, and why?

لە Packet Tracerـدا، ⁦R1⁩ بدە بە نوێ، پاشەکەوتی بکە، بگۆڕە بۆ ⁦R2⁩ بەبێ پاشەکەوتکردن، پاشان reload بکە و وەڵامی no بدەوە. دوای ئەوە چ ناوێکی هەیە و بۆچی؟

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

R1. The saved startup-config says hostname R1; the change to R2 existed only in the running-config, which was lost at the reload.

⁦R1. startup-config⁩ـی پاشەکەوتکراو دەڵێت hostname R1؛ گۆڕینەکە بۆ ⁦R2⁩ تەنیا لە ⁦running-config⁩ـدا بوو، کە لە کاتی reloadـدا ون بوو.

Summaryپوختە

  • running-config = RAM, in use now, changes with every command, lost at power-off. startup-config = NVRAM, loaded at start-up.
  • configure terminal only enters global configuration mode. Save with copy running-config startup-config (copy run start, write memory) — at the end of every lab.
  • reload restarts; at Save? [yes/no] answer yes to keep changes, no to drop them.
  • Look with show running-config, show startup-config, show version (last line: configuration register 0x2102), show flash:, show history, show ip interface brief, show interfaces; do show … from configuration mode.
  • Reset: erase startup-config (write erase), on a switch also delete flash:vlan.dat, then reload and answer no.
  • Copying into the running-config merges (copy startup-config running-config, copy tftp: running-config; old forms configure memory, configure network). Back up to a server with TFTP in the lab, SCP in real networks.
  • = RAM، ئێستا بەکار دێت، بە هەر دەگۆڕێت، بە بڕینی کارەبا ون دەبێت. = NVRAM، لە کاتی دەستپێکردندا بار دەکرێت.
  • configure terminal تەنیا دەچێتە ناو . بە copy running-config startup-config (copy run start، write memory) پاشەکەوت بکە — لە کۆتایی هەموو تاقیگەیەکدا.
  • reload دەستپێدەکاتەوە؛ لە Save? [yes/no]ـدا yes بۆ پاراستنی گۆڕانکارییەکان، no بۆ فڕێدانیان.
  • بە show running-config، show startup-config، show version (دوایین دێڕ: ⁦configuration register 0x2102⁩)، show flash:، show history، show ip interface brief، show interfaces سەیر بکە؛ لە ڕێکخستندا do show ….
  • ڕێکخستنەوە: erase startup-config (write erase)، لە هەروەها delete flash:vlan.dat، پاشان reload و وەڵامی no.
  • کۆپیکردن بۆ ناو ⁦running-config⁩ تێکەڵ دەکات (copy startup-config running-config، copy tftp: running-config؛ شێوە کۆنەکان configure memory، configure network). بۆ : TFTP لە تاقیگەدا، SCP لە ڕاستەقینەدا.

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

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

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

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

Securing a Cisco Device: Passwords, Users and Bannersپاراستنی ئامێرێکی Cisco: تێپەڕەوشەکان، بەکارهێنەران و بانەر

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