Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

interface-state

БесплатноБез исполняемых скриптовНе проверен

Local interface, address, route, and neighbor state with iproute2. Use when viewing or configuring a host's own IPs, links, routes, or ARP/NDP cache — the…

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

Local Interface & Routing State (iproute2)

When to Use This Skill

Scenario Use this skill Alternative
Show a host's own IP addresses and interfaces Yes (ip -br a)
Check interface up/down state and MAC addresses Yes (ip -br link)
Inspect the routing table or which route a destination takes Yes (ip route, ip route get)
Read the ARP/NDP neighbor cache Yes (ip neigh)
See per-interface RX/TX counters, errors, drops Yes (ip -s link)
Script host network state as JSON Yes (ip -j … | jq)
Add/remove addresses, bring links up/down, edit routes Yes (root)
Watch link/addr/route changes live Yes (ip monitor)
Trace the route or diagnose latency to a remote host network-diagnostics (trippy, gping)
Find what process is listening on a port network-diagnostics (ss)
Enumerate hosts on the local L2 segment layer2-discovery (arp-scan, LLDP)
Discover which switch port a host is on layer2-discovery (lldpcli)
Scan open ports on a remote host network-discovery (RustScan, nmap)
Resolve DNS records for a domain dns-tools (dog, dig)
Monitor per-process bandwidth network-monitoring (bandwhich)
Load test an HTTP endpoint http-load-testing (oha)

Expert knowledge for inspecting and configuring a Linux host's own Layer 2/3 state — addresses, links, routes, and the neighbor cache — with the iproute2 ip command. This is the modern replacement for the entire net-tools suite: ifconfig, route, arp, and netstat -i/-r.

Platform note: ip (iproute2) is Linux-only. On macOS the equivalents are ifconfig, netstat -rn, route -n get, and arp -a; this skill targets Linux hosts and the many containers/VMs/servers you shell into.

iproute2 as the net-tools Replacement

Legacy (net-tools) Modern (iproute2) Shows
ifconfig ip addr / ip a Addresses per interface
ifconfig -a ip link / ip l Link state, MAC, MTU
route -n ip route / ip r Routing table
arp -a ip neigh / ip n ARP/NDP neighbor cache
netstat -i ip -s link Per-interface counters
netstat -g ip maddr Multicast group membership
ifconfig eth0 up ip link set eth0 up Bring interface up
ifconfig eth0 1.2.3.4/24 ip addr add 1.2.3.4/24 dev eth0 Assign address
route add … ip route add … Add a route

net-tools is unmaintained and blind to modern kernel features (multiple routing tables, policy rules, VRFs, network namespaces, IPv6 details). Prefer ip on any Linux host.

Global Flags — the Throughline

These modify any ip object and compose freely. The first three are the core habit:

Flag Long form Effect
-c -color Colorize output (state/scope highlighted)
-br -brief One tidy aligned line per entry (the columnar view)
-r -resolve Reverse-DNS resolve addresses
-j -json Machine-readable JSON (pipe to jq)
-p -pretty Pretty-print (pair with -j)
-s -stats Include statistics (repeat -s -s for more)
-4 / -6 Restrict to IPv4 / IPv6 only
# The compact colorized address table (memorable as the `ipa` shortcut)
ip -color -brief -resolve addr      # short: ip -c -br -r a

# Same treatment on other objects
ip -c -br link                      # interfaces: state + MAC, one line each
ip -c -br neigh                     # neighbor cache, columnar
ip -c route                         # colorized routing table

Every ip object accepts unambiguous abbreviations: ip a, ip l, ip r, ip n, ip ru (rule), ip m (maddr).

Read-Only Inspection

Addresses & Links

ip -br a                    # addresses, one line per interface
ip -br a show up            # only interfaces that are UP (filters noise)
ip -4 -br a                 # IPv4 only
ip a show eth0              # full detail for one interface
ip -br link                 # L2 view: state, MAC, MTU — no IPs
ip link show eth0           # one interface's link details

Routing

ip route                            # full routing table
ip route get 1.1.1.1                # WHICH route/interface a destination uses
ip route get 1.1.1.1 from 10.0.0.5  # source-based route selection
ip -6 route                         # IPv6 routing table
ip route show table all             # every routing table (policy routing)

ip route get answers "why is this traffic leaving the wrong interface?" — it reports the exact route, source address, and egress device the kernel picks.

Neighbors (ARP/NDP)

ip neigh                    # ARP (v4) + NDP (v6) cache
ip -br neigh                # columnar
ip neigh show dev eth0      # neighbors on one interface

Neighbor states: REACHABLE (confirm

Полный SKILL.md на GitHub

Установить interface-state в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(ip *)
Bash(bridge *)
Read
Grep
Glob
TodoWrite

Вложенные файлы

references/advanced-subsystems.mdreferences/mutating-commands.mdreferences/quick-reference.mdreferences/troubleshooting.md

FAQ

Что делает скилл interface-state?

Local interface, address, route, and neighbor state with iproute2. Use when viewing or configuring a host's own IPs, links, routes, or ARP/NDP cache — the ifconfig/route/arp replacement.

Как установить скилл interface-state?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл interface-state запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить interface-state с