もくじ
ネットワーク障害時に見るコマンド
オートネゴシエーションと実際のリンクアップ状況、Dropパケットの確認
# show interface show interface Interface ge1 Link is UP Hardware is Ethernet HW addr: ac44.f23c.7475 ifIndex 1, MRU 1522 Speed-Duplex: auto(configured), 1000-full(current) ←注目 Auto MDI/MDIX: on Interface counter: input packets : 2731069 bytes : 598015536 multicast packets: 2754 output packets : 47531103 bytes : 25443897994 multicast packets: 12124203 broadcast packets: 20297143 drop packets : 3481 ←注目 Interface ge2 Link is UP Hardware is Ethernet HW addr: ac44.f23c.7475 ifIndex 2, MRU 1522 Speed-Duplex: auto(configured), 1000-full(current) ←注目 (略)
コリジョン、エラーカウンタの確認
#show frame-counter show frame-counter Interface ge1 Ethernet MAC counters: Received: Packets : 2731143 Octets : 598032130 Broadcast packets : 98303 Multicast packets : 2754 Unicast packets : 2630086 Undersize packets : 0 Oversize packets : 0 Fragments : 0 Jabbers : 0 FCS errors : 0 ←注目 RX errors : 0 ←注目 Transmitted: Packets : 47536031 Octets : 25445177751 Broadcast packets : 20301336 Multicast packets : 12124914 Unicast packets : 15109781 TX errors : 0 ←注目 Collisions : 0 ←注目 Drop packets : 3481 ←注目 Received and Transmitted: 64octet packets : 21197125 65-127octet packets : 2464047 128-255octet packets : 608116 256-511octet packets : 12263579 512-1023octet packets : 269448 1024-MAXoctet packets : 13464859 Interface ge2 Ethernet MAC counters:
リンクアップやリンクダウンのログ
#show logging show logging 2018/08/04 13:47:58: [ NSM]:inf: Interface ge8 is up(1000-full) 2018/08/04 13:47:58: [ MSTP]:inf: Port up notification received for port ge8 2018/08/04 13:47:58: [ NSM]:inf: Interface ge18 is up(1000-full) 2018/08/04 13:47:58: [ MSTP]:inf: Port up notification received for port ge18 2018/08/04 13:47:58: [ NSM]:inf: Interface ge7 is up(1000-full) 2018/08/04 13:47:58: [ MSTP]:inf: Port up notification received for port ge7 2018/08/04 13:47:58: [ NSM]:inf: Interface ge3 is down (略)
カウンター情報の初期化
# clear counters ge1
ポート1の情報を初期化する場合
状況再現をする場合にカウンターデータを初期化して、データを取得する為に使用します。
環境設定の確認
コンフィグの確認
#show running-config show running-config ! hostname edge1.SWX2300 ! (略)
ファームウェアバージョンの確認
# show environment show environment SWX2300-24G BootROM Ver.1.00 SWX2300-24G Rev.2.00.14 (Fri Mar 9 11:46:25 2018) ←注目 main=SWX2300-24G ver=00 serial=S4L00999 MAC-Address=ac44.xxxx.9999 CPU: 0%(5sec) 1%(1min) 1%(5min) Memory: 34% used Configuration file: config0 Serial Baudrate: 9600 Boot time: 2018/07/31 23:27:06 +09:00 Current time: 2018/08/06 15:41:57 +09:00 Elapsed time from boot: 5days 15:59:1
VLAN
# show vlan brief show vlan brief (u)-Untagged, (t)-Tagged VLAN ID Name State Member ports ======= ================================ ======= ====================== 1 default ACTIVE ge1(u) ge2(u) ge3(u) ge4(u) ge5(u) ge6(u) ge7(u) ge8(u) ge9(u) ge10(u) ge11(u) ge12(u) ge13(u) ge14(u) ge15(u) ge16(u) ge17(u) ge18(u) ge19(u) ge20(u) ge21(u) ge22(u) ge23(u) ge24(u) ge25(u) ge26(u) ge27(u) ge28(u)
スパニングツリー
#show spanning-tree mst detail show spanning-tree mst detail % Default: Bridge up - Spanning Tree Enabled - topology change detected % Default: CIST Root Path Cost 0 - CIST Root Port 23 - CIST Bridge Priority 32768 % Default: Forward Delay 15 - Hello Time 2 - Max Age 20 - Transmit Hold Count 6 - Max-hops 20 % Default: CIST Root Id 8001ac44f23c746e % Default: CIST Reg Root Id 8001ac44f23c746e % Default: CIST Bridge Id 8001ac44f23c7475 % Default: 1941 topology change(s) - last topology change Mon Aug 6 15:35:02 2018 % ge1: Port Number 1 - Ifindex 1 - Port Id 8001 - Role Designated - State Forwarding % ge1: Designated External Path Cost 0 -Internal Path Cost 20000 % ge1: Configured Path Cost 20000 - Add type Explicit ref count 1 % ge1: Designated Port Id 8001 - CIST Priority 128 - % ge1: CIST Root 8001ac44f23c746e % ge1: Regional Root 8001ac44f23c746e % ge1: Designated Bridge 8001ac44f23c7475 % ge1: Message Age 0 - Max Age 20 % ge1: CIST Hello Time 2 - Forward Delay 15 % ge1: CIST Forward Timer 0 - Msg Age Timer 0 - Hello Timer 1 - topo change timer 0 % ge1: forward-transitions 54 % ge1: Version Multiple Spanning Tree Protocol - Received None - Send MSTP % ge1: No portfast configured - Current portfast off % ge1: bpdu-guard disabled - Current bpdu-guard off % ge1: bpdu-filter disabled - Current bpdu-filter off (略)
ループの確認
#show loop-detect show loop-detect loop-detect: Disable port loop-detect port-blocking status ------------------------------------------------------- ge1 enable enable ------ ge2 enable enable ------ ge3 enable enable ------ ge4 enable enable ------ ge5 enable enable ------ ge6 enable enable ------ ge7 enable enable ------ ge8 enable enable ------ ge9 enable enable ------ ge10 enable enable ------ ge11 enable enable ------ ge12 enable enable ------ ge13 enable enable ------ ge14 enable enable ------ ge15 enable enable ------ ge16 enable enable ------ ge17 enable enable ------ ge18 enable enable ------ ge19 enable enable ------ (略)
マックアドレステーブルの確認
# show mac-address-table show mac-address-table VLAN port mac fwd type timeout (略)
l2ms
#show l2ms detail show l2ms detail Role : Slave Status : Not managed
送信キュー使用率の表示
# show mls qos queue-counters show mls qos queue-counters QoS: Disable Interface ge1 Queue Counters: Queue 0 0.0 % Queue 1 0.0 % Queue 2 0.0 % Queue 3 0.0 % Queue 4 0.0 % Queue 5 0.0 % Queue 6 0.0 % Queue 7 0.0 % Interface ge2 Queue Counters: Queue 0 0.0 % Queue 1 0.0 % Queue 2 0.0 % Queue 3 0.0 % Queue 4 0.0 % Queue 5 0.0 % Queue 6 0.0 % Queue 7 0.0 % Interface ge3 Queue Counters: Queue 0 0.0 %
エラー検出機能の情報表示
#show errdisable show errdisable function auto recovery interval ----------------------------------------------- BPDU guard disable Loop detect enable 300 port reason -----------------------
SFPモジュールの状態表示
# show ddm status show ddm status Temperature High Alarm High Warning Low Warning Low Alarm Interface (Celsius) Threshold Threshold Threshold Threshold ------------ ------------ ------------ ------------ ------------ ------------ ge25 - - - - - ge26 - - - - - ge27 - - - - - ge28 - - - - - Voltage High Alarm High Warning Low Warning Low Alarm Interface (V) Threshold Threshold Threshold Threshold ------------ ------------ ------------ ------------ ------------ ------------ ge25 - - - - - ge26 - - - - - ge27 - - - - - ge28 - - - - - Current High Alarm High Warning Low Warning Low Alarm Interface (mA) Threshold Threshold Threshold Threshold ------------ ------------ ------------ ------------ ------------ ------------ ge25 - - - - - ge26 - - - - - ge27 - - - - - ge28
テクニカルコマンド
# show tech-support
この記事で紹介したshow系コマンドをすべて実行する