14 qadam. Port xavfsizligi parametrlarini sanab o`tish a. FastEthernet 0/4 interfeys uchun xavfsizlik parametrlarini aniqlang.
Switch1(config)#interface fastethernet 0/4
Switch1(config-if)#switchport port-security ?
Dinamik port(FastEthernet0/4 is a dynamic port)
b. FastEthernet 0/4 porti faqat bitta qurilmani qabul qilishiga ruxsat berish uchun port xavfsizligi konfiguratsiyasini sozlang.
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport port-security
Switch1(config-if)#switchport port-security mac-address sticky
v. Konfiguratsiya rejimidan chiqing va port xavfsizligi sozlanmalarini tekshiring.
Switch1#show port-security
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action
(Count) (Count) (Count)
----------------------------------------------------------------------------------------------------
Fa0/4 1 0 0 Shutdown
----------------------------------------------------------------------------------------------------
15 qadam. Har bir port uchun uzellar sonini cheklash a. InterfeysFastEthernet 0/4 ga maksimal MAC-adreslar sonini 1 qiymat bilan belgilang.
Switch1(config-if)#switchport port-security maximum 1.
b. FastEthernet 0/4 ga o`langan PKni ajrating. FastEthernet 0/4ga PK3 ni ulang. PK 3 ni IP-adresini 192.168.1.5deb belgilangan edi, lekin u hozircha kommutatorga ulangani yo`q, buning uchun kommutatorni exo-testlashzarur.
Ko`zatuvlaringizni belgilab quying. ______________________________________
16 qadam. Xavfsizlik buzilganida portni uzilishini sozlash a. Xavfsizlik buzilgan holatlarda interfeys uziladi. Buning uchun quydagi komandani kiriting:
Switch1(config-if)#switchport port-security violation shutdown
b. Zarur bulgan holda PK 3 dan 192.168.1.2 adresli kommutatorning foydalana olish mumkinligini sinab ko`ring. Bu kompyuter endi FastEthernet 0/4interfeysga ulangan.
v. Kuzatuvlaringizni belgilab quying.
g. Port xavfsizligi sozlanmalarini tekshirib ko`ring.
Switch1#show port-security
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action
(Count) (Count) (Count)
----------------------------------------------------------------------------------------------------
Fa0/4 1 1 0 Shutdown
----------------------------------------------------------------------------------------------------