LoginSignup
4
6

More than 5 years have passed since last update.

Cisco Catalyst [運用]

Last updated at Posted at 2016-07-01

基本的なコマンドやトラブルシューティング時に使用する手順等

運用

ページ送りを無しにする

(Configの反映無し)

terminal length 0

telnetでもリアルタイムでログを表示

(Configの反映無し)

terminal monitor

who

(他のログイン中のユーザー確認)

show users

grep

| include AAA|BBB
| inc AAA|BBB

grep -v

| exclude *****

Configアップロード

copy startup-config tftp://192.168.40.7/Catalyst/TEST_config.text

Configダウンロード

copy tftp://192.168.40.7/Catalyst/TEST_config.text flash:config.text

タグVLANを追加

switchport trunk allowed vlan add 103

タグVLANを除去

switchport trunk allowed vlan remove 103

ミラーポートの設定

ソース設定
monitor session 1 source interface Fa0/1
ミラーリング先の設定
monitor session 1 destination interface Fa0/2
ソース設定 rx 受信パケット のみ [スイッチ] ← [PC]
monitor session 1 source interface Fa0/2 rx
ソース設定 tx 送信パケット のみ [スイッチ] → [PC]
monitor session 1 source interface Fa0/2 tx

インターフェース関連

ポートの負荷や信頼性の確認

show interfaces | inc reliability
内容 意味
reliability 255/255 5分間監視の中での信頼性
txload 1/255 5分間監視の中での送信負荷
rxload 1/255 5分間監視の中での受信負荷
  • ポート100Mbpsで例えば「127/255」となっている場合、 5分間平均で帯域半分の約50Mbpsで使用している状態を差す。

ポートが最後に使用された時間を確認する

show interfaces | inc Last input

ポートステータス(VLAN,速度情報等確認)

show interfaces status

設定されているIPアドレスやその他の情報の要約表示

 show ip interface brief

コメントの確認

 show interfaces description

リンクアグリゲーションの状態確認

 show etherchannel summary

LEDランプの確認

 show hardware led

パケットのクリア

 en
 clear counters

パケットの監視

 show interfaces counters
 show interfaces counters errors

パケットの監視 (絞り込む)

 show interfaces counters | include Port|Gi1/0/1|Gi1/0/2
 show interfaces counters errors | include Port|Gi1/0/1|Gi1/0/2

パケット数確認

 show interfaces stats

接続されてるCisco製品を調べる

 show cdp neighbors
 show cdp neighbors detail
 ⇒「no cdp enable」している製品は検出しない

接続されてるMACアドレスを調べる (FDBの確認)

 show mac-address-table
 show mac address-table

CPU情報

 show controllers cpu-interface

温度のチェック ※物による

 show env temperature status

時刻の確認

 show clock detail

**その他 [#i1435328]

Config確認

 show run

設定中にふとConfigを確認したくなったら

 do show run
 ⇒do を先頭を付ける事によってConfigモードでも通常モードのコマンドが入力できる
  tab、"?"は使えない

バージョン確認

 show ver
 show version

本体とSFPのシリアルNo.を調べる

 show inventory

シリアルNo.を回収

 show module
 show idprom chassis
 show idprom power-supply 1
 show idprom power-supply 2

telnet

 telnet IP

telnet途中で中断

 [Ctrl] + [Shift] + [6] の後に [x]
 戻るときは [Enter] もしくは resume と入力

他ユーザーを落とす

 show user のセッション番号を確認
 clear line XX
4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6