Communitygithub.com

Cisco IOS パターン集

Cisco IOS および IOS-XE の show コマンド、設定階層、ワイルドカードマスク、ACL 配置、インターフェース管理、安全な変更ウィンドウ検証のレビューパターンを提供します。Cisco IOS / IOS-XE の設定の読み取り、作成、レビュー、または変更ウィンドウの計画時に使用します。

Cisco IOS パターン集 とは?

このスキルは、Cisco IOS および IOS-XE を扱うネットワークエンジニアや AI エージェント向けに設計されています。主な目的は、設定変更前後の安全なレビューフローを提供し、障害を悪化させずにルーターやスイッチから証拠を収集する方法を説明することです。対応プラットフォームは Cisco IOS および IOS-XE です。動作内容として、show コマンドによる読み取り専用の状態収集、ワイルドカードマスクとサブネットマスクの違いの明確化、ACL の配置方向や暗黙の deny ルールの確認、インターフェース設定の適切な記述ルール、running-config と startup-config の適切な保存方法、変更前後での検証手順などを体系的にカバーします。このスキルは、設定変更時の典型的なアンチパターン(デバイス固有の差分を取らずに生成設定を適用する、変更後チェックをパスする前に保存する、ワイルドカードマスクの代わりにサブネットマスクを使う、など)を避けるための実践的なガイダンスを提供します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/ECC/tree/main/skills/cisco-ios-patterns

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Cisco IOS パターン集 は何をしますか?

このスキルは、Cisco IOS または IOS-XE のスニペットをレビューしたり、変更ウィンドウのチェックリストを作成したり、障害を悪化させずにルーターやスイッチから証拠を収集する方法を説明する際に使用します。

使用するタイミング

  • 計画された変更の前に IOS または IOS-XE の設定をレビューする場合。
  • トラブルシューティングのために読み取り専用の show コマンドを選択する場合。
  • ACL のワイルドカードマスクとインターフェース方向を確認する場合。
  • グローバル、インターフェース、ルーティングプロセス、ライン設定モードを説明する場合。
  • 変更が running-config に反映され、意図的に保存されたことを確認する場合。

運用ルール

IOS の例はパターンとして扱い、そのまま本番環境に貼り付けられる変更として扱わないでください。実際のデバイスで変更を行う前に、プラットフォーム、インターフェース名、現在の設定、ロールバックパス、および帯域外アクセスを確認してください。

以下のワークフローを推奨します。

  1. 読み取り専用コマンドで現在の状態を取得する。
  2. 正確な候補設定をレビューする。
  3. 管理アクセスがロックアウトされないことを確認する。
  4. メンテナンスウィンドウ内で最小限の変更を適用する。
  5. 状態を再読み取りし、ベースラインと比較してから、検証後にのみ保存する。

モードリファレンス

Router> enable
Router# show running-config
Router# configure terminal
Router(config)# interface GigabitEthernet0/1
Router(config-if)# description UPLINK-TO-CORE
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# end
Router# show running-config interface GigabitEthernet0/1

running-config はアクティブメモリです。startup-config は再起動後も保持される設定です。コマンドが受け入れられただけで変更を保存しないでください。まず動作を検証し、変更が承認された場合にのみ copy running-config startup-config を使用してください。

読み取り専用収集

show version
show inventory
show processes cpu sorted
show memory statistics
show logging
show running-config | section line vty
show running-config | section interface
show running-config | section router bgp
show ip interface brief
show interfaces
show interfaces status
show vlan brief
show mac address-table
show spanning-tree
show ip route
show ip protocols
show ip access-lists
show route-map
show ip prefix-list

設定にシークレット、顧客名、プライベートトポロジが含まれる可能性がある場合は、完全な設定をチケットにダンプするのではなく、必要な特定のセクションのみを収集してください。

ワイルドカードマスク

IOS ACL および多くのルーティングステートメントは、サブネットマスクではなくワイルドカードマスクを使用します。

サブネットマスク      ワイルドカードマスク
255.255.255.255   0.0.0.0
255.255.255.252   0.0.0.3
255.255.255.0     0.0.0.255
255.255.0.0       0.0.255.255

デプロイ前にワイルドカードマスクを確認してください。サブネットマスクを誤ってワイルドカードとして使用すると、意図したよりもはるかに多くのトラフィックにマッチする可能性があります。

ip access-list extended WEB-IN
  10 permit tcp 192.0.2.0 0.0.0.255 any eq 443
  999 deny ip any any log

すべての ACL の最後には暗黙の deny があります。運用目標にミスを監視することが含まれる場合は、明示的なログ付き deny を追加し、ログボリュームが安全であることを確認してください。

ACL 配置レビュー

ACL をインターフェースに適用する前に、以下の質問に答えてください。

  • フィルタリング対象のトラフィック方向は in ですか、それとも out ですか?
  • 管理トラフィックは既知のジャンプホストまたは管理サブネットから発信されていますか?
  • 必要なルーティング、DNS、NTP、監視、アプリケーショントラフィックに対して明示的な permit がありますか?
  • 安全なテストソースからのヒットカウンターが利用可能ですか?
  • ロールバックコマンドとアクティブなコンソールまたは帯域外パスがありますか?

ファイアウォールや ACL 保護を削除して到達可能性をテストしないでください。最初にカウンター、ログ、ルート状態を読み取ってください。

インターフェース管理

interface GigabitEthernet0/1
 description UPLINK-TO-CORE
 switchport mode trunk
 switchport trunk allowed vlan 10,20,30
 switchport trunk native vlan 999
 no shutdown

明確な説明、明示的な switchport モード、文書化されたネイティブ VLAN を使用してください。ルーテッドインターフェースでは、リンク状態が転送が正しいことを意味すると仮定する前に、マスク、ピアアドレッシング、ルーティングプロセスを確認してください。

変更ウィンドウ検証

実際の変更に一致する before/after チェックを使用してください。

show running-config | section interface GigabitEthernet0/1
show interfaces GigabitEthernet0/1
show logging | include GigabitEthernet0/1|changed state|line protocol
show ip route <prefix>
show ip access-lists <name>

ルーティング変更の場合は、変更前後のネイバー状態とルートテーブルも取得してください。ACL 変更の場合は、汎用的な ping に依存するのではなく、計画されたテストソースからのヒットカウンターを比較してください。

アンチパターン

  • デバイス固有の差分を取らずに生成された設定を適用する。
  • 変更後チェックが合格する前に設定を保存する。
  • IOS がワイルドカードマスクを期待する場所でサブネットマスクを使用する。
  • ACL を誤ったインターフェース方向に適用する。
  • ACL、ルートポリシー、または認証を無効にしてトラブルシューティングする。
  • シークレットやトポロジをサニタイズせずに完全な設定を公開ツールに貼り付ける。

関連情報

  • エージェント: network-config-reviewer
  • エージェント: network-troubleshooter
  • スキル: network-config-validation
  • スキル: network-interface-health

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

affaan-m/ECC

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

affaan-m/fal-ai-media

Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.

affaan-m/manim-video

日本語翻訳:このファイルは manim-video 用の日本語翻訳が必要です

affaan-m/remotion-video-creation

Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

affaan-m/video-editing

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

agent-sort

Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

ai-first-engineering

Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.

ai-regression-testing

Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

関連スキル