السلام عليكم ورحمة الله وبركاته,

عادة لما يكون في مشكلة , بندخل على طول على الراوتر عشان نشوف سبب المشكلة وكيف ممكن نحلها. أحيانا ممكن يدخل أكثر من Network Engineer على الراوتر في نفس الوقت وهم مو منتبهين أنهم دخلوا في نفس الوقت وكل واحد منهم حيعمل إعدادات مختلفة وحيلخبطوا شغل بعض. طيب ما الحل؟

الحل بإستخدام configuration mode exclusive

فكرة هذا الأمر أنه فقط شخص واحد يقدر يدخل على Config mode

مثل database فقط process واحدة تقدر تغير في قيمة variable

في إختيارين auto و manual

Router(config)#configuration mode exclusive ?
auto Lock configuration mode automatically
manual Lock configuration mode on-demand

auto بيعمل lock ل config mode أول ما تكتب config t

Router(config)#configuration mode exclusive auto
Router(config)#exit
Router#conf terminal
Configuration mode locked exclusively. The lock will be cleared once you exit out of configuration mode using end/exit
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
*Mar 1 00:52:01.939: %PARSER-6-EXPOSEDLOCKACQUIRED: Exclusive configuration lock acquired by user 'unknown' from terminal '0' -Process= "Exec", ipl= 0, pid= 92

أول ما أخرج من config mode, بيعمل release ل lock

Router(config)#exit
Router#
*Mar 1 00:53:16.895: %PARSER-6-EXPOSEDLOCKRELEASED: Exclusive configuration lock released from terminal '0' -Process= "Exec", ipl= 0, pid= 92

في manual , لازم تحط lock بعد conf t عشان يشتغل lock

Router(config)#configuration mode exclusive manual

Router#conf t ?
lock Lock configuration mode
لو كتبت conf t بدون lock حتدخل عادي على config mode



Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#

Router#conf t lock
Configuration mode locked exclusively. The lock will be cleared once you exit out of configuration mode using end/exit
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router#conf t *Mar 1 00:58:08.755: %PARSER-6-EXPOSEDLOCKACQUIRED: Exclusive configuration lock acquired by user 'unknown' from terminal '0' -Process= "Exec", ipl= 0, pid= 92

-------------------------------------------------------------------------------------------------------------------------------
خلينا نجرب, حندخل على الراوتر عن طريق telnet ونستخدم user cisco

Router#
*Mar 1 01:00:29.603: %PARSER-6-EXPOSEDLOCKACQUIRED: Exclusive configuration lock acquired by user 'cisco' from terminal '98' -Process= "Virtual Exec", ipl= 0, pid= 244
Router#
Router#conf t lock
Configuration mode locked exclusively by user 'cisco' process '244' from terminal '98'. Please try later.

لما حاولت أخش على الراوتر من console طلعت لي رسالة بتوضح لي أنه في شخص إسمه cisco دخل عن طريق telnet و مستخدم config mode
------------------------------------------------------------------------------------------------------------------

طبعا نسبة حصول هذه المشكلة في الحياة العملية قليلة جدا ولكن حبيت أشاركم بحل لها