Communitygithub.com

cisco-ios-patterns

Cisco IOS 및 IOS-XE의 show 명령어, 설정 계층, 와일드카드 마스크, ACL 배치, 인터페이스 위생, 안전한 변경 창 확인을 위한 검토 패턴입니다. Cisco IOS/IOS-XE 설정을 읽거나 작성하거나 검토할 때, 또는 변경 창을 계획할 때 사용하세요.

cisco-ios-patterns란 무엇인가요?

이 스킬은 Cisco IOS 및 IOS-XE 장비의 설정을 검토하고 변경 작업을 안전하게 수행하기 위한 패턴과 모범 사례를 제공합니다. show 명령어를 통한 읽기 전용 상태 수집, 설정 모드별 문법(전역, 인터페이스, 라우팅 프로세스, 라인 설정), ACL 와일드카드 마스크와 인터페이스 방향 확인, 인터페이스 위생 규칙, 변경 전후 검증 워크플로우를 다룹니다. 특히 변경 창에서 최소 변경 원칙을 강조하며, 변경 후에는 반드시 동작 검증을 거친 후에만 설정을 저장하도록 안내합니다. CLI 기반 환경에서 동작하며, 네트워크 엔지니어가 장비 장애를 유발하지 않도록 돕는 것이 핵심 목표입니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/cisco-ios-patterns

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Cisco IOS 패턴

Cisco IOS 또는 IOS-XE 스니펫을 검토하거나, 변경 창 체크리스트를 작성하거나, 라우터나 스위치에서 증거를 수집하는 방법을 설명할 때 이 스킬을 사용하세요. 상황을 악화시키지 않으면서 말이죠.

사용 시점

  • 계획된 변경 전에 IOS 또는 IOS-XE 설정을 검토할 때.
  • 문제 해결을 위해 읽기 전용 show 명령어를 선택할 때.
  • ACL 와일드카드 마스크와 인터페이스 방향을 확인할 때.
  • 글로벌, 인터페이스, 라우팅 프로세스, 라인 설정 모드를 설명할 때.
  • 변경 사항이 running config에 반영되었고 의도적으로 저장되었는지 확인할 때.

운영 규칙

IOS 예제는 패턴으로 취급하세요. 프로덕션에 바로 붙여넣을 수 있는 변경 사항이 아닙니다. 실제 장비에서 변경을 수행하기 전에 플랫폼, 인터페이스 이름, 현재 설정, 롤백 경로, out-of-band 접근을 확인하세요.

다음 워크플로우를 선호하세요:

  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은 마지막에 암시적 거부(implicit deny)가 있습니다. 운영 목표에 미스 관찰이 포함된 경우 명시적인 로깅 거부를 추가하고, 로깅 볼륨이 안전한지 확인하세요.

ACL 배치 검토

인터페이스에 ACL을 적용하기 전에 다음 질문에 답하세요:

  • 필터링할 트래픽 방향은 in인가요, out인가요?
  • 관리 트래픽이 알려진 점프 호스트 또는 관리 서브넷에서 오나요?
  • 필요한 라우팅, DNS, NTP, 모니터링, 또는 애플리케이션 트래픽에 대한 명시적 허용이 있나요?
  • 안전한 테스트 소스에서 히트 카운터를 사용할 수 있나요?
  • 롤백 명령어와 활성 콘솔 또는 out-of-band 경로가 있나요?

방화벽이나 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

명확한 설명, 명시적 스위치포트 모드, 문서화된 네이티브 VLAN을 사용하세요. 라우티드 인터페이스의 경우, 링크 상태가 포워딩이 올바르다고 가정하기 전에 마스크, 피어 주소 지정, 라우팅 프로세스를 확인하세요.

변경 창 확인

실제 변경 사항과 일치하는 전후 확인을 사용하세요.

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에 의존하지 말고 계획된 테스트 소스의 히트 카운터를 비교하세요.

안티 패턴

  • 장치별 diff 없이 생성된 설정을 적용하는 것.
  • 변경 후 검사를 통과하기 전에 설정을 저장하는 것.
  • 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/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

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.

관련 스킬