Category Archives: شروحات عربية
Auto Backup from cisco nexus 9k
1- Cisco side
config t
feature scheduler
scheduler job name Backup-Weekly
copy running-config ftp://ftpusername:ftpuserpassword@ftp-server/cisco-device/switches/$(SWITCHNAME)-conf.$(TIMESTAMP)
end-job
scheduler schedule name Backup-Weekly
job name Backup-Weekly
time weekly 06:12:00
copy running-config startup-confi
FTP Server Side
i configure FTP server in linux called VSFTPD , you can install it only run command yum install vsftp
after finish all steps that required to run the ftp server go to sudo vi /etc/vsftpd/vsftpd.conf and add the following
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
nopriv_user=tatweerftp
ftpd_banner=||| Warning |||
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
chroot_local_user=YES
local_root=/home/$USER <— folder path
user_sub_token=$USER
allow_writeable_chroot=YES
save and reset ftp server
sudo systemctl restart vsftpd
auto backup From Cisco Devices
first configure FTP Server in any PC
you can download it from here
after that add the following command
config t
!
ip ftp username USERNAME
ip ftp password PASSWORD
archive
path ftp://IP.IP.IP.IP/cisco-device/switches/$h
!
kron policy-list BACKUP_CONFIG
cli archive config
!
kron occurrence Backup at 12:00 Fri recurring
policy-list BACKUP_CONFIG
exit
exit
wr
to check it type
show kron schedule
Cisco Configuration Summary
Cisco Router Configuration Commands
Requirement | Cisco Command |
---|---|
Set a console password to cisco | Router(config)#line con 0 Router(config-line)#login Router(config-line)#password cisco |
Set a telnet password | Router(config)#line vty 0 4 Router(config-line)#login Router(config-line)#password cisco |
Stop console timing out | Router(config)#line con 0 Router(config-line)#exec-timeout 0 0 |
Set the enable password to cisco | Router(config)#enable password cisco |
Set the enable secret password to peter.This password overrides the enable password and is encypted within the config file | Router(config)#enable secret peter |
Enable an interface | Router(config-if)#no shutdown |
To disable an interface | Router(config-if)#shutdown |
Set the clock rate for a router with a DCE cable to 64K | Router(config-if)clock rate 64000 |
Set a logical bandwidth assignment of 64K to the serial interface | Router(config-if)bandwidth 64 Note that the zeroes are not missing |
To add an IP address to a interface | Router(config-if)#ip addr 10.1.1.1 255.255.255.0 |
To enable RIP on all 172.16.x.y interfaces | Router(config)#router rip Router(config-router)#network 172.16.0.0 |
Disable RIP | Router(config)#no router rip |
To enable IRGP with a AS of 200, to all interfaces | Router(config)#router igrp 200 Router(config-router)#network 172.16.0.0 |
Disable IGRP | Router(config)#no router igrp 200 |
Static route the remote network is 172.16.1.0, with a mask of 255.255.255.0, the next hop is 172.16.2.1, at a cost of 5 hops | Router(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1 5 |
Disable CDP for the whole router | Router(config)#no cdp run |
Enable CDP for he whole router | Router(config)#cdp run |
Disable CDP on an interface | Router(config-if)#no cdp enable |
Cisco Router Show Commands
Requirement | Cisco Command |
---|---|
View version information | show version |
View current configuration (DRAM) | show running-config |
View startup configuration (NVRAM) | show startup-config |
Show IOS file and flash space | show flash |
Shows all logs that the router has in its memory | show log |
View the interface status of interface e0 | show interface e0 |
Overview all interfaces on the router | show ip interfaces brief |
View type of serial cable on s0 | show controllers 0 (note the space between the ‘s’ and the ‘0’) |
Display a summary of connected cdp devices | show cdp neighbor |
Display detailed information on all devices | show cdp entry * |
Display current routing protocols | show ip protocols |
Display IP routing table | show ip route |
Display access lists, this includes the number of displayed matches |
show access-lists |
Check the router can see the ISDN switch | show isdn status |
Check a Frame Relay PVC connections | show frame-relay pvc |
show lmi traffic stats | show frame-relay lmi |
Display the frame inverse ARP table | show frame-relay map |
Cisco Router Basic Operations
Requirement | Cisco Command |
---|---|
Enable | Enter privileged mode |
Return to user mode from privileged | disable |
Exit Router | Logout or exit or quit |
Recall last command | up arrow or <Ctrl-P> |
Recall next command | down arrow or <Ctrl-N> |
Suspend or abort | <Shift> and <Ctrl> and 6 then x |
Refresh screen output | <Ctrl-R> |
Compleat Command | TAB |
Cisco Router Copy Commands
Requirement | Cisco Command |
---|---|
Save the current configuration from DRAM to NVRAM |
copy running-config startup-config |
Merge NVRAM configuration to DRAM | copy startup-config running-config |
Copy DRAM configuration to a TFTP server | copy runing-config tftp |
Merge TFTP configuration with current router configuration held in DRAM |
copy tftp runing-config |
Backup the IOS onto a TFTP server | copy flash tftp |
Upgrade the router IOS from a TFTP server | copy tftp flash |
Cisco Router Debug Commands
Requirement | Cisco Command |
---|---|
Enable debug for RIP | debug ip rip |
Enable summary IGRP debug information | debug ip igrp events |
Enable detailed IGRP debug information | debug ip igrp transactions |
Debug IPX RIP | debug ipx routing activity |
Debug IPX SAP | debug IPX SAP |
Enable debug for CHAP or PAP | debug ppp authentication |
Switch all debugging off | no debug allundebug al |
قبسات مختارة مع RHCE
امامك طريقتين
الطريقة الاول باستخدام GUI الذى لديك سواء kde or gnome
ودول شبه الواجهة الموجودة فى الويندوذ
وهذه الطريقة سهلة ومش هنتكلم عنها لانها قريبة بحد كبير من الموجودة فى الويندوذ
الطريقة الثانية وهى دى المهمة
وهى من خلال الbash
يعنى من خلال الاوامر
ونكتب الاتى
su username
طبعا مكانة اسم المستخدم
مثال
bt root $ su ahmed
Password: *******
bt root $
وممكن تدخل بسرعة للroot
من خلال الامر السريع
su-
—————
عارفين بطاقة الرقم القومى ؟
او لما يكون ليك كارنية خاص بيك
دايما بيكون فى حاجة اسمها الID
هو بيكون عباره عن رقم مميز خاص بيك
الكلام دة موجود مع الuser فى لينوكس
وممكن تعرف رقمك من خلال الامر id
مثال
uid=1001(ahmed) gid=100(users) groups=100(users)
bt ~ # ls
Desktop/ Set\ IP\ address sample_scripts/
Firefox_wallpaper.png firefox-3.0.5.tar.bz2 swaret-1.6.2-noarch-1.tgz
عرض لى محتوى فولدر الى انا موجود علية
طيب لو انا عايز اعرض المحتوى مع بعض المعلومات الخاصه بكل ملف
هنكتب الامر بالشكل دة
bt ~ # ls -l
total 9264
drwx—r-x 2 root root 4096 Jan 31 17:50 Desktop/
-rw-r–r– 1 root root 187404 Jan 31 17:21 Firefox_wallpaper.png
-rw-r–r– 1 root root 323 May 2 2005 Set\ IP\ address
-rw-r–r– 1 root root 9112341 Jan 31 18:14 firefox-3.0.5.tar.bz2
drwxr-xr-x 2 root root 4096 Mar 6 2007 sample_scripts/
-rw-r–r– 1 root root 147232 Jan 31 18:14 swaret-1.6.2-noarch-1.tgz
bt ~ #
اضفنا الoption
-l
وفى طريقتين لكتابة الامر
اما انك تكتب اختصار لة بعد-
او انك تتكتب الامر كامل بعد —
ls –help
ويمكن ايضا اضافة اكثر من option للامر الواحد
وذلك من خلال كتابتهم بهذه الطريقة
-a -b -c
او -abc
والمناسبة يمكنك معرفة الoption المختلفة لاى امر من خلال
اضافة
–help
للامر
3-arguments
وهذه المكون الاخير الخاص بالcommand
وهو يعنى الfilename
او الdata التى سوف يتم تطبيق الامر عليها
يعنى اية الكلام دة ؟
يعنى ببساطة انت لو عايز تتطبق امر على file معين
والfile دة موجود فى مكان اخر غير الى انت واقف علية فى الterminal
يعنى مثلا
انا عايز اشوف محتوى ال/etc
وانا موجود فى فولدر اسمة احمد فى مكان تانى
ببساطة هضيفة المسار الخاص بية /etc/
بعد الoption ان وجد
وطبعا قبل دة كلة الامر نفسة
مثال
bt ahmed # ls -l /etc/
total 864
-rw-r–r– 1 root root 3436 Jun 25 2006 DIR_COLORS
-rw-r–r– 1 root root 7 Jan 31 19:15 HOSTNAME
drwxr-xr-x 15 root root 4096 Mar 5 2007 X11/
drwxr-xr-x 3 root root 4096 Nov 5 2004 acpi/
-rw-r–r– 1 root root 830 Jan 31 19:15 blkid.tab
-rw-r–r– 1 root root 830 Jan 31 19:15 blkid.tab.old
drwxr-xr-x 3 root root 4096 Sep 21 2006 bootsplash/
drwxr-xr-x 2 root root 4096 Mar 28 2004 checkinstall/
drwxr-xr-x 2 root root 4096 Feb 8 2007 cron.daily/
drwxr-xr-x 2 root root 4096 Feb 8 2007 cron.hourly/
drwxr-xr-x 2 root root 4096 Apr 16 2002 cron.monthly/
drwxr-xr-x 2 root root 4096 Apr 16 2002 cron.weekly/
-rw-r–r– 1 root root 1829 Sep 26 2006 csh.login
drwxrwxr-x 5 root sys 4096 Feb 24 2007 cups/
drwxr-xr-x 2 root root 4096 Jul 29 2005 default/
drwxr-xr-x 2 root root 4096 Jan 31 19:15 dhcpc/
-rw-r–r– 1 root root 2538 Sep 26 2006 dialogrc
-rw-r–r– 1 root root 153 Sep 11 2005 esd.conf
-rw-r–r– 1 root root 1317 Nov 20 2005 ethertypes
-rw-r–r– 1 root root 22063 Aug 1 2006 fb.modes
-rw-r–r– 1 root root 1118 Jan 28 1994 fdprm
drwxr-xr-x 2 root root 4096 Aug 1 2006 file/
bt ahmed # ls /etc/ ; cat /etc/passwd
تعالى معى نستعرض بعض الاوامر البسيطة
date
ويقوم بعرض التاريخ لك
cal
ويقوم بعرض النتيجة لك
bt ahmed # cal
January 2009
Su Mo Tu We Th Fr Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
————————————————-
Getting Help
هذا الجزء هنتكلم عن حجم المساعدة الى ممكن تدهيالك لينوكس بالنسبة للاوامر
فانت لن تحتاج حفظ كم هائل من الاوامر
فلديك بعض وسائل المساعدة التى من الممكن ان تساعدك لمعرفة الكثير عن الاوامر
اول هذه الوسائل هو الامر whatis
وفائدتها انها بتعرض شرح مختصر عن اى امر انت تكتبة
يعنى مثلا لو انت كتبت
whatis ls
bt ahmed # whatis ls
ls (1) – list directory contents
هتجدة عرض ملخص سريع عن امرls
man
الmanيضاف قبل كل امر تود الاستفسار عنة
ويتيح ليك معلومات مفصلة عن الامر
مثال
bt ~ # man cal
حيث ان cal هو الامر المراد الاستعلام عنة
سوف تجد بعد ذلك قائمة من الاسطر تشرح لكهذا الامر بالاضافة الى الoption المتاحة
ويمكنك البحث داخل تلك الصفات بعد الضغط على /
ثم تكتب ما تريد البحث عنة
بعد ذلك يمكنك الخروج من خلال الامر
q
ويمكنك البحث داخل الmanعن كلمة معينة باستخدام الامر التالى
bt ~ # man -k super
inetd (8) – internet super-server
raid0run (8) – starts up old (superblock-less) RAID0/LINEAR arrays
su (1) – change user ID or become super-user
superformat (1) – format floppies
حيث ان كلمة super هى الكلمة المراد البحث عنها
info
نفس قصة الman لاكن مع بعض الاختلافات البسيطة
Exended Documetation
ريد هات او لينوكس عموما
بيكون داخلة ملفات بتحوى معلوماتمن باب المساعدة
وسوف تجدها على المسار التالى داخل اللينوكس
/usr/share/doc/
وهتجد ايضا فى الاسطوانة نفسها مساعد لكيفية التنصيب وهكذا
Browsing the File System
تعالى نتكلم شوية على هيكل الFileSystem فى لينوكس
دايما لما ربنا يفتح عليك وتنزل لينوكس وتنجح فى تنصيبة وكمان تتجنب مشكلة ان ملفاتك كلها تتمسح
تفاجيء بملفات غريبة وفولدرات اغرب وتعد تدور على ملفات الهارد الى عندك وتقول راحت فين وتكون حاجة ماساه
وبعد بحث طويل ومطول تجد البارتشنات الغالية داخل امتداد كهذا
/mnt/
ولاكن هتجد اسمائها مختلفة هتجد مثلا الc
شكلها كدة
hda1
المهم تعالى مع بعض نفهم القصة
اول حاجة فى القصة دى ان اللينوكس بيشوف اى حاجة عندك على انها file
يعنى حتى الفولدرات بيتعامل معاها على اساس انها file
والهارد برضوة على انه file
,,,,,,,,,,,,
تمام ؟
طيب الحمد لله اننا تفقنا
الشيء الثانى
انتكان عندك فى مايكروسوفت اساس النظام هو C:
اما فى لينوكس فاساس النظام او اعلى قبة النظام هو الroot
وديما بيرمز له بهذا الشكل
/
شاهد خانة الlocation
هو دا الرووت
فكرة اللينوكس والFilesystem
مثال الشجرة التى لها جزر وهو الرووت ومن ثم الافرع الموضوع ممكن يتبع و الله اعلم
تفضل واسأل أي سؤال في منهج 640-802 CCNA
السلام عليكم ورحمة الله وبركاته
قررت أن أبداء في الرد على أي استفسار موجود لديك في مادة الCCNA
وأتمنى أن ربنا يوفقني في الرد على تساؤلاتكم في هذا الكورس
الغرض من هذا الموضوع هو إنشاء قاعة نقاش حول الCCNA 802-640
يعنى ممكن أنت تجاوب على حد وهكذا نوع من أنواع العمل الجماعي
ملحوظات محتاج منك مراعاتها
1-سوف يكون أفضل لو أرفقت أستفسارك برابط أو كتاب
2-حسب قوانين ورد بريس فأن التعليق يجب أن يتم تفعيله من قبل صاحب المدونة حتى يتم نشرة لذلك لا تقلق إذا لم تجد تعلقك قد نشر فى نفس لحظة إضافته
وفي الحقيقة كنت قررت أراجع المادة مع نفسي لأكن قولت نراجعها معا
شرحي الكامل للOSPF FOR BSCI CCNP عربي
السلام عليكم ورحمة الله وبركاتة
اولا ياجماعة بعتذر عن التاخير عن طرح الجزء الثاني من الOSPF
لاكن كان لعدة اسباب أنا وانتم فى غنى أن أذكرها لكم
المهم
ها هو الكتاب بين ايديكم
ولاكن قبل أقول الاتى
ركزت على الفهم اكثر من حفظ الاوامر
جمعت أكبر قدر من المعلومات عن هذا البرتوكول لهذا المستوي بمعنى لم يكن الموضوع موضوع ترجمة وخلاص
احيانا كنت اقف لمدة يوم كامل لصياغة عبارة صغيرة لاضعها في الشرح
الشرح معرب لاكن المصطلحات لا لا لا
الكتاب كامل عدا OSPFv3 اشرحة مع IPv6
“وطبعا لا مانع فى النقد “العلمى”
اليكم الكتاب
شرح OSPF Single Area بالعربى CCNP
هذا الكتاب هو شرح للجزء الاول للOSPF الخاص بمنهج BSCI
حمل من هنا
http://www.4shared.com/file/62447483/a51535da/OSPF_SR.html
نسالكم الدعاء
للاستمرار