よく使うネットワーク機器のコマンド一覧

ethernet cables plugged in network switch 技術メモ
Photo by Brett Sayles on Pexels.com
この記事は約6分で読めます。

よく使うけどすぐに忘れてしまいがちなコマンドを備忘として記載していきます

何かの参考になったら幸いです

showコマンド

IOSIOS-XRJunos備考
show ip route ospfshow route ospfshow ospf routeルーティングテーブル情報(OSPF)
show ipv6 neighborsshow ipv6 neighborsshow ipv6 neighborsIPv6リンクアップ確認
show ipv6 routeshow ipv6 routeshow route table inet6.0ルーティングテーブル情報(IPv6)
show bgp ipv6 summaryshow bgp ipv6 unicast summaryshow bgp ipv6 summaryshow bgp ipv6 unicast summaryshow bgp summary (| find 6.0) BGP(IPv6)のPeerUPとネイバー数を確認
show loggingshow loggingshow log messagesログ情報確認
show processes cpushow processes cpushow system process
show chassis routing-engine
CPU使用率確認
show route-mapshow route-mapshow policy設定ポリシー確認
show route-map (map名)show route-map (map名)show policy (map名)設定ポリシー詳細確認(マップ名別)
show running-configshow running-configshow configuration設定コンフィグ確認
show usersshow usersshow system usersログイン中のユーザー確認
show tech-supportshow tech-supportrequest support infomationテクニカルサポートが必要とするハードウェア及びソフトウェア情報を表示
show versionshow versionshow versionOSバージョン情報
show arpshow arpshow arpARPテーブル確認
sh mac address-tablesh mac address-tableshow ethernet-switching tableMAC テーブル確認
show clockshow clockshow system uptime機器の標準時間確認
show diagsshow diagsshow chassis hardwareハードウェア情報(シャーシ、搭載パッケージ等)
show enviroment allshow enviroment allshow chassis enviroment電源、ファン等の情報
show historyshow historyshow cli history設定コマンド履歴
show interface XXXshow interface XXXshow interface XXX (detail)インターフェース情報
show interface descriptionshow interface descriptionshow interfaces description説明文をつけたインターフェースサマリ情報。※interfaceにdescription設定をしないと確認できない
show interfaces transceivershow controllers <interface-name> allshow interfaces diagnostics optics <interface-name>搭載SFPの光レベル情報
show inventoryadmin show diag搭載PKG、SFPの種類、シリアル番号表示(SFPは一部、純正品のみ対応)
show ip bgp neighbor (peer address) advertised-routesshow bgp neighbor (peer address) advertised-routesshow route advertising-protocol bgp (peer address)BGP広報経路確認
show ip bgp neighbor (peer address) received-routesshow bgp neighbor (peer address) received-routesshow route receive-protocol bgp (peer address)BGP受信経路確認
show ip bgp peer-groupshow bgp peer-groupshow bgp groupBGP Peerグループ確認
show ip bgp regexp (regex)show bgp regexp (regex)show route aspath-regexp (regex)ASパスをマッチングしBGProuteを確認
show ip bgp summary(仮想マネル) show bgp vpnv4  unicast all summaryshow bgp summaryshow bgp summaryBGP(IPv4)のPeerUPとネイバー数を確認
show ip interface briefshow interface briefshow interfacce terseIPv4インターフェースステータス情報
show ip ospf databaseshow ospf databaseshow ospf databaseOSPFデータベース情報
show ip ospf neighborshow ospf neighborshow ospf neighborOSPFネイバー情報
show ip ospf interfaceshow ospf interfaceshow ospf interfaceインターフェースでのOSPF詳細情報
show ip route show route show routeルーティングテーブル情報
show ip cef exact route xxx xxxshow cef exact route xxx xxxshow route forwarding-table destination xxxFIBテーブル情報

terminalコマンド

IOSJunos備考
terminal length 0set cli screen-length 0画面に表示される行数を指定。”0″だとmoreが出力されず、すべてを表示する
terminal monitormonitor start messagesログメッセージをリアルタイムで表示する
terminal no monitormonitor stop messagesリアルタイムで表示されるログメッセージの表示を止める

制御コマンド

IOSJunos備考
clear countersclear interface staticsインターフェースカウントをクリア
clear ip bgpclear bgp neighborBGPセッションクリア
clear ethernet-switching tableMACテーブルクリア ソースを展開
reloadrequest system reboot再起動
write eraseerase startup-configload factory-default設定初期化
write memorycopy running-config startup-configcommitコンフィグ設定保存
スポンサー広告
タイトルとURLをコピーしました