shutdown / no shutdown
注意ポートの閉塞・開放
interface <if> → shutdown / no shutdown
ポートの無効化と有効化。err-disabled復旧は shutdown→no shutdown の順で叩くのが定石。設定モードで対象IFを間違えないこと。
実行例
interface Gi1/0/12 shutdown no shutdownポートを再起動show interfaces status err-disablederr-disabled になっているポートと原因show errdisable recovery自動復旧の設定を確認errdisable recovery cause bpduguard errdisable recovery interval 300BPDU ガードで落ちたポートを 300 秒後に自動復旧(設定モード)interface range Gi1/0/1 - 4 shutdown複数のポートをまとめて無効化
書式
(config-if)# shutdown / no shutdown
押さえておくこと
- err-disabled の原因(bpduguard、psecure-violation など)を取り除かずに no shutdown しても、すぐに再発します。
- show interfaces status の Status 列は、connected(接続中)、notconnect(未接続)、disabled(shutdown 中)、err-disabled です。
- 変更を再起動後も残すには copy running-config startup-config を実行します。
うまくいかないとき
- 設定モードで別のインタフェースを選んだまま shutdown すると、関係ない通信が止まります。プロンプトの (config-if)# と show run interface で対象を確かめてから実行します。
実行前の注意
稼働ポートのshutdownは即通信断。
この症状のとき使う
関連コマンド
- show interfaces statusポート状態の一覧
- configure terminal設定モードへ入る
ラックの前にPCは持ち込めても、電波は来ません
機器の前で構文を確かめたいとき、通信なしで引けます。アプリ版は1,510コマンドと120の対処フローを端末内に。インストール無料・広告なし(一部は買い切り)。
App Storeで無料インストール