Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

The OSI Model Layers

Router

Switch
Bridge
Hub Repeater

1
The OSI Model Layers VS TCP/IP

2
Cisco Router Modes

Cisco ‫أنواع الذواكر في تجهيزات‬


RAM
Running
configuration

ROM

Bootstrap Program
NVRAM
Startup
configuration

Flash

IOS Image

‫أذكر أنواع الذاكر يف‬


‫تجهيات السيسكو مع ذكر الملفات الموجودة بداخلها‬

3
‫‪Syslog‬‬
‫➢ الـ ‪ Router‬او الـ ‪ Firewall‬او اي جهاز في عالم الشبكات ‪ ،‬لديه يعرف بـ ) ردة الفعل ( حيث أنه عندما تنتقل االجهزة الشبكية‬
‫من حالة الى حالة اخرى يصدر منها رد فعل ‪ .‬مثالً لو قمنا بتنفيذ األمر ‪ No Shutdown‬على أحد منافذ الراوتر فإن هذا المنفذ‬
‫سينتقل من حالة ‪ OFF‬الى حالة ‪ ،ON‬هذا التغير يصدر ردة فعل تتجسد برسالة تسمى ‪ Syslog‬او ال ‪ System Logo‬هذة‬
‫الرسالة تخبرنا ان هذا المنفذ تم تشغيله وتمت العملية بنجاح والعكس‬

‫➢ ماهي الفائدة من الـ ‪Syslog‬‬

‫✓ الفائدة االولى والمتعارف عليها هو ) دراسة الحالة ( حيث يمكن من مجموع ال ‪ Syslog‬دراسة حالة ‪ Router‬او الـ‬
‫‪ Firewall‬على المدى البعيد الن ال ‪Syslog‬يتم حفظها وتوثيقها في الشبكات الكبيرة ‪.‬‬

‫✓ الفائدة االخرى والمهمة جدا ً ‪ ،‬هي حل المشاكل او في مايعرف ‪ Trableshooting‬حيث يمكننا من خالل هذة الرسائل او‬
‫ال ‪ Syslog‬معرفة المشكلة والوصول الى حلها بشكل سريع ‪.‬‬

‫‪Syslog‬‬
‫➢ ولكن كيف لي ان اعرف محتوى الرسائل ؟ هل هذة الرسالة خطرة ؟ مجرد تحذير ؟ هل تعني ان هناك خطر على ال ‪ CPU‬للراوتر‬
‫مثال ؟ هناك سبع مستويات لرسائل ال ‪Syslog‬يمكنك من خالل هذة المستويات ان تحدد نوع الرسالة بشكل سريع اعتمادا على رقم‬
‫المستوى ‪.‬‬

‫‪4‬‬
‫‪0.‬‬ ‫‪emergency‬‬
‫‪1.‬‬ ‫‪alert‬‬
‫‪2.‬‬ ‫‪critical‬‬
‫‪3.‬‬ ‫‪error‬‬
‫‪4.‬‬ ‫‪warning‬‬
‫‪5.‬‬ ‫‪notification‬‬
‫‪6.‬‬ ‫‪informational‬‬
‫‪7.‬‬ ‫‪debug‬‬
‫➢ كل رسالة يجب ان تحمل رقم واحد من هذة األرقام ‪ ،‬مثال ال ‪ CPU‬الخاص بالراوتر يتعرض الى ضغط كبير سيكون داخل ال‬
‫‪ Syslog‬رقم ‪ 3‬او ‪ 2‬والتي تدل على وجود خطا ما ‪ ،‬اما اذا نفذنا األمر ‪ No Sundown‬ألحد المنافذ سيحتوي الـ ‪ Syslog‬على رقم‬
‫‪ 5‬والتي تدل على ‪Notification‬‬

‫➢ مثال كتابة األمر ‪end‬‬

‫‪Timeout‬‬

‫➢ يستخدم هذا األمر للخروج من ‪ Router Modes‬بشكل تلقائي عند التوقف عن كتابة أي أمر في ‪ CLI‬وذلك تجنبا ً للعبث من قبل األطراف‬
‫الغير مخول لها‬

‫➢ يمكن تحديد فترة ‪ Timeout‬مختلفة بحسب نوع االتصال سواء كان ‪ Console‬أو اتصال عن بعد ‪ Telnet‬مثال ً‬

‫➢ يتم تنفيذ هذا األمر من خالل كتابة األمر التالي في ‪ Sub-config‬الخاص بنوع االتصال‬

‫)‪Router(config)#line console 0 ( vty 0 5‬‬


‫? ‪Router(config-line)#exec-timeout‬‬
‫‪<0-35791> Timeout in minutes‬‬
‫? ‪Router(config-line)#exec-timeout 4‬‬
‫‪<0-2147483> Timeout in seconds‬‬
‫>‪<cr‬‬
‫‪Router(config-line)#exec-timeout 4 30‬‬
‫‪Router(config-line)#‬‬

‫‪Timeout‬‬

‫➢ إلغاء تنفيذ أمر ‪ Timeout‬من خالل كتابة األمر التالي في ‪ Sub-config‬الخاص بنوع االتصال‬

‫‪5‬‬
Router(config)#line console 0 ( vty 0 5)
Router(config-line)#exec-timeout 0 0
Router(config-line)#

OR

Router(config)#line console 0 ( vty 0 5)


Router(config-line)# no exec-timeout
Router(config-line)#

Cisco Router Passwords

- Console Password
- Enable Password
- Secret Password
- AUX Password
- Telnet Password

How to Set Privilege level password

Switch# configure terminal

– switch(config)# enable password cisco (clear text password in running

configuration file )

6
– switch(config)# enable secret Netlab (encrypt text password in running

configuration file )

Entering the Privileged mode of the Switch

When execute two commands of privilege password, the strongest


command is encrypted password

How to Set Hostname and Configure Console Password

Switch(config)# hostname CISCO

CISCO(config)# line console 0

CISCO(config-line)# password cisco123

CISCO(config-line)# login

CISCO(config-line)# end

CISCO#

7
Encryption Algorithm

- 7 Algorithm

- MD5 Algorithm “ messege digest 5”

- SHA Algorithm “ secure hashing algorithm “

How to Encrypt passwords

When we use This command , the password will be encrypted by 7 algorithm

CISCO(config)# service password-encryption

CISCO(config)# no service password-encryption

By using this site we will be able to Cracking the password

https://www.ifm.net.nz/cookbooks/passwordcracker.html
How to Encrypt passwords
When we use This command , the password will be encrypted by MD5 algorithm

8
CISCO(config)# enable secret Netlab

Decryption of MD5 :
 Brute Force Attack
‫يعتمد على عمليات حسابية ويحتاج معالج قوي جدا ً ومع ذلك من الصعب كسر التشفير في حال كانت كلمة المرور قوية‬
 Rainbow Table Attack
5MD ‫يعتمد على ملفات تحوي كلمات المرور الشائعة مع مقابالتها المشفرة باستخدام‬

Username & Password

What the advantages of login with username and password ?

- Layer of security ‫مستوى من األمان‬


- Privilege ‫صالحيات‬
- Accounting ‫محاسبة‬

How to Create Username & passwords


Router(config)#line console 0
Router(config-line)#login local
Router(config-line)#exit
Router(config)#username ahmed password 1234
OR
Router(config)#username ahmed secret 1234

9
How to Create Username & passwords with
Privilige
Router(config)#line console 0
Router(config-line)#login local
Router(config-line)#exit
Router(config)#username ahmed privilege 15 password 1234
OR
Router(config)#username ahmed privilege 15 secret 1234

Note : In this Case The user will directly enter into Privilege mode

What is my Privilege ?

Router>show privilege
Current privilege level is 1
Router>enable
Router#show privilege
Current privilege level is 15
Router#

10

You might also like