/linux:linux-network-adminfrom linux
Diagnoses and configures Linux networking: interfaces, routes, client DNS, VLANs, and NTP via Netplan or NetworkManager/nmcli.
Ships in linux. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Two-family skill. Diagnostics (ip, ss, ping, dig, resolvectl,
traceroute) are identical on both families. The difference is persistent
configuration: Debian/Ubuntu use Netplan; the RHEL family (Fedora, RHEL,
CentOS Stream, Rocky, Alma, Oracle) uses NetworkManager / nmcli —
Netplan does not exist on RHEL. Full detail:
references/networkmanager-reference.md.
| Concept | Debian/Ubuntu | RHEL family |
|---|---|---|
| Persistent config tool | Netplan (/etc/netplan/*.yaml) | NetworkManager (nmcli) |
| Config storage | /etc/netplan/ | /etc/NetworkManager/system-connections/ |
| Set static IP | edit YAML | nmcli con mod <c> ipv4.addresses … |
| Apply | netplan try / netplan apply | nmcli con up <c> |
| Set DNS | nameservers: in YAML | nmcli con mod <c> ipv4.dns "…" |
| Diagnostics (ip/ss/dig) | identical | identical |
| Time sync daemon | systemd-timesyncd | chronyd (chronyc sources) |
Over SSH, RHEL has no netplan try auto-rollback — schedule a safety reset
(see the reference). In sk-* scripts gate config tooling on the detected
family via common.sh. See
references/networkmanager-reference.md
and docs/multi-distro/plan.md.
linux-firewall-ssl.linux-dns-server.| Artefact | Source | Required? | If absent |
|---|---|---|---|
| Symptom, source host/interface, destination/address/port, and expected path | Operator and service design | required | Return a discovery checklist; do not guess topology. |
| Current addresses, links, routes, resolver, listeners, and persistent config | Target host | required for diagnosis/change | Mark the respective layer not assessed. |
| Console/recovery access and downtime authority | Change owner | required for persistent remote change | Stop before applying Netplan or NetworkManager changes. |
ping. Fix: test DNS, route, neighbour, TCP/UDP port, listener, and application path as relevant.linux-firewall-ssl.| Artefact | Consumer | Acceptance condition |
|---|---|---|
| Layered diagnosis or approved config change | Network/system operator | Identifies failing layer with observed link, route, DNS, port, and time evidence. |
| Recovery-safe change record | On-call operator | Contains before/after config, validation, rollback trigger, and console path. |
| End-to-end verification | Service owner | Expected name, address, route, port, and application response work from the intended source. |
references/netplan-reference.mdreferences/networkmanager-reference.mdreferences/diagnostics-tree.mdreferences/appliance-vlan-config.md —
appliance-side VLAN config (UniFi, pfSense/OPNsense, MikroTik) — the
switch/router/AP counterpart to this skill's own host-side netplan VLAN
coverage.| Artefact | Acceptance condition |
|---|---|
| Network-change evidence | Includes before/after link, address, route, resolver state, targeted probes, config validation, rollback readiness, and end-to-end checks. |
Diagnosis defaults to read-only. Read/execute access is required for host inspection. Persistent address, route, VLAN, DNS, or time changes require explicit authority and a recovery path; firewall and remote-provider changes require separate scope.
Without host access, provide a layer-by-layer probe plan and qualify all conclusions. Without console or timed rollback, do not apply remote persistent changes that could sever access.
| Choice | Action | Failure or risk avoided |
|---|---|---|
| Link/address missing | Fix interface ownership/config first | Misdiagnosing higher layers. |
| Route and IP work but name fails | Inspect resolver path | Unnecessary route/firewall edits. |
| Host reaches destination but service port fails | Inspect listener/path, then firewall skill | Treating application refusal as routing failure. |
For a remote AlmaLinux host that lost a static route after reboot, capture ip and nmcli state, identify the owning connection, prepare a timed rollback, add the persistent route, reactivate safely, then prove the route, destination port, and application response before cancelling rollback.
This skill is self-contained. Diagnostic commands below (ip, ss,
dig, ping, mtr, resolvectl) are standard on both families.
Persistent config differs by family: netplan on Debian/Ubuntu, nmcli
(NetworkManager) on the RHEL family — see
references/networkmanager-reference.md.
Time sync is systemd-timesyncd or chrony (chronyc) depending on the
distro default. The sk-* scripts in the Optional fast path section are
convenience wrappers — never required.
This skill owns everything about how a server talks to the network below the firewall and above the application layer: interfaces, addresses, routes, name resolution from the server's perspective, and time sync.
It does not own:
linux-firewall-ssl.linux-dns-server.linux-mail-server.linux-troubleshooting.Informed by Linux Network Administrator's Guide (translated from legacy
ifconfig/route to modern ip/ss) and the Canonical Ubuntu Server
Guide (netplan, systemd-networkd, systemd-resolved).
references/appliance-vlan-config.md.linux-firewall-ssl.linux-firewall-ssl.linux-mail-server./etc/network/interfaces on a modern Ubuntu server. All changes go
through /etc/netplan/*.yaml.sudo netplan try before sudo netplan apply. try has a
120s revert timeout — if connectivity breaks, it rolls back.systemd-resolved. /etc/resolv.conf is a symlink —
never edit it directly; set resolvers via netplan's nameservers.addresses.ip addr not ifconfig. ss -tulnp not
netstat. ip route not route -n. resolvectl not nslookup for
systemd-resolved state.netplan generate (parse), netplan try (apply with revert), then re-read the specific interface/route/DNS
state that changed and compare to the pre-change baseline before
confirming. This is the same discipline
cisco-ios-patterns
applies to router/switch changes — capture state, apply the smallest
change, re-read and diff, only then persist.ip -c addr # all interfaces + addresses
ip -c link # link state, MAC, MTU
ip -c route # routing table
ip route get 8.8.8.8 # which iface will this go out?
ss -tulnp # listening ports with owning process
ss -tan state established # active connections
nmcli device status # if NetworkManager is in use
resolvectl status # DNS resolvers per link
resolvectl query example.com # resolve via systemd-resolved
ping -c 3 8.8.8.8 # L3 to the public internet
ping -c 3 $(ip route | awk '/default/{print $3; exit}') # gateway
mtr -c 10 --report example.com # path + loss + latency
traceroute example.com # hop-by-hop (apt install traceroute)
# TCP reachability without nmap:
(echo > /dev/tcp/example.com/443) 2>/dev/null && echo OK || echo FAIL
# UDP reachability (requires nc):
nc -u -z -v example.com 53
# Resolver 1: what systemd-resolved returns (what applications actually see)
resolvectl query example.com
resolvectl query -p dns -t A example.com
# Resolver 2: bypass the local resolver — query a public one directly
dig @1.1.1.1 example.com +short
dig @8.8.8.8 example.com +short
# Reverse DNS:
dig -x 8.8.8.8 +short
# If 1 and 2 disagree, your local resolver (systemd-resolved or /etc/hosts)
# is the problem, not upstream DNS.
sudo nano /etc/netplan/01-linux-skills.yaml
sudo chmod 600 /etc/netplan/*.yaml # contains secrets for wifi
# Generate backend config without applying:
sudo netplan generate
# Try with 120s auto-revert — use this over SSH:
sudo netplan try
# Apply permanently (use only after `try` succeeds):
sudo netplan apply
Full netplan YAML syntax, 8 worked examples, renderers, policy routing,
bonds, bridges, VLANs — see references/netplan-reference.md.
# chrony (Ubuntu Server default):
chronyc tracking # current offset, stratum, leap
chronyc sources -v # peers, reachability
chronyc makestep # force immediate step correction
# systemd-timesyncd (Ubuntu Desktop default):
timedatectl show-timesync --all
timedatectl status
Walk the diagnostics tree in references/diagnostics-tree.md.
Condensed version:
# 1. Link up?
ip -c link | grep -E "state (UP|DOWN)"
# 2. Address assigned?
ip -c addr show dev <iface>
# 3. Default route present?
ip route | grep default
# 4. Gateway reachable?
ping -c 3 $(ip route | awk '/default/{print $3; exit}')
# 5. External reachable by IP (skips DNS)?
ping -c 3 1.1.1.1
# 6. DNS resolving?
resolvectl query example.com
dig @1.1.1.1 example.com +short # bypass local resolver to confirm
# 7. If 5 works but 6 doesn't → DNS problem. Check `resolvectl status`
# and `cat /run/systemd/resolve/resolv.conf`.
# 8. If 4 works but 5 doesn't → gateway or upstream ISP problem.
# 9. If 3 is missing → fix default route via netplan.
# Local listen check (is it OUR firewall or NOT OUR box?):
ss -tulnp | grep ':<port>'
# TCP handshake from this server:
(echo > /dev/tcp/db.internal/5432) 2>/dev/null && echo OK || echo FAIL
# Path investigation if it fails:
mtr -c 10 -T -P 5432 --report db.internal # TCP mtr to the exact port
traceroute -T -p 5432 db.internal
# From the server, check the remote's open ports if you have access:
ssh [email protected] 'ss -tulnp | grep 5432'
# 1. Edit netplan (see references/netplan-reference.md for VLAN stanza)
sudo nano /etc/netplan/01-linux-skills.yaml
# 2. Validate and dry-run
sudo netplan generate # parses YAML; errors here = bad file
sudo netplan try # apply with 120s revert
# 3. Verify the new interface:
ip -c link show dev vlan100
ip -c addr show dev vlan100
# 4. Confirm to persist (type Enter in the `try` session)
chronyc tracking # look at System time offset
chronyc sources -v # any peers reach 0?
chronyc makestep # immediate step (use once, then investigate)
# If all sources are unreachable, check:
ss -tunap | grep 123 # NTP port 123/udp
ping -c 3 pool.ntp.org
sudo systemctl status chrony
journalctl -u chrony -n 50 --no-pager
/etc/resolv.conf is a symlink. Never edit it. Changes vanish on
next boot. Always configure via netplan nameservers.addresses or
systemd-resolved drop-ins.netplan apply can cut your SSH. Use netplan try first. If you're
desperate and have no console, run this to auto-revert:
sudo timeout 60 bash -c 'netplan apply; sleep 55; ip link set <iface> down'.
Ugly but survives a bad apply.resolvectl status shows exactly which resolver is consulted for which
domain.ifconfig still "works" on old servers. It's provided by
net-tools and frozen. Don't rely on anything it reports for bonded,
VLAN, or aliased interfaces — it truncates silently.routing-policy rules (see the reference file). The
symptom is "ping works, TCP doesn't" or asymmetric routing.references/netplan-reference.md —
complete netplan YAML syntax and 8 worked examples.references/networkmanager-reference.md —
NetworkManager / nmcli persistent config for the RHEL family.references/diagnostics-tree.md —
symptom-driven decision tree for networking problems.ifconfig/route
to ip.netplan(5), ip(8), ss(8), resolvectl(1), chronyc(1).No wrapper commands for this skill are shipped in this checkout. Use the native procedures above; planned wrappers remain in the script inventory until their source files are present.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub peterbamuhigire/linux-skills --plugin linux45 skills in this plugin
/cisco-ios-patternsUse when reading or reviewing Cisco IOS/IOS-XE configuration, selecting read-only show commands, or planning and verifying bounded router or switch configuration work. Not for Linux host networking, bulk SSH automation, or config preflight parsing; route those to linux-network-admin, netmiko-ssh-automation, or network-config-validation./linux-access-controlUse when creating, revoking, or auditing Linux users, groups, SSH keys, sudo/wheel access, PAM settings, SELinux user mappings, or file permissions. Use linux-secrets for credential material and linux-server-hardening for broader host policy./linux-archive-integrityUse when creating, signing, encrypting, listing, comparing, or restoring metadata-preserving tar archives on Debian/Ubuntu or RHEL-family hosts. Covers ACLs, xattrs, incrementals, and verification; use linux-rsync-sync for file-tree mirrors.Other plugins' skills for the same job