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

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

Why a router needs locks and which doors it has (console, AUX, vty, enable); console and vty passwords with login; enable password vs enable secret; the password types 0, 7, 5, 8 and 9 and what service password-encryption really does; hashes, salt and type 9 scrypt secrets; minimum length; local user accounts with login local; exec-timeout; banner motd as a legal warning; removing and checking passwords; the full lab with saving.

بۆچی پێویستی بە قوفڵە و چ دەرگایەکی هەیە (کۆنسۆڵ، AUX، vty، enable)؛ کۆنسۆڵ و vty لەگەڵ login؛ enable password و enable secret؛ جۆرەکانی 0، 7، 5، 8 و 9 و ⁦service password-encryption⁩ بەڕاستی چی دەکات؛ هاش، و secretـی scryptـی جۆری 9؛ کەمترین درێژی؛ ناوخۆیی بە login local؛ ⁦exec-timeout⁩؛ banner motd وەک ئاگادارکردنەوەی یاسایی؛ لابردن و پشکنینی ؛ هەموو تاقیگەکە لەگەڵ پاشەکەوتکردن.

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

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

  • Name the ways into a Cisco device and lock each one: console, vty lines and privileged EXEC.
  • Explain why enable secret replaces enable password, and read password types 0, 7, 5, 8 and 9 in a configuration.
  • Explain what service password-encryption really does and why hashed (type 9) secrets are safer.
  • Create local user accounts with login local, set a minimum length and exec-timeout, and add a warning banner.
  • Remove and check passwords, and finish the lab by saving the configuration.
  • ڕێگاکانی چوونە ناو ئامێرێکی Cisco بناسیت و هەریەکەیان قوفڵ بکەیت: کۆنسۆڵ، و .
  • ڕوونی بکەیتەوە بۆچی enable secret جێگەی enable password دەگرێتەوە و جۆرەکانی 0، 7، 5، 8 و 9 لە بخوێنیتەوە.
  • ڕوونی بکەیتەوە ⁦service password-encryption⁩ بەڕاستی چی دەکات و بۆچی secretـی هاشکراو (جۆری ⁦9⁩) سەلامەترن.
  • ناوخۆیی بە login local دروست بکەیت، کەمترین درێژی و ⁦exec-timeout⁩ دابنێیت و بانەرێکی ئاگادارکردنەوە زیاد بکەیت.
  • لاببەیت و بیانپشکنیت و تاقیگەکە بە پاشەکەوتکردنی تەواو بکەیت.

Why a router needs locksبۆچی ڕێدۆز پێویستی بە قوفڵە

A new Cisco router or switch has no passwords at all. Anyone who plugs a console cable into it — a visitor in the server room, a student in the lab — reaches R1> and, with enable, R1#, where they can read the configuration, change it or erase it. Once the device has an IP address, the same is possible over the network. So securing access is part of the very first configuration, not an extra.

یان نوێی Cisco هیچ نییە. هەر کەسێک تێی بخات — میوانێک لە ژووری ، قوتابییەک لە تاقیگەدا — دەگاتە R1> و بە enable دەگاتە R1#، کە لەوێ دەتوانێت بخوێنێتەوە، بیگۆڕێت یان بیسڕێتەوە. کاتێک ئامێرەکە هەبوو، هەمان شت لە ڕێگەی دەکرێت. بۆیە پاراستنی دەستڕاگەیشتن بەشێکە لە یەکەم ڕێکخستن، نەک شتێکی زیادە.

Think of the device as a building with several doors: the console port, the old AUX port and the virtual (vty) lines for remote logins all lead into user EXEC mode; an inner door, enable, leads to privileged EXEC mode. Each door needs its own lock. Good passwords themselves are explained in Passwords and Authentication.

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

Router R1 drawn as a building with two rooms: user EXEC R1> and privileged EXEC R1# (all commands, configuration). Three outer doors lead into user EXEC, each with a lock: Console (line console 0, a cable in the room), AUX (line aux 0, an old modem port) and VTY lines (line vty 0 4 or 0 15, over the network); they are locked by a line password plus login, or by login local with a user name and secret. An inner door, enable, leads from user EXEC to privileged EXEC and is locked by enable secret. Every door needs its own lock: one open line is enough for an intruder.ڕێدۆزی R1 وەک باڵەخانەیەک بە دوو ژوور کێشراوە: باری بەکارهێنەر R1> و باری مۆڵەتدار R1# (هەموو فەرمانەکان، ڕێکخستن). سێ دەرگای دەرەوە دەچنە ناو باری بەکارهێنەر، هەریەکەیان بە قوفڵێک: کۆنسۆڵ (line console 0، کێبڵێک لە ژوورەکەدا)، AUX (line aux 0، دەرچەی کۆنی مۆدێم) و هێڵەکانی VTY (line vty 0 4 یان 0 15، بە ناو ڕایەڵەدا)؛ بە تێپەڕەوشەی هێڵ لەگەڵ login، یان بە login local بە ناوی بەکارهێنەر و secret قوفڵ دەکرێن. دەرگایەکی ناوەوە، enable، لە باری بەکارهێنەرەوە دەبات بۆ باری مۆڵەتدار و بە enable secret قوفڵ دەکرێت. هەر دەرگایەک قوفڵی خۆی پێویستە: یەک هێڵی کراوە بۆ دەستدرێژکەرێک بەسە.
Outer doors: console, AUX, vty. Inner door: enable.دەرگاکانی دەرەوە: کۆنسۆڵ، AUX، vty. دەرگای ناوەوە: enable.CêIT

The lab: one router, one switch, two PCsتاقیگەکە: ڕێدۆزێک، سویچێک، دوو کۆمپیوتەر

In this lesson you lock router R1 (and, the same way, switch SW1) of the network below. The checklist is: host name, privileged EXEC password and secret, console password, vty password — and a default gateway for the PCs (192.168.1.1, the router's G0/0), so they can reach other networks. Start, as always, with the host name; the prompt changes at once:

لەم وانەیەدا ⁦R1⁩ (و بە هەمان شێوە ⁦SW1⁩)ی ئەم خوارەوە قوفڵ دەکەیت. لیستی کارەکان ئەمەیە: ، و secretـی ، کۆنسۆڵ، vty — و بۆ (⁦192.168.1.1⁩، ⁦G0/0⁩ـی )، تا بگەنە تر. وەک هەمیشە، بە دەست پێ بکە؛ دەستبەجێ دەگۆڕێت:

Step 1: the host nameهەنگاوی 1: ناوی میوانگرTEXT
Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 4-5

From now on the prompt says R1, not Router.

لە ئێستاوە دەڵێت ⁦R1⁩، نەک Router.

The lab network. An admin laptop with a terminal program at 9600 8N1 is joined by a console cable to router R1 (Cisco 1941), whose G0/0 has 192.168.1.1/24; a dashed line shows a console cable to SW1 as well. R1 G0/0 connects to switch SW1 (Cisco 2960) port G0/1. PC1 (192.168.1.10/24) is on Fa0/1 and PC2 (192.168.1.11/24) on Fa0/2. The default gateway of the PCs is 192.168.1.1, and every lab ends with copy running-config startup-config.ڕایەڵەی تاقیگەکە. لاپتۆپی بەڕێوەبەر بە بەرنامەیەکی تێرمیناڵ لە 9600 8N1 بە کێبڵی کۆنسۆڵ بە ڕێدۆزی R1 (Cisco 1941)ەوە بەستراوە، کە G0/0ـەکەی 192.168.1.1/24ـە؛ هێڵێکی پچڕپچڕ کێبڵێکی کۆنسۆڵ بۆ SW1یش پیشان دەدات. G0/0ـی R1 بە دەرچەی G0/1ـی سویچی SW1 (Cisco 2960)ەوە بەستراوە. PC1 (192.168.1.10/24) لەسەر Fa0/1ـە و PC2 (192.168.1.11/24) لەسەر Fa0/2. دەروازەی بنەڕەتیی PCـەکان 192.168.1.1ـە و هەموو تاقیگەیەک بە copy running-config startup-config کۆتایی دێت.
The lab: lock R1 and SW1, then save.تاقیگەکە: ⁦R1⁩ و ⁦SW1⁩ قوفڵ بکە، پاشان پاشەکەوت بکە.CêIT

Locking the consoleقوفڵکردنی کۆنسۆڵ

The console is a line, so you lock it in line configuration mode: line console 0 selects it, password sets the password and login tells IOS to ask for it. Without login the password is stored but never asked for.

کۆنسۆڵ هێڵێکە، بۆیە لە line قوفڵی دەکەیت: line console 0 هەڵیدەبژێرێت، password دادەنێت و login بە IOS دەڵێت داوای بکات. بەبێ login هەڵدەگیرێت بەڵام هەرگیز داوا ناکرێت.

Console passwordتێپەڕەوشەی کۆنسۆڵTEXT
R1(config)#line console 0
R1(config-line)#password C0nsole-Lab!
R1(config-line)#login
R1(config-line)#exit
R1(config)#
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1

0 is the number of the console line — a router has one console line, number 0.

0 ژمارەی هێڵی کۆنسۆڵە — یەک هێڵی کۆنسۆڵی هەیە، ژمارە 0.

Lineدێڕی 2-3

Set the password, then turn on the check.

دابنێ، پاشان پشکنینەکە چالاک بکە.

Log out (end, then exit) and press Enter: the console now says User Access Verification and asks for the password. The characters you type are not shown.

دەربچۆ (end، پاشان exit) و Enter دابگرە: کۆنسۆڵەکە ئێستا دەڵێت User Access Verification و داوای دەکات. ئەو پیتانەی دەینووسیت پیشان نادرێن.

A console session: R1 con0 is now available, Press RETURN to get started., User Access Verification, Password:, then R1>enable, Password:, R1#. The first Password: is labelled 1 console password (line console 0, password and login); the second is labelled 2 enable secret (enable secret, typed in global configuration). The typed password is never shown.دانیشتنێکی کۆنسۆڵ: R1 con0 is now available، Press RETURN to get started.، User Access Verification، Password:، پاشان R1>enable، Password:، R1#. یەکەم Password: بە 1 تێپەڕەوشەی کۆنسۆڵ نیشانە کراوە (line console 0، password و login)؛ دووەمیان بە 2 enable secret (enable secret، لە باری ڕێکخستنی گشتیدا دەنووسرێت). تێپەڕەوشەی نووسراو هەرگیز پیشان نادرێت.
Two passwords, two doors: the console first, then enable.دوو ، دوو دەرگا: سەرەتا کۆنسۆڵ، پاشان enable.CêIT

enable password or enable secretenable password یان enable secret

The inner door, from R1> to R1#, is locked in global configuration mode with one of two commands. enable password … stores the password as plain text: anyone who sees show running-config reads it. enable secret … stores only a hash of it, so the password itself is not in the configuration. If both are set, IOS asks only for the secret — the secret wins. Cisco says to use enable secret, not the older enable password.

دەرگای ناوەوە، لە R1>ـەوە بۆ R1#، لە بە یەکێک لە دوو قوفڵ دەکرێت. enable password … وەک هەڵدەگرێت: هەر کەسێک show running-config ببینێت دەیخوێنێتەوە. enable secret … تەنیا هاشێکی هەڵدەگرێت، بۆیە خودی لە نییە. ئەگەر هەردووکیان دانرابن، IOS تەنیا داوای secret دەکات — secret سەردەکەوێت. Cisco دەڵێت دەبێت enable secret لەبری enable passwordـی کۆنتر بەکار بهێنرێت.

Both commands, and how they appear (Packet Tracer stores the secret as type 5)هەردوو فەرمانەکە و چۆن دەردەکەون (Packet Tracer secret وەک جۆری 5 هەڵدەگرێت)TEXT
R1(config)#enable password En@ble-R1-2026
R1(config)#enable secret En@ble-R1-2026
R1(config)#do show running-config | include enable
enable secret 5 $1$Kq3T$7dt.EGq26uqyDTfEO5DqW0
enable password En@ble-R1-2026
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 3

| include enable shows only the lines that contain the word enable.

⁦| include enable⁩ تەنیا ئەو دێڕانە پیشان دەدات کە وشەی enableـیان تێدایە.

Lineدێڕی 4

The secret: a salted hash, not the password.

secret: هاشێکی خوێدار، نەک .

Lineدێڕی 5

The password: readable by anyone.

password: هەمووان دەیخوێننەوە.

Two panels. Left: enable password En@ble-R1-2026 appears in show running-config as enable password En@ble-R1-2026 — stored as plain text (type 0); anyone who sees the configuration can read it; do not use. Right: enable secret En@ble-R1-2026 appears as enable secret 5 followed by a $1$ hash — stored as a salted hash (type 5 here, type 9 on current IOS XE); the password itself is not stored; use this. If both are configured, IOS asks only for the enable secret.دوو بەش. چەپ: enable password En@ble-R1-2026 لە show running-configـدا وەک enable password En@ble-R1-2026 دەردەکەوێت — وەک دەقی ئاشکرا هەڵدەگیرێت (جۆری 0)؛ هەر کەسێک ڕێکخستنەکە ببینێت دەتوانێت بیخوێنێتەوە؛ بەکاری مەهێنە. ڕاست: enable secret En@ble-R1-2026 وەک enable secret 5 و هاشێکی $1$ دەردەکەوێت — وەک هاشێکی خوێدار هەڵدەگیرێت (لێرە جۆری 5، لە IOS XEـی ئەمڕۆدا جۆری 9)؛ خودی تێپەڕەوشەکە هەڵناگیرێت؛ ئەمە بەکار بهێنە. ئەگەر هەردووکیان دانرابن، IOS تەنیا داوای enable secret دەکات.
enable secret wins, and only it hides the password.enable secret سەردەکەوێت و تەنیا ئەو دەشارێتەوە.CêIT

Password types 0, 7, 5, 8 and 9جۆرەکانی تێپەڕەوشە 0، 7، 5، 8 و 9

In show running-config the number after password or secret is the type — how the password is stored. Older notes and web pages list "six types" and mix them up; these are the ones IOS uses for logins today:

لە show running-configـدا ئەو ژمارەیەی دوای password یان secret دێت جۆرەکەیە — چۆن هەڵگیراوە. تێبینییە کۆنەکان و پەڕە وێبییەکان "شەش جۆر" ڕیز دەکەن و تێکەڵیان دەکەن؛ ئەمانە ئەوانەن کە IOS ئەمڕۆ بۆ چوونەژوورەوە بەکاریان دەهێنێت:

Password types for loginsجۆرەکانی بۆ چوونەژوورەوە
TypeجۆرHow it is storedچۆن هەڵدەگیرێتMade byبە چی دروست دەبێتSafe?سەلامەتە؟
0plain textenable password, password (line), username … passwordnoنەخێر
7scrambled with a fixed, public key — reversibleتێکدراو بە جێگیر و ئاشکرا — دەگەڕێتەوەservice password-encryptionno — hides only from a glanceنەخێر — تەنیا لە سەیرکردنێکی خێرا دەیشارێتەوە
5salted MD5 hashهاشی ⁦MD5⁩ـی خوێدارenable secret, username … secret on older IOS and Packet Tracerenable secret، username … secret لە IOSـی کۆن و Packet Tracerـداold — move to 8 or 9کۆن — بگوازەوە بۆ 8 یان 9
8PBKDF2 with SHA-256 (salted, slow)⁦PBKDF2⁩ بە ⁦SHA-256⁩ (خوێدار، هێواش)… algorithm-type sha256 secret …yesبەڵێ
9scrypt (salted, slow, uses a lot of memory)scrypt (خوێدار، هێواش، زۆر بەکار دەهێنێت)… algorithm-type scrypt secret …; the default for secrets on current IOS XE… algorithm-type scrypt secret …؛ بنەڕەتی secret لە IOS XEـی ئەمڕۆداyes — the best choiceبەڵێ — باشترین هەڵبژاردە

Two more numbers appear in lists: type 4 was a flawed SHA-256 method that Cisco withdrew, and type 6 is reversible AES encryption for stored keys (such as VPN keys), not for login passwords.

دوو ژمارەی تریش لە لیستەکاندا دەردەکەون: جۆری 4 ڕێگەیەکی ⁦SHA-256⁩ـی هەڵەدار بوو کە Cisco کشاندییەوە و جۆری 6 شفرەکردنی AESـی گەڕاوەیە بۆ هەڵگیراوەکان (وەک VPN)، نەک بۆ چوونەژوورەوە.

A staircase of five password types from weakest to strongest. 0 plain text (enable password, line password): readable by anyone. 7 reversible scrambling (service password-encryption): decoded in seconds. 5 MD5 hash with salt (enable secret on older IOS and Packet Tracer): old, MD5 is broken. 8 PBKDF2 with SHA-256 (algorithm-type sha256 secret): strong. 9 scrypt (algorithm-type scrypt secret, the IOS XE default): strongest, use it. A note says type 4 was withdrawn and type 6 is AES encryption for stored keys, not for login passwords.پەیژەیەکی پێنج جۆری تێپەڕەوشە لە لاوازترینەوە بۆ بەهێزترین. 0 دەقی ئاشکرا (enable password، تێپەڕەوشەی هێڵ): هەمووان دەیخوێننەوە. 7 تێکدانی گەڕاوە (service password-encryption): لە چەند چرکەیەکدا دەکرێتەوە. 5 هاشی MD5 بە خوێ (enable secret لە IOSـی کۆن و Packet Tracerـدا): کۆن، MD5 شکاوە. 8 PBKDF2 بە SHA-256 (algorithm-type sha256 secret): بەهێز. 9 scrypt (algorithm-type scrypt secret، بنەڕەتی IOS XE): بەهێزترین، بەکاری بهێنە. تێبینییەک دەڵێت جۆری 4 کشێنرایەوە و جۆری 6 شفرەکردنی AESـە بۆ کلیلە هەڵگیراوەکان، نەک بۆ تێپەڕەوشەکانی چوونەژوورەوە.
Types 0 and 7 hide nothing; type 5 is old; use 8 or, best, 9.جۆرەکانی 0 و 7 هیچ ناشارنەوە؛ جۆری 5 کۆنە؛ 8 یان، باشتر، 9 بەکار بهێنە.CêIT

What service password-encryption really does⁦service password-encryption⁩ بەڕاستی چی دەکات

enable password and the line passwords are plain text. The global command service password-encryption turns every such password — now and in the future — into type 7, so they no longer stand readable in show running-config. That is all it does: it does not turn anything into type 5, and it does not touch secrets, which are already hashed.

enable password و هێڵەکان . گشتیی service password-encryption هەموو ئەو جۆرە — ئێستا و لە داهاتوودا — دەکاتە جۆری 7، تا چیتر بە خوێندراوی لە show running-configـدا نەوەستن. هەر ئەوەندە دەکات: هیچ شتێک ناکاتە جۆری 5 و دەست لە secretـەکان نادات، کە پێشتر هاش کراون.

Type 7 is not real encryption. It is a simple scrambling with a key that has been public for decades; free tools turn it back into the password in a second. Cisco calls type 7 passwords obfuscated, not encrypted. Still turn it on — it stops someone reading a password over your shoulder or in a printed configuration — but never rely on it: use secrets.

جۆری 7 شفرەکردنی ڕاستەقینە نییە. تێکدانێکی سادەیە بە کە دەیان ساڵە ئاشکرایە؛ ئامرازی بێبەرانبەر لە چرکەیەکدا دەیگەڕێننەوە بۆ . Cisco بە جۆری 7 دەڵێت شاراوە، نەک شفرەکراو. هێشتا چالاکی بکە — ڕێگری لەوە دەکات کەسێک لە پشت شانتەوە یان لە چاپکراودا بخوێنێتەوە — بەڵام هەرگیز پشتی پێ مەبەستە: secret بەکار بهێنە.

An animation of show running-config in five steps. 1: no service password-encryption; the line con 0 password C0nsole-Lab! and the line vty 0 4 password Vty-Lab-77 are plain text, while the enable secret already shows a type 5 hash. 2: in global configuration, service password-encryption is typed. 3: the two line passwords now show as password 7 followed by hexadecimal strings. 4: but type 7 is reversible — the string decodes back to C0nsole-Lab!. 5: for real protection use enable algorithm-type scrypt secret and username admin algorithm-type scrypt secret.
An animation of show running-config in five steps. 1: no service password-encryption; the line con 0 password C0nsole-Lab! and the line vty 0 4 password Vty-Lab-77 are plain text, while the enable secret already shows a type 5 hash. 2: in global configuration, service password-encryption is typed. 3: the two line passwords now show as password 7 followed by hexadecimal strings. 4: but type 7 is reversible — the string decodes back to C0nsole-Lab!. 5: for real protection use enable algorithm-type scrypt secret and username admin algorithm-type scrypt secret.
service password-encryption hides passwords from the eye, not from an attacker.⁦service password-encryption⁩ لە چاو دەشارێتەوە، نەک لە هێرشبەر.CêIT
Turning it on, and the no formچالاککردنی و شێوەی noTEXT
R1(config)#service password-encryption
R1(config)#do show running-config
<output omitted>
service password-encryption
<output omitted>
line con 0
 password 7 08021C401A1609125F270D066B
 login
<output omitted>
R1(config)#no service password-encryption
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 7

Type 7: hidden from a glance only.

جۆری 7: تەنیا لە سەیرکردنێکی خێرا شاراوەیە.

Lineدێڕی 10

no service password-encryption stops scrambling new passwords; passwords already shown as type 7 stay type 7.

⁦no service password-encryption⁩ تێکدانی نوێکان ڕادەگرێت؛ ئەوانەی پێشتر جۆری 7 بوون جۆری 7 دەمێننەوە.

Hashes: why secrets are saferهاشەکان: بۆچی secret سەلامەترە

A secret is stored as a hash: the password and a random salt go through a one-way hash function, and only the result is kept. At login, IOS hashes what you type with the same salt and compares. A hash cannot be turned back, so an attacker can only hash guess after guess (hashing, salting passwords).

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

So the speed of the hash decides how many guesses per second an attacker gets. MD5 (type 5) is fast and broken; Cisco asks for type 5 secrets to move to type 8 or 9. Type 9 (scrypt) is slow on purpose and needs much memory, which makes guessing very expensive.

بۆیە خێرایی هاشەکە بڕیار دەدات هێرشبەر لە چرکەیەکدا چەند مەزەندە بکات. ⁦MD5⁩ (جۆری ⁦5⁩) خێرا و شکاوە، بۆیە چیتر بە بەهێز ناوی نابرێت؛ Cisco داوا دەکات secretـی جۆری 5 بگوازرێتەوە بۆ جۆری 8 یان 9. جۆری 9 (scrypt) بە ئەنقەست هێواشە و زۆری پێویستە، کە مەزەندەکردن زۆر گران دەکات.

A type 9 enable secret (IOS 15.3(3) and later, IOS XE)enable secretـی جۆری ⁦9 (IOS 15.3(3)⁩ و دواتر، IOS XE)TEXT
R1(config)#enable algorithm-type scrypt secret En@ble-R1-2026
R1(config)#do show running-config | include enable
enable secret 9 $9$nS2uWq7Xz1Lb4c$1V89nwtfI8YlSRAfXlRYm3x42cHsJclp95aAqAji9z6
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1

algorithm-type sha256 would give type 8; md5 would give type 5.

⁦algorithm-type sha256⁩ جۆری 8 دەدات؛ ⁦md5⁩ جۆری 5.

Lineدێڕی 3

$9$, then the 14-character salt, then the hash.

⁦$9$⁩، پاشان ⁦14⁩ پیتییەکە، پاشان هاشەکە.

Top: type 7 turns C0nsole-Lab! into 08021C401A1609125F270D066B with a fixed, publicly known key; the arrows go both ways, so anyone can reverse it. Bottom: En@ble-R1-2026 plus a random salt go into a hash function (scrypt, type 9) and give $9$nS2uWq7Xz1Lb4c$1V89nwtfI8YlSRAf…; the arrow goes one way only and there is no way back. At login, IOS hashes what you type with the same salt and compares the two results.سەرەوە: جۆری 7 C0nsole-Lab! دەکاتە 08021C401A1609125F270D066B بە کلیلێکی جێگیر کە هەمووان دەیزانن؛ تیرەکان بۆ هەردوو لا دەڕۆن، بۆیە هەر کەسێک دەتوانێت بیگەڕێنێتەوە. خوارەوە: En@ble-R1-2026 لەگەڵ خوێیەکی هەڕەمەکی دەچنە ناو کردارێکی هاش (scrypt، جۆری 9) و $9$nS2uWq7Xz1Lb4c$1V89nwtfI8YlSRAf… دەدەن؛ تیرەکە تەنیا یەک ئاڕاستەیە و ڕێگەی گەڕانەوە نییە. لە کاتی چوونەژوورەوەدا، IOS ئەوەی دەینووسیت بە هەمان خوێ هاش دەکات و دوو ئەنجامەکە بەراورد دەکات.
Scrambling can be undone; a hash cannot.تێکدان دەگەڕێتەوە؛ هاش ناگەڕێتەوە.CêIT

A minimum password lengthکەمترین درێژیی تێپەڕەوشە

Length is what makes a password hard to guess (why length wins). security passwords min-length in global configuration makes IOS refuse new user, enable and line passwords and secrets that are shorter than the number you give. It is off by default, and IOS checks the length when a password is typed — so set the minimum before the passwords.

درێژییە کە قورس دەکات بۆ مەزەندەکردن (بۆچی درێژی سەردەکەوێت). security passwords min-length لە وا لە IOS دەکات و secretـی نوێی بەکارهێنەر، enable و هێڵەکان ڕەت بکاتەوە کە لەو ژمارەیەی دەیدەیت کورتتر بن. بە شێوەی بنەڕەت ناچالاکە و IOS درێژییەکە لە کاتی نووسینی دەپشکنێت — بۆیە کەمترین درێژی پێش دابنێ.

Refusing short passwordsڕەتکردنەوەی تێپەڕەوشەی کورتTEXT
R1(config)#security passwords min-length 10
R1(config)#enable secret cisco
% Password too short - must be at least 10 characters. Password not configured.
R1(config)#enable algorithm-type scrypt secret En@ble-R1-2026
R1(config)#
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 2-3

cisco has 5 characters, so IOS refuses it and keeps the old setting.

⁦cisco 5⁩ پیتە، بۆیە IOS ڕەتی دەکاتەوە و ڕێکخستنە کۆنەکە دەهێڵێتەوە.

Lineدێڕی 4

14 characters: accepted.

⁦14⁩ پیت: پەسەند کرا.

Local user accounts: username and login localهەژمارەکانی بەکارهێنەر ناوخۆیی: username و login local

A line password is one shared password: everyone knows it, and the log cannot say who logged in. Better: create a user account for each person with username <name> secret <password> (never username … password …, which is stored as type 0 or 7), and tell the line to use these accounts with login local. The line password is then ignored.

هێڵ یەک هاوبەشە: هەمووان دەیزانن و تۆمارەکە ناتوانێت بڵێت کێ چووە ژوورەوە. باشتر: بۆ هەر کەسێک دروست بکە بە username <name> secret <password> (هەرگیز username … password …، کە وەک جۆری 0 یان 7 هەڵدەگیرێت) و بە login local بە هێڵەکە بڵێ ئەم هەژمارانە بەکار بهێنێت. ئیتر هێڵەکە پشتگوێ دەخرێت.

A local user for the consoleبەکارهێنەرێکی ناوخۆیی بۆ کۆنسۆڵTEXT
R1(config)#username admin algorithm-type scrypt secret Adm1n-Lab-26
R1(config)#line console 0
R1(config-line)#login local
R1(config-line)#end
R1#show running-config | include username
username admin secret 9 $9$Pd8eRt3Yk6Mv0a$KHCw167dcDF7Z5I5oK7vxh.ikLLkN.UjelI/xnmxS9U
R1#exit

User Access Verification

Username: admin
Password:
R1>
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1

In Packet Tracer use username admin secret … (stored as type 5).

لە Packet Tracerـدا username admin secret … بەکار بهێنە (وەک جۆری 5 هەڵدەگیرێت).

Lineدێڕی 3

login local: ask for a user name and its secret.

login local: داوای و secretـەکەی بکە.

Lineدێڕی 11-12

Now the console asks for both.

ئێستا کۆنسۆڵەکە داوای هەردووکیان دەکات.

Two panels. login, one shared password: line console 0 with password C0nsole-Lab! and login; the console asks only Password:; everyone shares it and the log cannot tell who logged in. login local, a user name and a secret each: username admin secret Adm1n-Lab-26, line console 0, login local; the console asks Username: admin and Password:; each person has an account, the secret is hashed and removing one user is easy. With login local the line password is ignored.دوو بەش. login، یەک تێپەڕەوشەی هاوبەش: line console 0 لەگەڵ password C0nsole-Lab! و login؛ کۆنسۆڵەکە تەنیا Password: دەپرسێت؛ هەمووان بەشی دەکەن و تۆمارەکە ناتوانێت بڵێت کێ چووە ژوورەوە. login local، بۆ هەر کەسێک ناوی بەکارهێنەر و secret: username admin secret Adm1n-Lab-26، line console 0، login local؛ کۆنسۆڵەکە Username: admin و Password: دەپرسێت؛ هەر کەسێک هەژماری بەکارهێنەری هەیە، secretـەکە هاش دەکرێت و لابردنی بەکارهێنەرێک ئاسانە. بە login local تێپەڕەوشەی هێڵەکە پشتگوێ دەخرێت.
login = one shared password; login local = one account per person.login = یەک هاوبەش؛ login local = بۆ هەر کەسێک هەژمارێک.CêIT

The remote doors: vty linesدەرگا دوورەکان: هێڵەکانی VTY

Remote logins (SSH, or the old Telnet) arrive on virtual terminal (vty) lines. A switch usually has 16 (line vty 0 15); many routers show 5 (line vty 0 4). Each remote session takes one free line, so lock all of them: either a password with login, or better login local. The complete remote set-up — a local user and SSH-only vty lines — is in Managing Devices Remotely. Later an access list can also limit who may even try (access-class).

چوونەژوورەوە لە دوورەوە (، یان کۆن) دەگاتە سەر (هێڵی تێرمیناڵی گریمانەیی). زۆرجار ⁦16⁩ـی هەیە (line vty 0 15)؛ زۆر 5 پیشان دەدەن (line vty 0 4). هەر دانیشتنێکی دوور هێڵێکی بەتاڵ دەگرێت، بۆیە هەموویان قوفڵ بکە: یان لەگەڵ login، یان باشتر login local. ڕێکخستنی تەواوی دوور — بەکارهێنەرێکی ناوخۆیی و تەنیا — لە بەڕێوەبردنی ئامێرەکان لە دوورەوەدایە. دواتر دەتوانێت دیاری بکات کێ تەنانەت بۆی هەیە هەوڵ بدات (⁦access-class⁩).

A vty password on R1, local accounts on SW1تێپەڕەوشەی vty لەسەر ⁦R1⁩، هەژماری ناوخۆیی لەسەر ⁦SW1⁩TEXT
R1(config)#line vty 0 4
R1(config-line)#password Vty-Lab-77
R1(config-line)#login
R1(config-line)#exit
SW1(config)#line vty 0 15
SW1(config-line)#login local
SW1(config-line)#exit
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1

line vty 0 4 = lines 0 to 4 (five lines). Written as line vty 0 <0-15>, it means: 0, then the last line number.

⁦line vty 0 4⁩ = هێڵەکانی 0 تا 4 (پێنج هێڵ). ئەگەر بە شێوەی ⁦line vty 0 <0-15>⁩ نووسرابێت، واتە: 0، پاشان ژمارەی دوایین هێڵ.

Lineدێڕی 5-6

On the switch: all 16 lines use the local user accounts.

لەسەر : هەر ⁦16⁩ هێڵەکە ناوخۆییەکان بەکار دەهێنن.

Sixteen numbered boxes, 0 to 15, are the vty lines. Lines 0 to 4 are marked router: often 0–4; all sixteen are marked switch: 0–15. Each remote session (SSH or Telnet) takes one free line, so lock all of them the same way: SW1(config)#line vty 0 15, login local, exec-timeout 5 0, transport input ssh. Notes: line vty 0 15 configures all 16 lines at once, line vty 0 4 only the first five; transport input ssh means SSH only, and the next lesson sets SSH up.شازدە چوارگۆشەی ژمارەدار، 0 تا 15، هێڵەکانی VTYـن. هێڵەکانی 0 تا 4 نیشانە کراون: ڕێدۆز: زۆرجار 0–4؛ هەر شازدەکەیان: سویچ: 0–15. هەر دانیشتنێکی دوور (SSH یان Telnet) هێڵێکی بەتاڵ دەگرێت، بۆیە هەموویان بە هەمان شێوە قوفڵ بکە: SW1(config)#line vty 0 15، login local، exec-timeout 5 0، transport input ssh. تێبینییەکان: line vty 0 15 هەر 16 هێڵەکە پێکەوە ڕێک دەخات، line vty 0 4 تەنیا پێنجی یەکەم؛ transport input ssh واتە تەنیا SSH و وانەی داهاتوو SSH ڕێک دەخات.
Lock every vty line, not just the first five.هەموو قوفڵ بکە، نەک تەنیا پێنجی یەکەم.CêIT

exec-timeout: closing forgotten sessions⁦exec-timeout⁩: داخستنی دانیشتنە لەبیرکراوەکان

An administrator walks away from a logged-in console — and anyone can use it. exec-timeout logs a session out after it has been idle for a while. The default is 10 minutes; exec-timeout 5 0 (minutes, seconds) is a good lab value. exec-timeout 0 0 means never and should not be used.

بەڕێوەبەرێک لە کۆنسۆڵێکی چووەژوورەوە دوور دەکەوێتەوە — و هەر کەسێک دەتوانێت بەکاری بهێنێت. exec-timeout دانیشتنێک دوای کاتێکی بێکاری دەردەکات. بنەڕەتەکەی ⁦10⁩ خولەکە؛ exec-timeout 5 0 (خولەک، چرکە) بەهایەکی باشە بۆ تاقیگە. exec-timeout 0 0 واتە هەرگیز و نابێت بەکار بهێنرێت.

Five idle minutes, then logoutپێنج خولەک بێکاری، پاشان دەرکردنTEXT
R1(config)#line console 0
R1(config-line)#exec-timeout 5 0
R1(config-line)#line vty 0 4
R1(config-line)#exec-timeout 5 0
R1(config-line)#end
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 3

You can jump from one line straight to another.

دەتوانیت لە هێڵێکەوە ڕاستەوخۆ بچیتە سەر هێڵێکی تر.

A clock labelled idle time next to three rows. Default: 10 minutes, then logout. exec-timeout 5 0: 5 minutes 0 seconds, a good lab value. exec-timeout 0 0: never log out, avoid it. It is typed under line console 0 and line vty; an unattended open console is an open door.کاتژمێرێک بە ناوی کاتی بێکاری لە تەنیشت سێ ڕیز. بنەڕەت: 10 خولەک، پاشان دەرکردن. exec-timeout 5 0: 5 خولەک 0 چرکە، بەهایەکی باش بۆ تاقیگە. exec-timeout 0 0: هەرگیز دەرنەکردن، لێی دوور بکەوە. لە ژێر line console 0 و line vtyـدا دەنووسرێت؛ کۆنسۆڵێکی کراوەی بێچاودێر دەرگایەکی کراوەیە.
A short timeout closes doors that people forget to close.کاتی کورت ئەو دەرگایانە دادەخات کە خەڵک لەبیریان دەچێت دایبخەن.CêIT

Checking and removing passwordsپشکنین و لابردنی تێپەڕەوشەکان

Check your work with show running-config (from configuration mode, do show running-config): you see every password line and its type. To remove a setting, type the same command with no in front. Line passwords are removed inside the line — there is no no line console password command.

کارەکەت بە show running-config بپشکنە (لە ڕێکخستنەوە، do show running-config): هەموو دێڕێکی و جۆرەکەی دەبینیت. بۆ لابردنی ڕێکخستنێک، هەمان بنووسە و no بخە پێشەوەی. هێڵ لە ناو هێڵەکەدا لادەبرێن — no line console password نییە.

Removing the enable and console passwords (lab reset)لابردنی تێپەڕەوشەکانی enable و کۆنسۆڵ (ڕێکخستنەوەی تاقیگە)TEXT
R1(config)#no enable password
R1(config)#no enable secret
R1(config)#line console 0
R1(config-line)#no password
R1(config-line)#no login
R1(config-line)#end
R1#show running-config
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 3-5

Inside the console line: remove the password and the login check.

لە ناو هێڵی کۆنسۆڵدا: و پشکنینی login لاببە.

Lineدێڕی 7

Check that the lines are gone.

دڵنیابە کە دێڕەکان نەماون.

The whole lab, step by stepهەموو تاقیگەکە، هەنگاو بە هەنگاو

Here is a clean sequence that locks a new router from scratch. It follows the usual order of a lab and adds the steps that are often left out: the vty and AUX lines, a timeout, the banner and — always — saving.

ئەمە زنجیرەیەکی پاکە کە نوێ لە سفرەوە قوفڵ دەکات. ڕیزی ئاسایی تاقیکردنەوەیەک پەیڕەو دەکات و ئەو هەنگاوانەش زیاد دەکات کە زۆرجار لەبیر دەکرێن: و هێڵی AUX، کاتی دەرکردن ⁦(exec-timeout)⁩، بانەر و — هەمیشە — پاشەکەوتکردن.

Securing R1 from scratchپاراستنی ⁦R1⁩ لە سفرەوەTEXT
Router>en
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#security passwords min-length 10
R1(config)#enable algorithm-type scrypt secret En@ble-R1-2026
R1(config)#username admin algorithm-type scrypt secret Adm1n-Lab-26
R1(config)#line console 0
R1(config-line)#login local
R1(config-line)#exec-timeout 5 0
R1(config-line)#line vty 0 4
R1(config-line)#login local
R1(config-line)#exec-timeout 5 0
R1(config-line)#line aux 0
R1(config-line)#login local
R1(config-line)#exec-timeout 5 0
R1(config-line)#exit
R1(config)#service password-encryption
R1(config)#banner motd # *** Authorised access only. Activity is logged. *** #
R1(config)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 6-7

In Packet Tracer, if algorithm-type is refused: enable secret … and username admin secret … (type 5).

لە Packet Tracerـدا، ئەگەر ⁦algorithm-type⁩ ڕەت کرایەوە: enable secret … و username admin secret … (جۆری ⁦5⁩).

Lineدێڕی 14-16

The AUX port is one more door (lesson start): lock it the same way.

AUX دەرگایەکی ترە (سەرەتای وانەکە): بە هەمان شێوە قوفڵی بکە.

Lineدێڕی 18

Hides any plain-text password that may still be added later.

هەر ئاشکرا دەشارێتەوە کە لەوانەیە دواتر زیاد بکرێت.

Lineدێڕی 23-26

Without this, everything is lost at the next restart.

بەبێ ئەمە، هەموو شتێک لە داهاتوودا ون دەبێت.

A nine-step checklist for securing a new router or switch: 1 hostname R1, name the device; 2 security passwords min-length 10, no short passwords; 3 enable algorithm-type scrypt secret, lock privileged EXEC with type 9; 4 username admin algorithm-type scrypt secret, a local user account; 5 line console 0 with login local and exec-timeout 5 0, lock the console; 6 line vty 0 15 with login local and exec-timeout 5 0, lock the remote lines; 7 service password-encryption, hide any clear-text password as type 7; 8 banner motd # Authorised access only #, the legal warning; 9 end and copy running-config startup-config, save — always.لیستێکی پشکنینی نۆ هەنگاو بۆ پاراستنی ڕێدۆز یان سویچێکی نوێ: 1 hostname R1، ناونانی ئامێرەکە؛ 2 security passwords min-length 10، ڕێگری لە تێپەڕەوشەی کورت؛ 3 enable algorithm-type scrypt secret، قوفڵکردنی باری مۆڵەتدار بە جۆری 9؛ 4 username admin algorithm-type scrypt secret، هەژمارێکی بەکارهێنەری ناوخۆیی؛ 5 line console 0 لەگەڵ login local و exec-timeout 5 0، قوفڵکردنی کۆنسۆڵ؛ 6 line vty 0 15 لەگەڵ login local و exec-timeout 5 0، قوفڵکردنی هێڵە دوورەکان؛ 7 service password-encryption، شاردنەوەی هەر تێپەڕەوشەیەکی ئاشکرا وەک جۆری 7؛ 8 banner motd # Authorised access only #، ئاگادارکردنەوە یاساییەکە؛ 9 end و copy running-config startup-config، پاشەکەوتکردن — هەمیشە.
Nine steps for every new device.نۆ هەنگاو بۆ هەموو ئامێرێکی نوێ.CêIT

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

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

ExerciseڕاهێنانPractical exam: a local userتاقیکردنەوەی پراکتیکی: بەکارهێنەرێکی ناوخۆیی

On switch SW1: "Create a user account with the type-5 encryption method (user name Cisco, password Cisco) and set the console line to use locally defined accounts." Write the commands, and say what "type-5 encryption" really is.

لەسەر ⁦SW1: "⁩ بە ڕێگەی جۆری 5 دروست بکە ( Cisco، Cisco) و هێڵی کۆنسۆڵ ڕێک بخە تا هەژمارە ناوخۆییەکان بەکار بهێنێت." بنووسە و بڵێ "شفرەکردنی جۆری ⁦5"⁩ بەڕاستی چییە.

Show answerوەڵامەکە پیشان بدە
TEXT
SW1(config)#username Cisco secret Cisco
SW1(config)#line console 0
SW1(config-line)#login local
SW1(config-line)#end
SW1#copy running-config startup-config

Type 5 is not encryption but a salted MD5 hash, which cannot be reversed — and is old: on current IOS use algorithm-type scrypt (type 9). Cisco/Cisco are the exam's lab values only.

جۆری 5 شفرەکردن نییە بەڵکو هاشی ⁦MD5⁩ـی خوێدارە، کە ناگەڕێتەوە — و کۆنە: لە IOSـی ئەمڕۆدا algorithm-type scrypt (جۆری ⁦9⁩) بەکار بهێنە. Cisco/Cisco تەنیا بەهای تاقیگەی تاقیکردنەوەکەن.

ExerciseڕاهێنانPractical exam: the warningتاقیکردنەوەی پراکتیکی: ئاگادارکردنەوەکە

Set the warning message "only authorized persons are allowed" on SW1, and say when users will see it.

پەیامی ئاگادارکردنەوەی ⁦"only authorized persons are allowed"⁩ لەسەر ⁦SW1⁩ دابنێ و بڵێ بەکارهێنەران کەی دەیبینن.

Show answerوەڵامەکە پیشان بدە
TEXT
SW1(config)#banner motd #only authorized persons are allowed#

Every user sees it when they connect, before the login prompt.

هەموو بەکارهێنەرێک کاتی پەیوەندیکردن دەیبینێت، پێش چوونەژوورەوە.

ExerciseڕاهێنانFix the configurationڕێکخستنەکە ڕاست بکەرەوە

Find the five mistakes and correct them: Router(config)#hostname eng → next prompt Router(config)# · Router(config)#enable password 1234 · Router(config)#login · Router(config)#enable Cisco · Router(config)#no line console password · and the lab never saves.

پێنج هەڵەکە بدۆزەرەوە و ڕاستیان بکەرەوە: Router(config)#hostname eng ← دواتر Router(config)# · Router(config)#enable password 1234 · Router(config)#login · Router(config)#enable Cisco · Router(config)#no line console password · و تاقیگەکە هەرگیز پاشەکەوت ناکات.

Show answerوەڵامەکە پیشان بدە
  • After hostname eng the prompt is eng(config)#.
  • login belongs under line console 0 / line vty …; in global configuration login alone is incomplete and locks nothing.
  • enable Cisco → enable secret … (or at least enable password Cisco).
  • no line console password → line console 0, no password, no login.
  • Add copy running-config startup-config at the end. (And 1234 is far too short for a real device.)
  • دوای hostname eng eng(config)#ـە.
  • login سەر بە line console 0 / line vty …ـە؛ لە login بەتەنیا ناتەواوە و هیچ قوفڵ ناکات.
  • enable Cisco ← enable secret … (یان لانیکەم enable password Cisco).
  • no line console password ← line console 0، no password، no login.
  • لە کۆتاییدا copy running-config startup-config زیاد بکە. (هەروەها 1234 بۆ ئامێرێکی ڕاستەقینە زۆر کورتە.)
ExerciseڕاهێنانMode 1 and mode 2⁦mode 1⁩ و ⁦mode 2⁩

In a lab you hear the shorthand "mode 1" for the console password and "mode 2" for enable password 1234. Give the Cisco names of the two modes and the better command for mode 2.

لە تاقیگەیەکدا کورتکراوەی ⁦"mode 1"⁩ بۆ کۆنسۆڵ و ⁦"mode 2"⁩ بۆ enable password 1234 دەبیستیت. ناوی Ciscoـی هەردوو و باشتر بۆ ⁦mode 2⁩ بڵێ.

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

Mode 1 = user EXEC (R1>), protected by the console (or vty) password. Mode 2 = privileged EXEC (R1#), protected by enable secret — better than enable password, which is plain text.

⁦mode 1⁩ = (R1>)، کە کۆنسۆڵ (یان vty) دەیپارێزێت. ⁦mode 2⁩ = (R1#)، کە enable secret دەیپارێزێت — باشترە لە enable password، کە .

ExerciseڕاهێنانRead the typesجۆرەکان بخوێنەوە

What does each line tell you, and which would you change? (a) enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0 (b) password 7 0822455D0A16 under line con 0 (c) username aram secret 9 $9$… (d) enable password class

هەر دێڕێک چیت پێ دەڵێت و کامیان دەگۆڕیت؟ ⁦(a)⁩ enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0 ⁦(b)⁩ password 7 0822455D0A16 لە ژێر line con 0 ⁦(c)⁩ username aram secret 9 $9$… ⁦(d)⁩ enable password class

Show answerوەڵامەکە پیشان بدە
  • (a) An MD5 hash (type 5): old — re-enter it with algorithm-type scrypt.
  • (b) Type 7: reversible — this one hides the well-known lab password cisco. Replace it with login local and a user secret.
  • (c) A scrypt hash (type 9): good.
  • (d) Plain text, and ignored if an enable secret exists: remove it with no enable password.
  • ⁦(a)⁩ هاشی ⁦MD5⁩ (جۆری ⁦5⁩): کۆن — بە algorithm-type scrypt دووپاتە دایبنێوە.
  • ⁦(b)⁩ جۆری 7: دەگەڕێتەوە — ئەمە ناسراوی تاقیگە cisco دەشارێتەوە. لەبری ئەوە login local و secretـی بەکارهێنەر دابنێ.
  • ⁦(c)⁩ هاشی scrypt (جۆری ⁦9⁩): باشە.
  • ⁦(d)⁩ و ئەگەر enable secret هەبێت پشتگوێ دەخرێت: بە no enable password لایببە.

Summaryپوختە

  • A new device has no passwords. Lock every door: console (line console 0), AUX, all vty lines (line vty 0 15 / 0 4), and privileged EXEC (enable secret).
  • A line password needs login; better, username … secret … plus login local (create the user first).
  • enable secret beats enable password (plain text) and wins when both exist.
  • Types: 0 plain, 7 reversible (service password-encryption — obfuscation only), 5 MD5 (old), 8 PBKDF2-SHA-256, 9 scrypt (best; default on current IOS XE; algorithm-type scrypt).
  • security passwords min-length 10, exec-timeout 5 0, and a banner motd that warns, never welcomes.
  • Remove with no … in the right mode; check with show running-config; end with copy running-config startup-config.
  • ئامێرێکی نوێ هیچ نییە. هەموو دەرگایەک قوفڵ بکە: کۆنسۆڵ (line console 0)، AUX، هەموو (line vty 0 15 / 0 4) و (enable secret).
  • هێڵ پێویستی بە loginـە؛ باشتر، username … secret … لەگەڵ login local (سەرەتا بەکارهێنەرەکە دروست بکە).
  • enable secret لە enable password () باشترە و کاتێک هەردووکیان هەبن سەردەکەوێت.
  • جۆرەکان: 0 ئاشکرا، 7 گەڕاوە (service password-encryption — تەنیا شاردنەوە)، ⁦5 MD5⁩ (کۆن)، ⁦8 PBKDF2-SHA-256⁩، ⁦9 scrypt⁩ (باشترین؛ بنەڕەتی IOS XEـی ئەمڕۆ؛ algorithm-type scrypt).
  • security passwords min-length 10، exec-timeout 5 0 و banner motdـێک کە ئاگادار دەکاتەوە، هەرگیز بەخێرهاتن ناکات.
  • بە no … لە دروستدا لایببە؛ بە show running-config بیپشکنە؛ بە copy running-config startup-config کۆتایی پێ بهێنە.

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

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

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

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

Your First Router: Interfaces and Addressesیەکەم ڕێدۆز: نێوبەستەکان و ناونیشانەکان

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