■記事作成背景
cisco機器とSFPを扱う際、show interface statusコマンドの出力ステータスを
作業手順書等の結果として詳細に記載する必要があり、逐次機器にSFPを指して確認などをするのがめんどくさいため
各種機器のRJ-45/SFPポートで下記設定の場合の出力結果を貼り付けておきます。
・IFに記載したSFPは挿入した物毎に表記が異なるのでサンプルとしています。
・IF番号は不足している場合「IF番号英字」として仮に記載しています。
・SFPポートではspeedやduplexが設定できないのでパターンを減らしています。
Catalyst
テスト筐体「 WS-C2960G-24TC-L 」
OS version 「 15.0(1)SE3 」
IF番号 | IF | ケーブル | ポート | モード | speed | duplex |
---|---|---|---|---|---|---|
G0/1 | RJ45 | 結線 | shutdown | access | auto | auto |
G0/2 | RJ45 | 結線 | no shutdown | access | auto | auto |
G0/3 | RJ45 | 未結線 | shutdown | access | auto | auto |
G0/4 | RJ45 | 未結線 | no shutdown | access | auto | auto |
G0/5 | RJ45 | 結線 | shutdown | trunk | auto | auto |
G0/6 | RJ45 | 結線 | no shutdown | trunk | auto | auto |
G0/7 | RJ45 | 未結線 | shutdown | trunk | auto | auto |
G0/8 | RJ45 | 未結線 | no shutdown | trunk | auto | auto |
G0/9 | RJ45 | 結線 | shutdown | access | 10 | half |
G0/10 | RJ45 | 結線 | no shutdown | access | 10 | half |
G0/11 | RJ45 | 未結線 | shutdown | access | 10 | half |
G0/12 | RJ45 | 未結線 | no shutdown | access | 10 | half |
G0/13 | RJ45 | 結線 | shutdown | trunk | 10 | half |
G0/14 | RJ45 | 結線 | no shutdown | trunk | 10 | half |
G0/15 | RJ45 | 未結線 | shutdown | trunk | 10 | half |
G0/16 | RJ45 | 未結線 | no shutdown | trunk | 10 | half |
G0/17 | RJ45 | 結線 | shutdown | access | 1000 | full |
G0/18 | RJ45 | 結線 | no shutdown | access | 1000 | full |
G0/19 | RJ45 | 未結線 | shutdown | access | 1000 | full |
G0/20 | RJ45 | 未結線 | no shutdown | access | 1000 | full |
G0/20a | RJ45 | 結線 | shutdown | trunk | 1000 | full |
G0/20b | RJ45 | 結線 | no shutdown | trunk | 1000 | full |
G0/20c | RJ45 | 未結線 | shutdown | trunk | 1000 | full |
G0/20d | RJ45 | 未結線 | no shutdown | trunk | 1000 | full |
IF番号 | IF | ケーブル | ポート | モード | speed | duplex |
G0/21a | GLC-T | 結線 | shutdown | access | auto | auto |
G0/21b | GLC-T | 結線 | no shutdown | access | auto | auto |
G0/21c | GLC-T | 未結線 | shutdown | access | auto | auto |
G0/21d | GLC-T | 未結線 | no shutdown | access | auto | auto |
G0/21e | GLC-T | 結線 | shutdown | trunk | auto | auto |
G0/21f | GLC-T | 結線 | no shutdown | trunk | auto | auto |
G0/21g | GLC-T | 未結線 | shutdown | trunk | auto | auto |
G0/21h | GLC-T | 未結線 | no shutdown | trunk | auto | auto |
IF番号 | IF | ケーブル | ポート | モード | speed | duplex |
G0/22a | 1000Base SX SFP | 結線 | shutdown | access | auto | auto |
G0/22b | 1000Base SX SFP | 結線 | no shutdown | access | auto | auto |
G0/22c | 1000Base SX SFP | 未結線 | shutdown | access | auto | auto |
G0/22d | 1000Base SX SFP | 未結線 | no shutdown | access | auto | auto |
G0/22e | 1000Base SX SFP | 結線 | shutdown | trunk | auto | auto |
G0/22f | 1000Base SX SFP | 結線 | no shutdown | trunk | auto | auto |
G0/22g | 1000Base SX SFP | 未結線 | shutdown | trunk | auto | auto |
G0/22h | 1000Base SX SFP | 未結線 | no shutdown | trunk | auto | auto |
IF番号 | IF | ケーブル | ポート | モード | speed | duplex |
G0/23a | SFPなし | 未結線 | shutdown | access | auto | auto |
G0/23b | SFPなし | 未結線 | no shutdown | access | auto | auto |
G0/23c | SFPなし | 未結線 | shutdown | trunk | auto | auto |
G0/23d | SFPなし | 未結線 | no shutdown | trunk | auto | auto |
#show interface status
Port Name Status Vlan Duplex Speed Type
====RJ45=============================================================================
Gi0/1 disabled 1 auto auto 10/100/1000BaseTX
Gi0/2 connected 1 a-full a-1000 10/100/1000BaseTX
Gi0/3 disabled 1 auto auto 10/100/1000BaseTX
Gi0/4 notconnect 1 auto auto 10/100/1000BaseTX
Gi0/5 connected trunk a-full a-1000 10/100/1000BaseTX
Gi0/6 disabled 1 auto auto 10/100/1000BaseTX
Gi0/7 disabled 1 auto auto 10/100/1000BaseTX
Gi0/8 notconnect 1 auto auto 10/100/1000BaseTX
Gi0/9 disabled 1 half 10 10/100/1000BaseTX
Gi0/10 connected 1 half 10 10/100/1000BaseTX
Gi0/11 disabled 1 half 10 10/100/1000BaseTX
Gi0/12 notconnect 1 half 10 10/100/1000BaseTX
Gi0/13 disabled 1 half 10 10/100/1000BaseTX
Gi0/14 connected trunk half 10 10/100/1000BaseTX
Gi0/15 disabled 1 half 10 10/100/1000BaseTX
Gi0/16 notconnect 1 half 10 10/100/1000BaseTX
Gi0/17 disabled 1 full 1000 10/100/1000BaseTX
Gi0/18 connected 1 full 1000 10/100/1000BaseTX
Gi0/19 disabled 1 full 1000 10/100/1000BaseTX
Gi0/20 notconnect 1 full 1000 10/100/1000BaseTX
Gi0/20a connected trunk full 1000 10/100/1000BaseTX
Gi0/20b disabled 1 full 1000 10/100/1000BaseTX
Gi0/20c disabled 1 full 1000 10/100/1000BaseTX
Gi0/20d notconnect 1 full 1000 10/100/1000BaseTX
====GLC-T=============================================================================
Gi0/21a disabled 1 auto auto 10/100/1000BaseTX SFP
Gi0/21b connected 1 a-full a-1000 10/100/1000BaseTX SFP
Gi0/21c disabled 1 auto auto 10/100/1000BaseTX SFP
Gi0/21d notconnect 1 auto auto 10/100/1000BaseTX SFP
Gi0/21e disabled 1 auto auto 10/100/1000BaseTX SFP
Gi0/21f connected trunk a-full a-1000 10/100/1000BaseTX SFP
Gi0/21g disabled 1 auto auto 10/100/1000BaseTX SFP
Gi0/21h notconnect 1 auto auto 10/100/1000BaseTX SFP
====1000Base SX SFP==================================================================
Gi0/22a disabled 1 full 1000 1000BaseSX SFP
Gi0/22b connected 1 full 1000 1000BaseSX SFP
Gi0/22c disabled 1 full 1000 1000BaseSX SFP
Gi0/22d notconnect 1 full 1000 1000BaseSX SFP
Gi0/22e disabled 1 full 1000 1000BaseSX SFP
Gi0/22f connected trunk full 1000 1000BaseSX SFP
Gi0/22g disabled 1 full 1000 1000BaseSX SFP
Gi0/22h notconnect 1 full 1000 1000BaseSX SFP
====SFPなし==========================================================================
Gi0/23a disabled 1 auto auto Not Present
Gi0/23b notconnect 1 auto auto Not Present
Gi0/23c disabled 1 auto auto Not Present
Gi0/23d notconnect 1 auto auto Not Present
Nexus5000
テスト筐体「C5548UP」
OS version 「NX-OS_7.3.0N1.1 」
IF番号 | IF | ケーブル | ポート | モード | speed | duplex |
---|---|---|---|---|---|---|
Eth1/1 | 1000Base SX | 結線 | shutdown | access | auto | auto |
Eth1/2 | 1000Base SX | 結線 | no shutdown | access | auto | auto |
Eth1/3 | 1000Base SX | 未結線 | shutdown | access | auto | auto |
Eth1/4 | 1000Base SX | 未結線 | no shutdown | access | auto | auto |
Eth1/5 | 1000Base SX | 結線 | shutdown | trunk | auto | auto |
Eth1/6 | 1000Base SX | 結線 | no shutdown | trunk | auto | auto |
Eth1/7 | 1000Base SX | 未結線 | shutdown | trunk | auto | auto |
Eth1/8 | 1000Base SX | 未結線 | no shutdown | trunk | auto | auto |
Eth1/9 | 1000Base SX | 結線 | shutdown | routed | auto | auto |
Eth1/10 | 1000Base SX | 結線 | no shutdown | routed | auto | auto |
Eth1/11 | 1000Base SX | 未結線 | shutdown | routed | auto | auto |
Eth1/12 | 1000Base SX | 未結線 | no shutdown | routed | auto | auto |
Eth1/13 | 10GBase SR | 結線 | shutdown | access | auto | auto |
Eth1/14 | 10GBase SR | 結線 | no shutdown | access | auto | auto |
Eth1/15 | 10GBase SR | 未結線 | shutdown | access | auto | auto |
Eth1/16 | 10GBase SR | 未結線 | no shutdown | access | auto | auto |
Eth1/17 | 10GBase SR | 結線 | shutdown | trunk | auto | auto |
Eth1/18 | 10GBase SR | 結線 | no shutdown | trunk | auto | auto |
Eth1/19 | 10GBase SR | 未結線 | shutdown | trunk | auto | auto |
Eth1/20 | 10GBase SR | 未結線 | no shutdown | trunk | auto | auto |
Eth1/21 | 10GBase SR | 結線 | shutdown | routed | auto | auto |
Eth1/22 | 10GBase SR | 結線 | no shutdown | routed | auto | auto |
Eth1/23 | 10GBase SR | 未結線 | shutdown | routed | auto | auto |
Eth1/24 | 10GBase SR | 未結線 | no shutdown | routed | auto | auto |
Eth1/25 | GLC-T | 結線 | shutdown | access | auto | auto |
Eth1/26 | GLC-T | 結線 | no shutdown | access | auto | auto |
Eth1/27 | GLC-T | 未結線 | shutdown | access | auto | auto |
Eth1/28 | GLC-T | 未結線 | no shutdown | access | auto | auto |
Eth1/29 | GLC-T | 結線 | shutdown | trunk | auto | auto |
Eth1/30 | GLC-T | 結線 | no shutdown | trunk | auto | auto |
Eth1/31 | GLC-T | 未結線 | shutdown | trunk | auto | auto |
Eth1/32 | GLC-T | 未結線 | no shutdown | trunk | auto | auto |
Eth1/33 | GLC-T | 結線 | shutdown | routed | auto | auto |
Eth1/34 | GLC-T | 結線 | no shutdown | routed | auto | auto |
Eth1/35 | GLC-T | 未結線 | shutdown | routed | auto | auto |
Eth1/36 | GLC-T | 未結線 | no shutdown | routed | auto | auto |
Eth1/37 | SFPなし | 未結線 | shutdown | access | ||
Eth1/38 | SFPなし | 未結線 | no shutdown | access | ||
Eth1/39 | SFPなし | 未結線 | shutdown | trunk | ||
Eth1/40 | SFPなし | 未結線 | no shutdown | trunk | ||
Eth1/41 | SFPなし | 未結線 | shutdown | routed | ||
Eth1/42 | SFPなし | 未結線 | no shutdown | routed |
#show interface status
------------------------------------------------------------------------------
Port Name Status Vlan Duplex Speed Type
====1000Base SX===============================================================
Eth1/1 -- disabled 1 full 1000 SFP-1000BAS
Eth1/2 -- connected 1 full 1000 SFP-1000BAS
Eth1/3 -- disabled 1 full 1000 SFP-1000BAS
Eth1/4 -- notconnec 1 full 1000 SFP-1000BAS
Eth1/5 -- disabled trunk full 1000 SFP-1000BAS
Eth1/6 -- connected trunk full 1000 SFP-1000BAS
Eth1/7 -- disabled trunk full 1000 SFP-1000BAS
Eth1/8 -- notconnec trunk full 1000 SFP-1000BAS
Eth1/9 -- disabled routed full 1000 SFP-1000BAS
Eth1/10 -- connected routed full 1000 SFP-1000BAS
Eth1/11 -- disabled routed full 1000 SFP-1000BAS
Eth1/12 -- notconnec routed full 1000 SFP-1000BAS
====10G SR====================================================================
Eth1/13 -- disabled 1 full 10G 10Gbase-SR
Eth1/14 -- connected 1 full 10G 10Gbase-SR
Eth1/15 -- disabled 1 full 10G 10Gbase-SR
Eth1/16 -- notconnec 1 full 10G 10Gbase-SR
Eth1/17 -- disabled trunk full 10G 10Gbase-SR
Eth1/18 -- connected trunk full 10G 10Gbase-SR
Eth1/19 -- disabled trunk full 10G 10Gbase-SR
Eth1/20 -- notconnec trunk full 10G 10Gbase-SR
Eth1/21 -- disabled routed full 10G 10Gbase-SR
Eth1/22 -- connected routed full 10G 10Gbase-SR
Eth1/23 -- disabled routed full 10G 10Gbase-SR
Eth1/24 -- notconnec routed full 10G 10Gbase-SR
====GLC-T=====================================================================
Eth1/25 -- disabled 1 full 1000 SFP-1000BAS
Eth1/26 -- connected 1 full 1000 SFP-1000BAS
Eth1/27 -- disabled 1 full 1000 SFP-1000BAS
Eth1/28 -- notconnec 1 full 1000 SFP-1000BAS
Eth1/29 -- disabled trunk full 1000 SFP-1000BAS
Eth1/30 -- connected trunk full 1000 SFP-1000BAS
Eth1/31 -- disabled trunk full 1000 SFP-1000BAS
Eth1/32 -- notconnec trunk full 1000 SFP-1000BAS
Eth1/33 -- disabled routed full 1000 SFP-1000BAS
Eth1/34 -- connected routed full 1000 SFP-1000BAS
Eth1/35 -- disabled routed full 1000 SFP-1000BAS
Eth1/36 -- notconnec routed full 1000 SFP-1000BAS
====SFPなし===================================================================
Eth1/37 -- sfpAbsent 1 full 10G --
Eth1/38 -- sfpAbsent 1 full 10G --
Eth1/39 -- sfpAbsent trunk full 10G --
Eth1/40 -- sfpAbsent trunk full 10G --
Eth1/41 -- sfpAbsent routed full 10G --
Eth1/42 -- sfpAbsent routed full 10G --
Nexus9000
テスト筐体「 C93180-YC-FX3 」
OS version 「 NX-OS9.3(10) 」
IF番号 | IF | ケーブル | ポート | モード | speed | duplex |
---|---|---|---|---|---|---|
Eth1/1 | 1000Base SX | 結線 | shutdown | access | auto | auto |
Eth1/2 | 1000Base SX | 結線 | no shutdown | access | auto | auto |
Eth1/3 | 1000Base SX | 未結線 | shutdown | access | auto | auto |
Eth1/4 | 1000Base SX | 未結線 | no shutdown | access | auto | auto |
Eth1/5 | 1000Base SX | 結線 | shutdown | trunk | auto | auto |
Eth1/6 | 1000Base SX | 結線 | no shutdown | trunk | auto | auto |
Eth1/7 | 1000Base SX | 未結線 | shutdown | trunk | auto | auto |
Eth1/8 | 1000Base SX | 未結線 | no shutdown | trunk | auto | auto |
Eth1/9 | 1000Base SX | 結線 | shutdown | routed | auto | auto |
Eth1/10 | 1000Base SX | 結線 | no shutdown | routed | auto | auto |
Eth1/11 | 1000Base SX | 未結線 | shutdown | routed | auto | auto |
Eth1/12 | 1000Base SX | 未結線 | no shutdown | routed | auto | auto |
Eth1/13 | 10GBase SR | 結線 | shutdown | access | auto | auto |
Eth1/14 | 10GBase SR | 結線 | no shutdown | access | auto | auto |
Eth1/15 | 10GBase SR | 未結線 | shutdown | access | auto | auto |
Eth1/16 | 10GBase SR | 未結線 | no shutdown | access | auto | auto |
Eth1/17 | 10GBase SR | 結線 | shutdown | trunk | auto | auto |
Eth1/18 | 10GBase SR | 結線 | no shutdown | trunk | auto | auto |
Eth1/19 | 10GBase SR | 未結線 | shutdown | trunk | auto | auto |
Eth1/20 | 10GBase SR | 未結線 | no shutdown | trunk | auto | auto |
Eth1/21 | 10GBase SR | 結線 | shutdown | routed | auto | auto |
Eth1/22 | 10GBase SR | 結線 | no shutdown | routed | auto | auto |
Eth1/23 | 10GBase SR | 未結線 | shutdown | routed | auto | auto |
Eth1/24 | 10GBase SR | 未結線 | no shutdown | routed | auto | auto |
Eth1/25 | GLC-T | 結線 | shutdown | access | auto | auto |
Eth1/26 | GLC-T | 結線 | no shutdown | access | auto | auto |
Eth1/27 | GLC-T | 未結線 | shutdown | access | auto | auto |
Eth1/28 | GLC-T | 未結線 | no shutdown | access | auto | auto |
Eth1/29 | GLC-T | 結線 | shutdown | trunk | auto | auto |
Eth1/30 | GLC-T | 結線 | no shutdown | trunk | auto | auto |
Eth1/31 | GLC-T | 未結線 | shutdown | trunk | auto | auto |
Eth1/32 | GLC-T | 未結線 | no shutdown | trunk | auto | auto |
Eth1/33 | GLC-T | 結線 | shutdown | routed | auto | auto |
Eth1/34 | GLC-T | 結線 | no shutdown | routed | auto | auto |
Eth1/35 | GLC-T | 未結線 | shutdown | routed | auto | auto |
Eth1/36 | GLC-T | 未結線 | no shutdown | routed | auto | auto |
Eth1/37 | SFPなし | 未結線 | shutdown | access | ||
Eth1/38 | SFPなし | 未結線 | no shutdown | access | ||
Eth1/39 | SFPなし | 未結線 | shutdown | trunk | ||
Eth1/40 | SFPなし | 未結線 | no shutdown | trunk | ||
Eth1/41 | SFPなし | 未結線 | shutdown | routed | ||
Eth1/42 | SFPなし | 未結線 | no shutdown | routed |
#show interface status
------------------------------------------------------------------------------
Port Name Status Vlan Duplex Speed Type
====1000Base SX===============================================================
Eth1/1 -- disabled 1 auto auto 1000base-SX
Eth1/2 -- connected 1 full 1000 1000base-SX
Eth1/3 -- disabled 1 auto auto 1000base-SX
Eth1/4 -- notconnec 1 auto auto 1000base-SX
Eth1/5 -- disabled trunk auto auto 1000base-SX
Eth1/6 -- connected trunk full 1000 1000base-SX
Eth1/7 -- disabled trunk auto auto 1000base-SX
Eth1/8 -- notconnec trunk auto auto 1000base-SX
Eth1/9 -- disabled routed auto auto 1000base-SX
Eth1/10 -- connected routed full 1000 1000base-SX
Eth1/11 -- disabled routed auto auto 1000base-SX
Eth1/12 -- notconnec routed auto auto 1000base-SX
====10G SR====================================================================
Eth1/13 -- disabled 1 auto auto 10Gbase-SR
Eth1/14 -- connected 1 full 10G 10Gbase-SR
Eth1/15 -- disabled 1 auto auto 10Gbase-SR
Eth1/16 -- notconnec 1 auto auto 10Gbase-SR
Eth1/17 -- disabled trunk auto auto 10Gbase-SR
Eth1/18 -- connected trunk full 10G 10Gbase-SR
Eth1/19 -- disabled trunk auto auto 10Gbase-SR
Eth1/20 -- notconnec trunk auto auto 10Gbase-SR
Eth1/21 -- disabled routed auto auto 10Gbase-SR
Eth1/22 -- connected routed full 10G 10Gbase-SR
Eth1/23 -- disabled routed auto auto 10Gbase-SR
Eth1/24 -- notconnec routed auto auto 10Gbase-SR
====GLC-T=====================================================================
Eth1/25 -- disabled 1 auto auto 1000base-T
Eth1/26 -- connected 1 full 1000 1000base-T
Eth1/27 -- disabled 1 auto auto 1000base-T
Eth1/28 -- notconnec 1 auto auto 1000base-T
Eth1/29 -- disabled trunk auto auto 1000base-T
Eth1/30 -- connected trunk full 1000 1000base-T
Eth1/31 -- disabled trunk auto auto 1000base-T
Eth1/32 -- notconnec trunk auto auto 1000base-T
Eth1/33 -- disabled routed auto auto 1000base-T
Eth1/34 -- connected routed full 1000 1000base-T
Eth1/35 -- disabled routed auto auto 1000base-T
Eth1/36 -- notconnec routed auto auto 1000base-T
====SFPなし===================================================================
Eth1/37 -- xcvrAbsen 1 auto auto --
Eth1/38 -- xcvrAbsen 1 auto auto --
Eth1/39 -- xcvrAbsen trunk auto auto --
Eth1/40 -- xcvrAbsen trunk auto auto --
Eth1/41 -- xcvrAbsen routed auto auto --
Eth1/42 -- xcvrAbsen routed auto auto --
※補足情報
・ブロードキャスト閾値制御が動作した場合のstatus は stromctrl となる。
# storm-control broadcast level 閾値
# storm-control action shutdown
・Port-channelが正常に動作していない場合、メンバーポートのstatusはchannErrDiとなる
・QSFP等を使用してSpeedが40Gなどの場合は Speed表記が40Gとなる。
・結線状態の時 対向switchでshutdownを実行すると自身のswitchでは notconnect ステータスとなる。
今回使用した便利なコマンドたち
# show interface status up
connected 状態になっているIFのみ表示する
# show interface status down
sfpabcent notconnec disabled sfpAbsent 状態となっているIFのみ表示する