@network Cisco・アライド実機で学ぶ > CCENT(ICND1)実機で学ぶ > ポートセキュリティ(show port-security)

 Rakuten
@network Cisco・アライド実機で学ぶ
◆ポートセキュリティ(show port-security)

※動作確認は、Cisco2500、Cisco1710、Cisco1720、Cisco1721、Cisco2611、Cisco2650、Cisco3620シリーズのルータ、Catalyst2900、Catalyst2950シリーズのスイッチなどで確認しています。コマンド、出力結果、動作は、機種、IOSのバージョンで異なる場合があります。
 資格取得が就職、転職、派遣に有利なのは確かですが、「資格=即戦力」とは言えません。実機を操作して資格取得と同時に就職・転職・派遣後に求められるエンジニア(仕事・ジョブ・ワークの達人)としての即戦力を養いましょう。



◆ポートセキュリティ(show port-security)

ポートセキュリティの確認を行うコマンドを紹介してゆきます。

まず、下図のネットワークを構築してゆきます。


ダイナミックポートセキュリティの設定を行います。

S_A(config)#interface fastEthernet 0/5
S_A(config-if)#switchport mode access
S_A(config-if)#switchport port-security


◆show port-security interface [interface-id]

 ポートセキュリティの設定を確認します。「show port-security interface [interface-id]」コマンドで、次の項目などが確認できます。

・インタフェースのセキュアMAC アドレスの最大許容数
・インターフェイスのセキュアMAC アドレスの数
・キュリティ違反の数
・違反時の違反モード

次のコマンドを入力します。

S_A#show port-security interface fastEthernet 0/5

●S_Aの「show port-security interface fastEthernet 0/5」の出力
S_A#show port-security interface fastEthernet 0/5
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        : 0000.0000.0000
Security Violation Count   : 0

PC1からPingを行います。

もう一度、次のコマンドを入力します。

S_A#show port-security interface fastEthernet 0/5

●S_Aの「show port-security interface fastEthernet 0/5」の出力
S_A#show port-security interface fastEthernet 0/5
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        : 1
Configured MAC Addresses   : 0
Sticky MAC Addresses       : 0
Last Source Address        : 001e.8cc8.0235
Security Violation Count   : 0

黄色の網掛けのようにPC1のMACアドレスが学習されていることが分かります。

 このように、「show port-security interface [interface-id]」コマンドでは、ポートセキュリティのステータスが確認できます。


◆show port-security

「show port-security」コマンドは、ポートセキュリティの設定を確認することができます。

次のコマンドを実行します。

S_A#show port-security

●S_Aの「show port-security」の出力
S_A#show port-security
Secure Port  MaxSecureAddr  CurrentAddr  SecurityViolation  Security Action
                (Count)       (Count)          (Count)
---------------------------------------------------------------------------
      Fa0/5              1            1                  0         Shutdown
---------------------------------------------------------------------------
Total Addresses in System (excluding one mac per port)     : 0
Max Addresses limit in System (excluding one mac per port) : 1024

「f0/5」にポートセキュリティの設定が行われていることが確認できます。


◆show port-security address

全てのポートについて、セキュアなMAC アドレスを確認することができます。

次のコマンドを実行します。

S_A#show port-security address

●S_Aの「show port-security address」の出力
S_A#show port-security address
          Secure Mac Address Table
-------------------------------------------------------------------
Vlan    Mac Address       Type                Ports   Remaining Age
                                                         (mins)
----    -----------       ----                -----   -------------
   1    001e.8cc8.0235    SecureDynamic       Fa0/5        -
-------------------------------------------------------------------
Total Addresses in System (excluding one mac per port)     : 0
Max Addresses limit in System (excluding one mac per port) : 1024

ポートセキュリティ機能とは」 ← 前項 | 次項 → 「スタティック ポートセキュリティ(その1)





<ネットワーク資格の練習問題に挑戦>
CCNA練習問題に挑戦!(650問)
Network+練習問題に挑戦!(393問)
テクニカルエンジニア(ネットワーク)試験
◆Cisco実機で学ぶ(CCNAルータ編)

ルータの概要・基本操作・設定1 (17項目)
ルータの概要・基本操作・設定3 (22項目)
IGRP・EIGRPの設定 (18項目)
アクセスリスト・ACLの設定 (14項目)
NAT・DHCPの設定 (8項目)
ルータの概要・基本操作・設定2 (17項目)
RIPv1・RIPv2の設定 (14項目)
OSPFの設定・デフォルトルートの伝播(16項目)
WANの設定 (10項目)
ARP・RARP・Proxy ARP(12項目)
◆Cisco実機で学ぶ(CCNAスイッチ編)

スイッチの基本操作・設定 (14項目)
VTP・スパニングツリーの設定 (12項目)
MACアドレスの管理・VLANの設定 (12項目)

◆アライドテレシス実機で学ぶ

基本操作・設定 (11項目)
OSPFの設定 (9項目)
ポリシールーティング・VRRPなど (12項目)
VLAN・マルチホーミング・RIPの設定 (10項目)
STP・ポートトランキングなど (14項目)

<関連メニュー>
CCNA実機で学ぶ
CCNP実機で学ぶ
CCENT(ICND1)実機で学ぶ
SDMで設定する(Cisco実機で学ぶ)
CCENT・CCNA無線実機で学ぶ
アライドテレシス実機で学ぶ
TCP/IP入門・無料ネットワークツール
PLCでホームネットワーク構築

Copyright(c)2006- @network Cisco・アライド実機で学ぶ All rights reserved.