問題
Nexus 5000のaccess portで、接続端末のMACを自動学習し、違反時は記録してportを停止させ、手動復旧する。globalなport-securityは有効化済みで、学習後の設定をstartup-configへ保存する前提とする。最小限のinterface設定はどれか。
- A
switchport port-security switchport port-security max 1 switchport port-security mac-address sticky - B
switchport port-security switchport port-security violation restrict switchport port-security mac-address sticky - C
switchport port-security switchport port-security violation shutdown switchport port-security mac-address dynamic - D
switchport port-security switchport port-security max 1 switchport port-security violation shutdown
正解:A
理由
sticky学習と既定のshutdown modeを使う。学習したsecure MACを再起動後も使うには、その設定が含まれるrunning-configをstartup-configへ保存する。
選択肢ごとの説明
- A.
switchport port-security switchport port-security max 1 switchport port-security mac-address sticky stickyで学習MACを設定へ追加する。shutdownは既定のviolation modeで、上限1と組み合わせられる。
- B.
switchport port-security switchport port-security violation restrict switchport port-security mac-address sticky restrictは不正MACの入力をdropして記録するが、interface全体を停止して手動復旧する方式ではない。
- C.
switchport port-security switchport port-security violation shutdown switchport port-security mac-address dynamic dynamic学習のMACはstickyとして設定へ追加されず、設問の保存後も保持する条件に合わない。
- D.
switchport port-security switchport port-security max 1 switchport port-security violation shutdown 上限1とshutdownは指定しているが、学習したMACを設定へ追加するsticky指定がない。