Site icon bintorosoft.com

Port Security adalah fitur di switch

Port Security adalah fitur di switch (umumnya Cisco) untuk membatasi perangkat yang boleh terhubung ke suatu port dengan cara mengontrol MAC address yang diizinkan. Tujuannya: mencegah orang colok perangkat sembarangan, mencegah “MAC flooding”, dan menambah keamanan di access port.

Cara kerja singkat

Kamu bisa mengatur:

show port-security interface fastEthernet0/8

Tipe MAC di Port Security

Mode pelanggaran (violation)

Contoh konfigurasi umum (1 PC per port + sticky)

conf t
interface fa0/5
 switchport mode access
 switchport access vlan 20
 switchport port-security
 switchport port-security maximum 1
 switchport port-security mac-address sticky
 switchport port-security violation restrict
 spanning-tree portfast
end
wr mem

Cek status Port Security

show port-security interface fa0/5
show port-security address

Kalau port kena shutdown (err-disabled)

Biasanya karena violation mode shutdown.

show interfaces status err-disabled
show logging | include SECURITY|PORT_SECURITY
conf t
interface fa0/5
 shutdown
 no shutdown
end
conf t
errdisable recovery cause psecure-violation
errdisable recovery interval 300
end

 

Exit mobile version