Switch(config-if-range)# no shutdown Cisco kommutatorlarida Port-security Port-securityni sozlash Port-security interfeysni sozlash kommutatorning port rejimlar orqali amalga oshiriladi.
Ko`pchilik Cisco kommutatorlarida portlar odatda
dynamic auto rejimida turadi, ushbu rejim port-
security funksiyasiga to`g`ri kelmaydi. Shuning uchun interfeysni
trunk yoki
access rejimiga o`tkazish
kerak:
Switch>enable Switch#conf t Switch(config)#int range f0/1-2 switch(config-if-range)# switchport mode access switch(config-if-range)#)# switchport port-security Xavfsiz MAC-manzillarning maksimal soni switchport port-security maximum N – bu bir vaqtda N sonli MAC-manzillar interfeysda ishlashini
anglatadi.
Masalan:
switch (config-if-range)# switchport port-security maximum 1 Xavfsiz MAC-manzillarni sozlash Manzillarni dinamik saqlash (
sticky ) buyrug`i orqali ishga tushurish:
switch(config-if-range)# switchport port-security mac-address sticky Xavfsizlik buzilishiga javob berish (реагирование) rejimini sozlash Xavfsizlik buzilishiga javob berish ning uchta usuli mavjud:
switch(config-if-range)# switchport port-security violation restrict
105
Kommutator portlarini tekshirish switch(config-if-range)#do show ip int br yoki
switch(config-if-range)#do show run Kompyuterni tekshirish uchun Switch(config-if-range)#do show port-security interface f0/2 buyrug’i kiritiladi.