あるポートに届いたフレームの送信元MACアドレスを基に接続可否を判断する機能
確認
show port-security interface xxx
設定例
interface xxx
switchport mode access/trunk
switchport port-security 有効化
switchport port-security maximum x 許可MACアドレスの最大数
switchport port-security violation xxx セキュリティ違反時の動作
switchport port-security mac-address xxx
switchport port-security mac-address sticky
switchport port-security aging time x x分後に情報削除
switchport port-security aging type x
セキュリティ違反時の動作
shutdown(デフォルト):err-disableになるのでポートが使えなくなる。違反の通知(SNMP, syslog)行う。
restrict:許可されてない端末のフレームを破棄、違反の通知(SNMP, syslog)行う。
protect:許可されてない端末のフレームを破棄
スティッキーラーニングは、動的にMACアドレスを学習させる機能
手動入力しなくて良く、現在の接続を反映できるので一般的にはこれらしい。
エイジングタイプ
absolute:エイジングタイム時間を過ぎると通信中でも削除
inactivily:通信なくなってからエジングタイム後に削除