2.4 Basic Device Configuration
Device Names أسماء الأجهزة
•
The first configuration
command on any device should be to give it a unique hostname.
يجب أن
يكون أمر التكوين الأول على أي جهاز لإعطائه اسم مضيف فريد.
•
By default, all devices are
assigned a factory default name. For example, a Cisco IOS switch is
"Switch.”
بشكل
افتراضي، يتم تعيين اسم المصنع الافتراضي لكافة الأجهزة. على سبيل المثال، Cisco IOS switch
هو "Switch.”
•
Start with a letterتبدأ بحرف
•
Contain no spaces دون مسافات
•
End with a letter or digit تنتهي بحرف أو رقم
•
Use only letters, digits,
and dashes لا تستخدم إلا الأحرف والأرقام والشرطات الأفقية
•
Be less than 64 characters
in length لا يتعدى طولها 64 حرفًا
Example:
Note: To return the switch to the default prompt, use the no hostname global config command.
ملاحظة:
لإعادة switch إلى اسمه الافتراضي ، استخدم أمر
العام hostname no
Save Configurations حفظ الاعدادات
- There are two system files that store the device configuration:• startup-config - This is the saved configuration file that is stored in NVRAM. It contains all the commands that will be used by the device upon startup or reboot. Flash does not lose its contents when the device is powered off.
هذا هو ملف
التكوين المحفوظ المخزن في NVRAM. الملف المخزن في ذاكرة الوصول العشوائية (NVRAM)
يتضمن كل الأوامر التي ستُستخدم بعد التشغيل أو إعادة التمهيد. ولا تفقد هذه
الذاكرة محتوياتها عند إيقاف تشغيل الجهاز.
show startup-config
في
أجهزة Cisco يُستخدم لعرض إعدادات الجهاز المخزنة
في الذاكرة غير
المتطايرة (NVRAM)
• running-config - This is stored in Random Access Memory (RAM). It reflects the cu configuration. Modifying a running configuration affects the operation of a Cisco device immediately. RAM is volatile memory. It loses all of its content when the device is powered off or restarted.
يتم تخزين هذا
في ذاكرة الوصول العشوائي (RAM). وهو يعكس التكوين الحالي. يؤثر تعديل
التكوين الجاري تشغيله على تشغيل جهاز Cisco على الفور. وتعد ذاكرة RAM
ذاكرة متلاشية. حيث تفقد جميع محتوياتها عند إيقاف تشغيل الجهاز أو إعادة تشغيله.
ولحفظ التغييرات التي تم إدخالها على التكوين الجاري في ملف تكوين بدء التشغيل، استخدم أمر وضع EXEC ذي الامتيازات copy running-config startup-config.
Configure Initial Router Settings
Basic Router Configuration Steps
Configure Interfaces
Configuring
a router interface includes issuing the following commands:
يتضمن اعداد واجهة
جهاز الراوتر إصدار الأوامر التالية:
•
It is a good practice to use the description
command to add information about the network connected to the interface.
•
من
الممارسات الجيدة استخدام الأمر description لإضافة معلومات حول الشبكة المتصلة بالانترفيس
.
The no
shutdown command activates the interface
•
الأمر
no
shutdown
الذي سيقوم بتنشيط الانترفيس ( الواجهه).
Configure
Router Interfaces Example
The commands
to configure interface G0/0/0 on R1 are shown here:
يتم عرض الأوامر لاعداد الانترفيس G0/0/1 على R1 هنا:
The commands
to configure interface G0/0/1 on R1 are shown here:
يتم عرض الأوامر لاعداد الانترفيس G0/0/1 على R1 هنا:
التحقق من اعداد الانترفيس Verify Interface Configuration
To verify
interface configuration use the show ip interface brief and show ipv6
interface brief commands shown here:
للتحقق من اعداد الانترفيس نستخدام الأمر ip interfacebriefshow للIPv4
والأمر ipv6 interface brief show للIPv6 مبينان هنا:
Configure Verification Commands
The table
summarizes show commands used to verify interface configuration.
يلخص الجدول أوامر العرض المستخدمة للتحقق من اعداد الانترفيس.
Display the contents of the IP routing tables with the show ip route and show ipv6 route commands as shown here:
قم بعرض محتويات جداول توجيه IP باستخدام الأمر show ip route
والأمر show ipv6 route كما هو
موضح هنا:
Configure the Default Gateway
Default Gateway on a Host
· The default
gateway is used when a host sends a packet to a device on another network.
تُستخدم العبّارة الافتراضية عندما يرغب المضيف
في إرسال حزمة إلى جهاز على شبكة أخرى.
· The default
gateway address is generally the router interface address attached to the local
network of the host.
وعنوان
العبّارة الافتراضية عمومًا ما يكون عنوان واجهة الموجّه المتصل بالشبكة المحلية
الخاصة بالمضيف.
· To reach PC3,
PC1 addresses a packet with the IPv4 address of PC3, but forwards the packet to
its default gateway, the G0/0/0 interface of R1.
للوصول إلى PC3،
يعالج PC1 حزمة
مع عنوان IPv4 من PC3،
ولكن يتقدم الحزمة إلى عبّارة افتراضية، واجهة G0/0/0 من R1.
Note: The IP address of the host and the
router interface must be in the same network.
يجب أن يكون عنوان IP للجهاز المضيف وعنوان واجهة الموجّه في الشبكة ذاتها.