Cisco Ios Patternsのロゴ

Cisco Ios Patterns

コミュニティ
arsallls
cisco-ios-patterns

Cisco IOS and IOS-XE configuration syntax, show commands, privilege levels, config mode navigation, wildcard masks, and the most common operational gotchas.

概要

公開者arsallls
リポジトリclaude-network-skills
スキル名cisco-ios-patterns
スター
77
フォーク
14
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    arsalllsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Cisco Ios Patterns」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/arsallls/claude-network-skills/tree/main/skills/cisco-ios-patterns
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/arsallls/claude-network-skills.git /tmp/claude-network-skills
mkdir -p .claude/skills
cp -r /tmp/claude-network-skills/skills/cisco-ios-patterns .claude/skills/cisco-ios-patterns
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCisco Ios Patternsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCisco Ios Patternsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Cisco Ios Patternsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Cisco IOS Patterns

Reference patterns for working with Cisco IOS and IOS-XE — the most common network OS in enterprise environments. Covers config syntax, show commands, privilege levels, and the gotchas that cause the most operational incidents.

When to Activate

  • Writing or reviewing Cisco IOS/IOS-XE configuration
  • Generating show commands for troubleshooting
  • Explaining IOS config mode hierarchy or privilege levels
  • Helping with ACL wildcard mask calculations
  • Diagnosing why a config change didn't take effect
  • Automating IOS device interaction with Python/Netmiko

Config Mode Hierarchy

Router> enable                    # Enter privileged EXEC (requires enable password)
Router# configure terminal        # Enter global config mode
Router(config)# interface Gi0/0   # Enter interface sub-mode
Router(config-if)# ip address 10.0.0.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit           # Back to global config
Router(config)# router bgp 65001  # Enter routing process sub-mode
Router(config-router)# end        # Jump straight back to privileged EXEC
Router# write memory              # Save — or use: copy running-config startup-config

Critical gotcha: forgetting write memory IOS running-config is in RAM. A reload without saving loses all unsaved changes. Always verify with show running-config | include <key phrase> before and after a change window, then save.

Essential Show Commands

# System state
show version                      # IOS version, uptime, hardware
show inventory                    # Physical hardware/modules
show processes cpu sorted         # CPU utilization
show memory statistics            # Memory usage

# Interfaces
show interfaces                   # Full interface detail — errors, counters, speed/duplex
show ip interface brief           # Quick status table for all interfaces
show interfaces GigabitEthernet0/0 # Single interface detail
show interfaces trunk             # Trunk port status and allowed VLANs

# Routing
show ip route                     # Full routing table
show ip route 10.0.0.0            # Longest match for a specific prefix
show ip protocols                 # Running routing protocols + parameters
show ip ospf neighbor             # OSPF adjacency table
show bgp summary                  # BGP session table

# Layer 2
show vlan brief                   # VLAN table
show spanning-tree                # STP state per VLAN
show mac address-table            # CAM table

# Access lists
show ip access-lists              # ACL contents + hit counters
show ip access-lists MYACL        # Specific ACL

# Logging and events
show logging                      # Syslog buffer
show ip nat translations          # Active NAT entries

Wildcard Masks

Wildcard masks are the inverse of subnet masks. 0 = must match, 1 = don't care.

# Subnet mask  →  Wildcard mask
255.255.255.0  →  0.0.0.255      (match /24 network)
255.255.255.252 → 0.0.0.3        (match /30 — point-to-point links)
255.255.0.0    →  0.0.255.255    (match /16 network)
255.0.0.0      →  0.255.255.255  (match /8 network)
0.0.0.0        →  255.255.255.255 (match any host — used in OSPF: network 0.0.0.0 255.255.255.255 area 0)
255.255.255.255 → 0.0.0.0        (match one specific host)

# Formula: wildcard = 255.255.255.255 - subnet_mask
# Example: wildcard for 255.255.255.224 = 255.255.255.255 - 255.255.255.224 = 0.0.0.31

# ACL examples
access-list 10 permit 192.168.1.0 0.0.0.255     # Permit entire /24
access-list 10 permit 10.0.0.1 0.0.0.0          # Permit single host
access-list 10 permit 172.16.0.0 0.0.255.255     # Permit entire /16

# OSPF network statements
router ospf 1
  network 10.0.0.0 0.0.0.255 area 0    # Advertise /24 in area 0
  network 0.0.0.0 255.255.255.255 area 0  # Advertise all interfaces (use with care)

ACL Structure and Implicit Deny

# Every ACL ends with an invisible implicit deny all
# If no permit matches, traffic is dropped silently

ip access-list extended INBOUND
  10 permit tcp 10.0.0.0 0.0.0.255 any eq 80
  20 permit tcp 10.0.0.0 0.0.0.255 any eq 443
  30 permit icmp any any
  ! implicit deny ip any any here — no log, no counter increment

# Make the deny visible and logged
ip access-list extended INBOUND
  10 permit tcp 10.0.0.0 0.0.0.255 any eq 80
  20 permit tcp 10.0.0.0 0.0.0.255 any eq 443
  30 permit icmp any any
  999 deny ip any any log   # Now shows in 'show ip access-lists' with hit count

# Check ACL hit counts to confirm traffic is matching expected entries
show ip access-lists INBOUND

Interface Configuration Patterns

interface GigabitEthernet0/0
 description UPLINK-TO-CORE
 ip address 10.0.1.1 255.255.255.252
 no shutdown
 duplex full
 speed 1000

# Layer 2 access port
interface GigabitEthernet0/1
 description WORKSTATION-PORT
 switchport mode access
 switchport access vlan 10
 spanning-tree portfast
 no shutdown

# Layer 2 trunk port
interface GigabitEthernet0/2
 description TRUNK-TO-DISTRIBUTION
 switchport mode trunk
 switchport trunk allowed vlan 10,20,30,100
 switchport trunk native vlan 999
 no shutdown

# Loopback — used for management, BGP update-source, router-id
interface Loopback0
 description MGMT-LOOPBACK
 ip address 10.255.0.1 255.255.255.255

Privilege Levels

# IOS has 16 privilege levels (0–15)
# 0 = user EXEC (ping, traceroute, show version)
# 1 = default user mode
# 15 = full privileged EXEC (all commands)

# Assign a specific command to a lower privilege level
privilege exec level 5 show running-config

# Create a user at a specific privilege level
username readonly privilege 5 secret MyPassword

# Check current privilege level
show privilege

# Drop back from privileged to user EXEC
disable

Saving and Verifying Config

# Save running config to startup config (survives reload)
write memory
# or equivalently:
copy running-config startup-config

# View only the lines you care about
show running-config | include bgp
show running-config | include interface|ip address
show running-config | section router bgp
show running-config | section interface GigabitEthernet

# Compare running vs startup (identify unsaved changes)
show archive config differences nvram:startup-config system:running-config

Anti-Patterns

# BAD: Applying an ACL to an interface without testing it first
# An overly broad deny can black-hole your own management traffic
# Always verify the ACL with 'show ip access-lists' and test from a safe source first

# BAD: Using wrong wildcard mask in OSPF network statement
router ospf 1
  network 10.0.0.0 255.255.255.0 area 0   # WRONG — this is a subnet mask, not wildcard
  network 10.0.0.0 0.0.0.255 area 0       # CORRECT

# BAD: Forgetting 'no shutdown' on a new interface
interface GigabitEthernet0/1
  ip address 192.168.1.1 255.255.255.0
  # Missing 'no shutdown' — interface stays down

# BAD: Putting ACL on wrong interface direction
# 'in' filters traffic entering the interface (from that network into the router)
# 'out' filters traffic leaving the interface (from the router to that network)
ip access-group MYACL in   # Applied to the interface, not the ACL definition

Best Practices

  • Always add description to every interface and BGP neighbor — makes troubleshooting faster
  • Use named ACLs (ip access-list extended NAME) instead of numbered — easier to edit individual entries
  • Set service timestamps log datetime msec localtime so log entries have useful timestamps
  • Configure logging buffered 16384 informational to keep a local syslog buffer
  • Use no ip domain-lookup to prevent IOS from trying to DNS-resolve mistyped commands
  • Set exec-timeout 15 0 on VTY lines so idle sessions don't lock out other users
  • Test ACLs with show ip access-lists hit counters before and after applying

Related Skills

  • network-bgp-diagnostics
  • network-interface-health
  • network-config-validation

よくある質問

AIスキル「Cisco Ios Patterns」では何ができますか?

Cisco IOS and IOS-XE configuration syntax, show commands, privilege levels, config mode navigation, wildcard masks, and the most common operational gotchas.

TypingMindでCisco Ios Patternsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Cisco Ios Patternsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCisco Ios Patternsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/arsallls/claude-network-skills/tree/main/skills/cisco-ios-patternsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Cisco Ios Patternsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Cisco Ios Patternsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCisco Ios Patternsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Cisco Ios Patterns」は無料ですか?

はい。arsalllsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇