Nishonov Najmiddin 2-amaliy mashg’ulot
Download 291.64 Kb.
|
2-lab
- Bu sahifa navigatsiya:
- Bu yerda FastEthernet 0/2 ga statik MAC adres berilganligi tufayli MAC adresni qo’lda kiritdik
2-amaliy mashg’ulot Switch>enable Switch#configure terminal Switch(config)#hostname Sw1 Sw1(config)#interface fa0/1 Sw1(config-if)#switchport mode access Sw1 (config-if)#switchport port-security Sw1 (config-if)#switchport port-security mac-address sticky Sw1 (config-if)#exit Bu yerda FastEthernet 0/2 ga statik MAC adres berilganligi tufayli MAC adresni qo’lda kiritdik: Sw1(config)#interface fastEthernet 0/2 Sw1(config-if)#switchport mode access Sw1(config-if)#switchport port-security Sw1(config-if)#switchport port-security mac-address 00D0.5819.04E3 Sw1(config-if)#end Sw1(config)#interface fastEthernet 0/3 Sw1(config-if)#switchport mode access Sw1(config-if)#switchport port-security Sw1(config-if)#switchport port-security mac-address sticky Sw1(config-if)#switchport port-security violation protect Sw1(config-if)#end Sw1(config)#interface range fastEthernet 0/5-24 Sw1(config-if-range)#shutdown Switch>enable Switch#configure terminal Switch(config)#hostname Sw2 Sw2(config)#interface fa0/4 Sw2(config-if)#switchport mode trunk Sw2(config-if)#switchport port-security maximum 4 Sw1(config-if)#switchport port-security violation restrict Switch#show port-security interface fa 0/1 Port Security : Enabled Port Status : Secure-up Violation Mode : Shutdown Aging Time : 0 mins Aging Type : Absolute SecureStatic Address Aging : Disabled Maximum MAC Addresses : 1 Total MAC Addresses : 0 Configured MAC Addresses : 0 Sticky MAC Addresses : 0 Last Source Address:Vlan : 0001.63B4.E4A6:1 Security Violation Count : 0 Xulosa Bu amaliy mashg’ulot orqali switchga ulangan qurilmalarga ishlashi va paket uzatilish amallarini cheklash va himoyalash mumkinligi, portlarga MAC adres avtomatik berish yoki o’zimiz qo’lda kiritishimiz mumkinligini, amaliyot so’ngida amallarimizdan kelib chiqib ulangan quril tarmoqning MAC adreslarini, IP adresslarini, maksimal MAC adreslar soni haqida ma’lumot olishimiz mumkinligini o’rgandik. Bundan tashqari berilgan portlarni hammasi ham ishlatilmagan holda kerak bo’lmaydigan portlarni o’chirib qo’yish mumkinligini bilib oldik. Download 291.64 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling