You are on page 1of 50

‫بسم هللا الرحمن‬

‫الرحيم‬
‫كلية المجتمع بمحافظة الخرج‬
‫دبلوم الحاسب اآللي‬
‫دبلوم الشبكات واالنترنت‬

‫مشـروع تخــرج‬

‫إعداد وتقديم‪:‬‬
‫إشــراف األستاذ‬
‫مـحمد ســعيــد القحطانـي‬
‫ذيــب أبــو ســـالــم‬ ‫عبدالكريم محمد القحطاني‬
‫إبـراهـيم ظــاهـر العنــــزي‬
‫‪Cisco Switch Configuration‬‬
‫المكونات الرئيسية التي البد من توفرها لعمل أعدادات‬
‫السوتش ‪:‬‬
‫‪ .1‬سوتش من نوع سيسكو رقم ‪)24( 3560‬او ( ‪)48‬‬
‫‪switch catalyst 3560‬‬ ‫بورت‬
‫‪series (24)port or( 48)port‬‬

‫يسمى‬ ‫كيبل‬
‫(‪)console cable‬‬
‫وهو الكيبل الوسيط‬
‫بين الجهاز الكمبيوتر‬
‫والسوتش الذي يمكن‬
‫عمل‬ ‫خالله‬ ‫من‬
‫إعدادات السوتش ‪.‬‬
‫كما في الشكل التالي ‪:‬‬
‫‪power cable .3‬‬
‫لتشغيل السوتش كما‬
‫في الشكل التالي ‪:‬‬

‫‪.4‬جهاز كمبيوتر أو الب‬


‫توب ‪.‬‬

‫‪ .5‬كيبل ‪UTP‬‬
‫( ‪unshielded twisted‬‬
‫‪ )pair‬كما في الشكل التالي ‪:‬‬
‫الخطوات الكاملة لعملية إعدادات السوتش ‪:‬‬
‫‪-1‬قم يتوصيل كيبل )‪ )consolecable‬الى بوابة السوتش‬
‫كما في الشكل التالي ‪:‬‬

‫‪ .2‬توصيل الـــجهة األخــرى من‬


‫الكيــــبل (‪) usp cable‬الى‬
‫جهاز الكـــمبيــــوتــــر ثم ربط‬
‫الكيبل األول مع الثاني وذلك عن‬
‫طريق )‪ )LpT‬من كل جهة من‬
‫الكيبل كما في الشكل التالي ‪:‬‬
‫‪ .3‬توصيل )‪ ) power cable‬إلى السوتش كما في‬
‫الشكل التالي ‪:‬‬

‫‪.4‬يتم تحميل ملف تعريف ال )‪ )console cable‬عن طريق‬


‫االنترنت وذلك عن طريق الرابط التالي كما هو موضح في‬
‫الشكل التالي مع مراعاة التأكد من نظام التشغيل ‪Windows‬‬
‫الموجود على جهازك وكم هو (‪ 32‬بت) أو (‪ 64‬بت) ‪.‬‬
‫‪http://www.prolific.com.tw/eng/downloads.asp‬‬
‫‪?id=31‬‬
‫) على الجهاز وهنا‬console cable) ‫تعريف‬.5
‫الخطوات بالتفصيل للقيام بتحميل الملف وتشغيله‬
: ‫خطوة خطوة حتى يتم تعريفة كامالا‬
PL2303 USB-to-Serial Bridge Chip Family
Windows Driver Installer Manual
For Windows 2000/XP/Vista/7 Operating Systems
Windows Driver Installer v1.5.0 Release
Contents
Driver Version Information
System Requirements
Installing the Device
Uninstalling the Device
Disclaimer
Driver Version Information
 Driver Installer & Build date: 1.5.0 (2011-10-21)
* GUID: ECC3713C-08A4-40E3-95F1-7D0704F1CE5E
 Windows 2000/XP/Server2003 (32 & 64-bit) WDM
WHQL Driver: v2.1.27.185
 Windows Vista/7/Server2008 (32 & 64-bit) WDF WHQL
Driver: v3.4.25.218
System Requirements
 Supports the following Windows OS Family:

- Windows 2000 SP4


- Windows XP SP2 and above (32 & 64 bit)
- Windows Server 2003 (32 & 64 bit)
- Windows Vista (32 & 64 bit)
- Windows 7 (32 & 64 bit)
- Windows Server 2008 / 2008 R2 (32 & 64 bit)
 USB 1.1/2.0/3.0 Host Controller (USB Port)
 USB Device using PL-2303H/HX/X version
chips

- PL-2303HA (EOL)
- PL-2303HXA
- PL-2303HXD
- PL-2303XA (EOL)
 USB Device using Prolific next-gen version
chips (Codename EA/TA/TB)
Installing the Device with InstallShield
This section will guide you how to install the PL-2303
Windows Driver. You can download the latest Driver
Installer program from Prolific support website:
http://www.prolific.com.tw/eng/downloads.asp?ID=31
Note:
Please take notice of the installation order. First, run the
Driver Installer Program before plugging in the USB to
Serial adapter. If you already plug the device during the
driver installation, you need to replug the device for
Windows to enumerate the device and load the drivers
installed. If your device is embedded to the system, you
might need to restart the system to reload and install the
driver.
The following steps will show how to install the device
under Windows 7 (64-bit) OS as this is the most inquired
driver support received by Prolific. The procedures are
somewhat the same and straightforward for all other
Windows operating systems versions.
(1) Power on your
computer and boot to
Windows. Run or
double-click the PL-
2303 Driver Installer
program.

(2) The InstallShield


Wizard will be
displayed to inform you
that the PL-2303 USB-
to-Serial driver will be
installed on your
computer. Click Next to
continue
(3) The PL-2303 Driver
Installer program will
then start to install the
drivers needed.

(4) Click the Finish button


to close the InstallShield
program. If you have
plugged the cable into the
PC while running the
setup installation, please
unplug and replug the
cable for the system to
detect the device.
(5) Plug in the USB to
Serial adapter to the PC
USB port. Windows
should detect the driver
as Prolific USB-to-Serial
Comm Port. Go to Device
Manager and check for
the “Prolific USB-to-Serial
Comm Port” device and
the COM port number
assigned by Windows
(6) You can also check the
driver version by right-
clicking on the “Prolific USB-
to-Serial Comm Port” device
and select Properties and
Driver tab.

Warning!!!
If you are encountering yellow
mark (Error Code 10) for device
in Device Manager, you need to
contact the cable vendor or
manufacturer for Prolific
genuine chip validity. Prolific
does not manufacture any end-
user cable products and will not
provide direct support to end-
users.
Uninstalling the Device
Driver
To uninstall the PL-2303
driver, follow the below
steps:
1. Click Start – Control Panel
– Uninstall a Program (Add
or Remove Programs). Look
for the “PL-2303 USB-to-
Serial” program and click the
Uninstall (Remove) button.

2. InstallShield Wizard will


then start the maintenance
program and will prompt
you to choose if you want to
modify, repair, or remove
the driver. Click the Remove
button and click Next to
begin the driver uninstall.
3. The InstallShield Wizard
will prompt you to confirm
to uninstall. Click Yes to
continue.

4. Wait for the


InstallShield Wizard to
complete the uninstall
process. When
complete, click Finish to
end the program. Wait
for some few seconds
until the “PL-2303 USB-
to-Serial” program is
removed from the
Control Panel Uninstall
(Add or Remove
Programs) program list
‫بعد ذلك يتم تحميل الملف ( ‪putty‬‬
‫‪) configuration‬من االنترنت وذلك‬
‫لنظام )‪ Windows(7‬ثم فتحه والضغط‬
‫على زر (‪)session‬‬
‫‪ -2‬يتم اختيار االيقونات ‪.‬‬
‫كما هو موضح بالشكل التالي ‪:‬‬

‫بعد ذلك يجب التأكد من إدارة األجهزة للكمبيوتر للتأكد من الرقم ال(‪)com‬‬
‫و وضعة في مربع (‪)serial line‬كما هو موضح في صورة ( ‪putty‬‬
‫‪)configuration‬‬
‫بعد ذلك الضغط على زر‬
‫) لحفظ االعدادات ثم‬save(
‫) ثم‬Load( ‫الضغط على الزر‬
‫) ليفتح لك‬open( ‫على‬
. ‫البرنامج‬

power –on self – test(post) ‫ يتم عملية‬Switch ‫ بعد تشغيل‬8-1


‫) ومن ثم يظهر جميع‬boot( ‫للسوتش وبعدما يتم عملية االختبار من‬
: ‫معلومات السوتش كاملة وجميع مواصفاته ما في الشكل التالي‬
Base ethernet MAC Address: 00:1b:d5:35:0a:80
Xmodem file system is available.
The password-recovery mechanism is enabled.
Initializing Flash...
flashfs[0]: 402 files, 6 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 15998976
flashfs[0]: Bytes used: 8155648
flashfs[0]: Bytes available: 7843328
flashfs[0]: flashfs fsck took 9 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs) installed, fsid: 3
done
Loading"flash:c3560-ipbase-mz.122-25.SEE3/c3560-ipbase-mz.122-
25.SEE3.bin@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ..."
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@
File"flash:c3560-ipbase-mz.122-25.SEE3/c3560-
ipbase-mz.122-25.SEE3.bin" uncompressed and
installed, entry point: 0x3000
executing...
Restricted Rights Legend
Use, duplication, or disclosure by the
Government is
subject to restrictions as set forth in
subparagraph
c) of the Commercial Computer Software -
Restricted
Rights clause at FAR sec. 52.227-19 and
subparagraph
c) (1) (ii) of the Rights in Technical Data and
Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
West Tasman Drive 170
San Jose, California 95134-1706
Cisco IOS Software, C3560 Software (C3560-
IPBASE-M), Version 12.2(25)SEE3, RELEASE
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 22-Feb-07 14:40 by myl
Image text-base: 0x00003000, data-base:
0x00EB11A0
Initializing flashfs...
flashfs[1]: 402 files, 6 directories
flashfs[1]: 0 orphaned files, 0 orphaned
directories
flashfs[1]: Total bytes: 15998976
flashfs[1]: Bytes used: 8155648
flashfs[1]: Bytes available: 7843328
flashfs[1]: flashfs fsck took 1 seconds.
flashfs[1]: Initialization complete....done
Initializing flashfs
POST: CPU MIC register Tests : Begin
POST: CPU MIC register Tests : End, Status
Passed
POST: PortASIC Memory Tests : Begin
POST: PortASIC Memory Tests : End, Status
Passed
POST: CPU MIC PortASIC interface Loopback
Tests : Begin
POST: CPU MIC PortASIC interface Loopback
Tests : End, Status Passed
POST: PortASIC RingLoopback Tests : Begin
POST: PortASIC RingLoopback Tests : End,
Status Passed
POST: Inline Power Controller Tests : Begin
POST: Inline Power Controller Tests : End,
Status Passed
POST: PortASIC CAM Subsystem Tests : Begin
POST: PortASIC CAM Subsystem Tests : End,
Status Passed
POST: PortASIC Port Loopback Tests : Begin
POST: PortASIC Port Loopback Tests : End,
Status Passed
Waiting for Port download...Complete
cisco WS-C3560-24PS (PowerPC405)
processor (revision Q0) with 118784K/12280K
bytes of memory.
Processor board ID FDO1120Y129
Last reset from power-on
irtual Ethernet interface 17
FastEthernet interfaces 24
Gigabit Ethernet interfaces 2
The password-recovery mechanism is enabled.
K bytes of flash-simulated non-volatile configuration
memory. 512
Base ethernet MAC Address :
00:1B:D5:35:0A:80
Motherboard assembly number : 73-9673-
09
Power supply part number : 341-0029-
05
Motherboard serial number : FDO11200066
Power supply serial number : LIT11150DM2
Model revision number : Q0
Motherboard revision number : B0
Model number : WS-C3560-24PS-S
System serial number : FDO1120Y129
Top Assembly Part Number : 800-25861-04
Top Assembly Revision Number : D0
Version ID : V06
CLEI Code Number : COM1X00ARC
Hardware Board Revision Number : 0x01
Switch Ports Model SW Version SW
Image
---------- ---------- ----- ----- ------
*WS-C3560-24PS 12.2(25)SEE3 C3560-
IPBASE-M 26 1 *
Press RETURN to get started
‫مالحظة ‪:‬‬
‫‪ .1‬للرجوع خطوة إلى الخلف يتم استخدام األمر ‪. EXIT‬‬
‫‪ .2‬للرجوع إلى البداية يتم استخدام األمر ‪. End‬‬
‫‪ .3‬بعد كتابة كل أمر كامال البد من الضغط على األمر (‪. )Enter‬‬

‫‪ 8-2‬بعد ذلك يتم الضغط على زر االدخال لكي يتم عملية الدخول على‬
‫‪ switch‬والبد من إعطاء أمر (‪ )Enable‬لتفعيل الدخول على ‪ switch‬ثم‬
‫(‪ )Enter‬هو كما مبين في الشكل التالي ‪:‬‬

‫>‪Switch‬‬
‫‪Switch>enable‬‬
‫‪Switch#‬‬
‫‪ -9‬األمر لتسمية السوتش اتبع الخطوات التالية ‪:‬‬

‫‪Switch#‬‬
‫‪Switch#configure terminal‬‬

‫البد من كتابة األمر ( ‪ )terminal‬كتابة أول ثالثة أو أربعة أحرف من أمر‬


‫اإلعدادات ثم الضغط على زر ‪ Tap‬لتكملة األمر ‪.‬‬

‫‪Switch(config)#hostname‬‬ ‫هنا يتم تسمية السوتش‬


‫‪mohammed‬‬ ‫بمحمد‬
‫‪mohammed(config)#‬‬
‫هنا تم تسمية السوتش‬
‫بمحمد‬
‫‪-10‬هذا االمر لعملية فتح أو اغالق المنافذ في ان واحد ومرة واحدة‬
‫ويكون المستخدم المتحكم في عملية تحديد أرقام البورتات ‪:‬‬
‫‪Switch #‬‬
‫‪Switch#config terminal‬‬
‫‪Switch (config)#interface range fastEthernet 0/1 - 24‬‬
‫‪Switch (config-if-range)# no shutdown‬‬
‫‪Switch (config-if-range)# shutdown‬‬
‫إذا أردت تفعيل المنافذ‬
‫إذا أردت تعطيل المنافذ‬

‫‪ -11‬االمر لعملية فتح المنافذ واحد تلو االخر ‪:‬‬

‫‪Switch#‬‬
‫‪Switch# configure terminal‬‬
‫‪Switch (config)#inteface fast Ethernet 0/5‬‬

‫وفي هذة الخطوة يتم تحديد رقم المنفذ المراد فتحة أو أغالقة من قبل‬
‫المستخدم‬
‫‪Switch (config-if)# no‬‬ ‫إذا أردت تفعيل المنفذ‬
‫‪shutdown‬‬ ‫إذا أردت تعطيل المنفذ‬
‫‪Switch‬‬ ‫‪(config-if)#‬‬
‫‪shutdown‬‬
‫‪-12‬االوامرلعملية آمان المنافذ وتحديد المستخدمين وتثبيت‬
‫الماك ادرس للجهاز اثناء ربطة بالسوتش واالوامر في‬
‫حاله استخدام المنفذ غير الجهاز المثبت سوف يعمل‬
‫اغالق للمنافذ ‪.‬‬
‫‪Switch#‬‬
‫‪Switch# configure terminal‬‬

‫‪switch(config)#interface f0/1‬‬ ‫هنا يتم تحديد رقم المنفذ‬

‫‪switch(config-if)#switchport‬‬ ‫لالتصال‬ ‫أمر‬ ‫يعطي‬


‫‪mode access‬‬ ‫بالجهاز‬

‫‪switch(config-if)#switchport‬‬
‫يعطي عملية أمان للمنفذ‬
‫‪port-security‬‬
‫‪switch(config-if)#switchport‬‬ ‫عدد‬ ‫تحديد‬ ‫هنا يتم‬
‫‪port-security maximum 1‬‬ ‫المستخدمين‬

‫‪switch(config-if)#switchport‬‬ ‫هنا يتم عملية تثبيت‬


‫‪port-security mac-address sticky‬‬ ‫الماك أدرس بالمنفذ‬

‫هذا االمر أنة في حالة‬


‫‪switch(config-‬‬ ‫تغيير أقتران المنفذ‬
‫‪if)#switchport port-security‬‬ ‫بجهاز آخر غير المثبت‬
‫علية يعمل أغالق للمنفذ‬
‫‪violation shutdown‬‬
‫فوراً‬
‫‪-13‬االمر لوضع رقم سري لبوابة السوتش ‪:‬‬
‫‪Set the console password‬‬
‫‪Switch>enable‬‬
‫‪Switch#‬‬
‫هذاًاالمرًيدخلكًعلىً ‪confguation‬‬
‫‪Switch#configure terminal‬‬
‫‪mode‬‬
‫‪Switch(config)#‬‬

‫‪Switch(config)# line console 0‬‬ ‫كتابةًاالمر‬

‫هذاًاالمرًيخبرًالسوتشًبالسؤالًعنًالرقمً‬
‫‪Switch(config-line)#login‬‬
‫السري‬

‫‪Login disabled on line 0, until‬‬


‫اعطائكًرسالةًادخالًرقمًسريًللمنفذ‬
‫‪'password' is set‬‬
‫‪Switch(config-line)#password‬‬ ‫اكتبًالرقمًالسريًبعدًكتابةًأمرً‬
‫‪ -14‬األمر لعملية الدخول على السوتش من أي مكان )‪. )telnet‬‬
‫‪123‬‬ ‫‪password‬‬
‫‪Set the virtual terminal password‬‬
‫‪Switch#‬‬
‫‪Switch#configure terminal‬‬ ‫كتابةًاألمر‬
‫‪Switch(config)#line vty 0 4‬‬ ‫يتمًمنًخاللًكتابةًاالمرًهذاًالرقم(‪ )0 4‬عددً‬
‫األشخاصًالمسموحًلهمًبالدخول‬
‫‪Switch(config-line)#login‬‬ ‫هذاًاالمرًيخبرًالسوتشًبالسؤالًعنًالرقمًالسري‬
‫‪Switch(config-line)#passwod 123‬‬ ‫اكتبًرقمًسريًبعدًكتابهًاألمرً‪passwod‬‬
‫ويجبًكتابةًأرقامًحتىًالتنسىًكتابةًالرقمًالسري‬
‫‪-15‬في حالة الخروج من النظام وأردت الدخول مرة أخرى فيتطلب منك‬
‫إدخال الرقم السري الذي يتم تفعيلة كما هو موضح ذلك ( ‪console‬‬
‫‪)port‬أو من جهاز بعيد فيعطيك رسالة عليك كتابة الرقم السري كما‬
‫هو موضح بالشكل التالي ‪:‬‬

‫‪User Access‬‬ ‫التحقق من صالحية المستخدم‬


‫‪Verification‬‬ ‫هنا يجب عملية كتابة الرقم السري لالمان‬
‫‪Password‬‬ ‫هنا يجب عملية كتابة الرقم السري للتشفير‬
‫‪Password‬‬

‫‪Set the‬‬ ‫‪ -16‬األمر لعملية تفعيل كلمة المرور ‪.‬‬


‫‪enable‬‬
‫‪password‬‬
‫‪Switch#‬‬
‫‪Switch#config ure teimnal#‬‬
‫‪Switch(config)#enable‬‬
‫‪password 123‬‬

‫‪Set the‬‬ ‫‪-17‬األمر لعملية أمان كلمة المرور ‪secret.‬‬


‫‪password‬‬
‫‪Switch#‬‬
‫‪Switch#config ure teimnal#‬‬
‫‪Switch(config)#enable secret‬‬
‫‪123‬‬
. ‫األمر لعملية تشفير كلمة المرور‬-18
Set the service password-encryption
Switch#config ure terminal#
Switch(config)#service password-encryption

‫األمر لحفظ اإلعدادات‬-19


Switch#wr
‫ يتم حفظ ما تم عملة‬enter ‫ ثم‬wr ‫بعد كتابة األمر‬
‫هذه رسالة أنة تمت العملية بنجاح‬

Building configuration...
]OK[

‫( على السوتش‬vlan( ‫ األمر لكتابة ال‬.20


Switch#
Switch#config ure terminal
Switch(config)#
‫هنا يتم تحديد رقم‬
switch(config)#interface vlan 1
(Vlan)
switch(config-if)#ip address
‫هنا يتم تحديد رقم‬
10.32.1.10 255.255.255.0
)IP(
Switch (config-if)# no shutdown (ip
default( )IP(‫إذا أردت تفعيل ال‬
switch(config-if)#ip default-
gateway 10.32.1.1 (ip ( ‫هنا يتم تحديد‬
default
‫األمر لمعرفة نسخة السوتش‬-21
switch#show
version
Cisco IOS Software, C3560 Software (C3560-IPBASE-M),
Version 12.2(25)SEE3, RELEASE SOFTWARE (fc2(
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 22-Feb-07 14:40 by myl
Image text-base: 0x00003000, data-base: 0x00EB11A0

ROM: Bootstrap program is C3560 boot loader


BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M)
Version 12.2(25r)SEC, RELEASE SOFTWARE (fc4

mohammed uptime is 52 minutes


System returned to ROM by power-on
System image file is "flash:c3560-ipbase-mz.122-
25.SEE3/c3560-ipbase-mz.122-25.SEE3.bin"
cisco WS-C3560-24PS (PowerPC405) processor (revision
Q0) with 118784K/12280K bytes of memory.
Processor board ID FDO1120Y129
Last reset from power-on
irtual Ethernet interface 1
FastEthernet interfaces 24
Gigabit Ethernet interfaces 2
The password-recovery mechanism is enabled.
K bytes of flash-simulated non-volatile configuration
memory . 512
Base ethernet MAC Address : 00:1B:D5:35:0A:80
Motherboard assembly number : 73-9673-09
Power supply part number : 341-0029-05
Motherboard serial number : FDO11200066
Power supply serial number : LIT11150DM2
Model revision number : Q0
Motherboard revision number : B0
Model number : WS-C3560-24PS-S
System serial number : FDO1120Y129
Top Assembly Part Number : 800-25861-04
Top Assembly Revision Number : D0
Version ID : V06
CLEI Code Number : COM1X00ARC
Hardware Board Revision Number : 0x01

Switch Ports Model SW Version SW


Image
---------- ---------- ----- ----- ------
WS-C3560-24PS 12.2(25)SEE3 C3560-IPBASE-M
26 1 *

Configuration register is 0xF


‫) على السوتش‬ports) ‫ األمر لعملية شرح حالة ال‬-22
switch#show interfaces
‫ ) لواحد من المنافذ‬vlan)‫ األمر لعملية تسمية ال‬-23
Switch# ‫السوتش‬
Switch#config ure terminal
Switch(config)#interface f0/1
Switch(config-if)#switchport access vlan 5
!
interface FastEthernet0/1
switchport access vlan 5
vlan ‫هنا تم تغير‬
interface FastEthernet0/2
‫المنفذ‬
interface FastEthernet0/3

switch#show vlan ‫) لكل‬vlan) ‫األمر لمعرفةال‬-24


. ‫منفذ وحالته‬
VLAN Name Status Ports
----------------------- --------- -------------------------------- ----
--------
default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
1
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gi0/1, Gi0/2
fddi-default act/unsup 1002
token-ring-default act/unsup 1003
fddinet-default act/unsup 1004
trnet-default act/unsup 1005
VLAN Type SAID MTU Parent RingNo BridgeNo Stp
BrdgMode Trans1 Trans2
------ -------- ---- -------- ------ ------ ----- ---------- ----- ----
------
1 enet 100001 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
-----------------------------------------------------------------------
-------
Primary Secondary Type Ports
----------------------------------- ----------------- --------- -------
-------
‫األمر لمعرفة حالة السوتش وعرض جميع حاالته المفعل‬-25
. ‫وغير مفعل‬
Switch#show vtp status
VTP Version :2
Configuration Revision :0
Maximum VLANs supported locally : 1005
Number of existing VLANs :5
VTP Operating Mode : Server
VTP Domain Name:
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x57 0xCD 0x40
0x65 0x63 0x59 0x47 0xBD
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found

‫هذا األمر يكتب لعرض جميع ما تم عملة على السوتش‬-26


. ‫من كتابه جميع األوامر ليتم عرضها مرة أخرى‬
switc
h# ‫هنا يكتب األمر‬
switch#show
run ‫ويتم العرض كما هو في الشكل‬
: ‫التالي‬
Building configuration...
Current configuration : 1318 bytes
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
hostname mohammed
enable password 123
no aaa new-model
ip subnet-zero
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
vlan internal allocation policy ascending
interface FastEthernet0/1
interface FastEthernet0/2
interface FastEthernet0/3
interface FastEthernet0/4
interface FastEthernet0/5
interface FastEthernet0/6
interface FastEthernet0/7
interface FastEthernet0/8
interface FastEthernet0/9
interface FastEthernet0/10
interface FastEthernet0/11
interface FastEthernet0/12
interface FastEthernet0/13
interface FastEthernet0/14
interface FastEthernet0/15
interface FastEthernet0/16
interface FastEthernet0/17
interface FastEthernet0/18
interface FastEthernet0/19
interface FastEthernet0/20
interface FastEthernet0/21
interface FastEthernet0/22
interface FastEthernet0/23
interface FastEthernet0/24
interface GigabitEthernet0/1
interface GigabitEthernet0/2
interface Vlan1
ip address 10.32.1.10 255.255.255.0
shutdown
ip default-gateway 10.32.1.1
ip classless
ip http server
control-plane
line con 0
password 123
login
line vty 0 4
password 123
login
line vty 5 15
no login
end
‫ هذا األمر الذي يقوم بعرض أخر عشر أوامر قمت‬-27
‫بإدخالها‬
Switch#showhistory
configure terminal
show vlan
show interfaces
show run
show version
show vtp status
sh flash:
show mac-address-table
show history

Switch#sh ‫ هذا األمر الذي يقوم بعرض‬-28


flash ‫حالة الذاكرة‬
Directory of flash/:
- rwx 1289 Mar 1 1993 00:12:47 +00:00 config.text2
- rwx 5 Mar 1 1993 00:12:47 +00:00 private-config.text
-rwx 1048 Mar 1 1993 00:12:47 +00:00 multiple-fs
drwx 192 Mar 1 1993 00:05:39 +00:00 c3560-ipbase-
mz.122-25.SEE3
bytes total (7843328 bytes free15998976
‫ هذا األمر الذي يقوم بعملية مسح أعدادات السوتش كاملة الموجودة‬-29
)nvram) ‫في‬
Switch#erase
startup-config
‫ لجميع االجهزة‬Mac address ‫ هذا االمر الذي يقوم بعرض جميع‬-30
‫الموجودة على السوتش‬
Switch#show-mac-
address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
----- -------- ----------- ----
All 0100.0ccc.cccc STATIC CPU
All 0100.0ccc.cccd STATIC CPU
All 0180.c200.0000 STATIC CPU
All 0180.c200.0001 STATIC CPU
All 0180.c200.0002 STATIC CPU
All 0180.c200.0003 STATIC CPU
All 0180.c200.0004 STATIC CPU
All 0180.c200.0005 STATIC CPU
All 0180.c200.0006 STATIC CPU
All 0180.c200.0007 STATIC CPU
All 0180.c200.0008 STATIC CPU
All 0180.c200.0009 STATIC CPU
All 0180.c200.000a STATIC CPU
All 0180.c200.000b STATIC CPU
All 0180.c200.000c STATIC CPU
All 0180.c200.000d STATIC CPU
All 0180.c200.000e STATIC CPU
All 0180.c200.000f STATIC CPU
All 0180.c200.0010 STATIC CPU
All ffff.ffff.ffff STATIC CPU
Total Mac Addresses for this criterion: 20
Switch#show version
Cisco IOS Software, C3560 Software (C3560-IPBASE-M), Version
12.2(25)SEE3, RELEASE SOFTWARE (fc2(
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 22-Feb-07 14:40 by myl
Image text-base: 0x00003000, data-base: 0x00EB11A0
ROM: Bootstrap program is C3560 boot loader
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version
12.2(25r)SEC, RELEASE SOFTWARE (fc4)
mohammed uptime is 1 hour, 15 minutes
System returned to ROM by power-on
System image file is "flash:c3560-ipbase-mz.122-
25.SEE3/c3560-ipbase-mz.122-25.SEE3.bin"
cisco WS-C3560-24PS (PowerPC405) processor (revision Q0)
with 118784K/12280K bytes of memory.
Processor board ID FDO1120Y129
Last reset from power-on
1Virtual Ethernet interface
24 FastEthernet interfaces
2 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
512 K bytes of flash-simulated non-volatile
configuration memory.
Base ethernet MAC Address :
00:1B:D5:35:0A:80
Motherboard assembly number : 73-9673-
09
Power supply part number : 341-0029-05
Motherboard serial number : FDO11200066
Power supply serial number : LIT11150DM2
Model revision number : Q0
Motherboard revision number : B0
Model number : WS-C3560-24PS-
S
System serial number : FDO1120Y129
Top Assembly Part Number : 800-25861-04
Top Assembly Revision Number : D0
Version ID : V06
CLEI Code Number : COM1X00ARC
Hardware Board Revision Number : 0x01
Switch Ports Model SW Version SW
Image
---------- ---------- ----- ----- ------
WS-C3560-24PS 12.2(25)SEE3 C3560-
IPBASE-M 26 1 *
‫هذا األمر يبين السوتشات أو الراوترات القريبة من‬-31
.‫السوتش أو المتصلة به‬
Switch#show cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route


Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
C Ser 6/0 124 R PT1000 Ser 3/0
( L2 and L3 Switches)‫الخطوات الالزمة لعملية كسر الرقم السري‬-31
‫في حالة فقدانة فيجب اتباع الخطوات خطوة خطوة كما هو موضح‬
.‫ادناه‬
PASSWORD RECOVERY FOR Cisco Catalyst
L2 and L3 Switches

Introduction
This document describes the password recovery procedure
for the Cisco Catalyst Layer 2 fixed configuration switches
2900XL/3500XL, 2940, 2950/2955, 2960, and 2970 Series, as
well as the Cisco Catalyst Layer 3 fixed configuration
switches 3550, 3560, and 3750 Series.
Step-by-Step Procedure
Follow the password recovery procedure below.
1- Attach a terminal or PC with terminal emulation
(for example, Hyper Terminal) to the console port of
the switch.
Use the following terminal settings:
Bits per second (baud): 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow Control: Xon/Xoff
1- Unplug the power cable.
2- Power the switch and bring it to the switch:
prompt:
For 2900XL, 3500XL, 2940, 2950, 2960, 2970, 3550,
3560, and 3750 series switches, do this:
Hold down the mode button located on the left side of
the front panel, while you reconnect the power cable to
the switch.

Catalyst Switch Series LED Behavior and Mode Button Release Action
2900XL, 3500XL, 3550 Release the Mode button when the LED above Port1x goes out.
Release the Mode button after approximately 5 seconds when the
2940, 2950 Status (STAT) LED goes out. When you release the Mode button,
the SYST LED blinks amber.
Release the Mode button when the SYST LED blinks amber and
2960, 2970 then turns solid green. When you release the Mode button, the
SYST LED blinks green.
Release the Mode button after approximately 15 seconds when
3560, 3750 the SYST LED turns solid green. When you release the Mode
button, the SYST LED blinks green.
Note: LED position may Catalyst 2950-24
vary slightly depending on
the model.
Catalyst 3524XL
The Catalyst 2955 series switches do not use an
external mode button for password recovery. Instead
the switch boot loader uses the break-key detection
to stop the automatic boot sequence for the
password recovery purposes. The break sequence is
determined by the terminal application and operating
system used. Hyperterm running on Windows 2000
uses Ctrl + Break. On a workstation running UNIX,
Ctrl-C is the break key. For more information, refer to
Standard Break Key Sequence Combinations During
Password Recovery.
The example below uses Hyperterm to break into
switch: mode on a 2955.
C2955 Boot Loader (C2955-HBOOT-M) Version
12.1(0.0.514), CISCO DEVELOPMENT TEST
VERSION
Compiled Fri 13-Dec-02 17:38 by madison
WS-C2955T-12 starting...
Base ethernet MAC Address: 00:0b:be:b6:ee:00
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 19 files, 2 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 4510720
flashfs[0]: Bytes available: 3230720
flashfs[0]: flashfs fsck took 7 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid:
4
*** The system will autoboot in 15 seconds ***
Send break character to prevent autobooting.
!--- Wait until you see this message before
!--- you issue the break sequence.
!--- Ctrl+Break is entered using Hyperterm.
The system has been interrupted prior to
initializing the flash file system to finish
loading the operating system software:
flash_init
load_helper
boot
switch:
4. Issue the flash_init command.
switch: flash_init
Initializing Flash...
flashfs[0]: 143 files, 4 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2729472
flashfs[0]: Bytes available: 883200
flashfs[0]: flashfs fsck took 86 seconds
....done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch:
!--- This output is from a 2900XL switch. Output
from
!--- other switches will vary slightly.

5. Issue the load_helper command.


switch: load_helper
switch:
6. Issue the dir flash: command.
Note: Make sure to type a colon ":" after the
dir flash.
The switch file system is displayed:
switch: dir flash:
Directory of flash:/
2 -rwx 1803357 <date> c3500xl-c3h2s-
mz.120-5.WC7.bin
!--- This is the current version of software.
4 -rwx 1131 <date> config.text
!--- This is the configuration file.

5 -rwx 109 <date> info


6 -rwx 389 <date> env_vars
7 drwx 640 <date> html
18 -rwx 109 <date> info.ver
403968 bytes available (3208704 bytes used)
switch:
!--- This output is from a 3500XL switch.
Output from
!--- other switches will vary slightly.
7. Type rename flash:config.text flash:config.old to rename the
configuration file.
switch: rename flash:config.text flash:config.old
switch:
!--- The config.text file contains the password
!--- definition.
8. Type rename flash:config.text flash:config.old to rename the
configuration file.
switch: rename flash:config.text flash:config.old
switch:
!--- The config.text file contains the password
!--- definition.
9. Issue the boot command to boot the system.
switch: boot
Loading"flash:c3500xl-c3h2s-mz.120-
5.WC7.bin"...###############################
####################################################
############################
####################################################
##################
File "flash:c3500xl-c3h2s-mz.120-5.WC7.bin" uncompressed
and installed, entry po
int: 0x3000
executing...

!--- Output suppressed.


!--- This output is from a 3500XL switch. Output from other
9. Enter "n" at the prompt to abort the initial
configuration dialog.
--- System Configuration Dialog ---
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
Continue with configuration dialog? [yes/no]: n
!--- Type "n" for no.
Press RETURN to get started.
!--- Press Return or Enter.
Switch>
!--- The Switch> prompt is displayed.

10. At the switch prompt, type en to enter


enable mode.
Switch>en
Switch#
11 Type rename flash:config.old flash:config.text to rename
the configuration file with its original name.
Switch#rename flash:config.old flash:config.text
Destination filename [config.text]

!--- Press Return or Enter.

Switch#
12 Copy the configuration file into memory.
Switch#copy flash:config.text system:running-config
Destination filename [running-config]?
!--- Press Return or Enter.
1131 bytes copied in 0.760 secs
Sw1#
The configuration file is now reloaded.
13. Overwrite the current passwords that you do
not know. Choose a strong password with at least
one capital letter, one number, and one special
character.
Note: Overwrite the passwords which are
necessary. You need not overwrite all of the
mentioned passwords.
Sw1# conf t
!--- To overwrite existing secret password
Sw1(config)#enable secret <new_secret_password>
!--- To overwrite existing enable password
Sw1(config)#enable password
<new_enable_password>
!--- To overwrite existing enable password
Sw1(config)#enable password
<new_enable_password>
!--- To overwrite existing vty password
Sw1(config)#line vty 0 15
Sw1(config-line)#password
<new_vty_password>
Sw1(config-line)#login
!--- To overwrite existing console password
Sw1(config-line)#line con 0
Sw1(config-line)#password
<new_console_password>

14. Write the running configuration to the


configuration file with the write memory
command.
Sw1#write memory
Building configuration...
[OK]
Sw1#

You might also like