name: linux-networking
description: Linux networking engineering skill for kernel network stacks, iproute2, network managers (systemd-networkd, NetworkManager), routing tables, policy routing, nftables firewalling, and network namespaces. Covers interface states, non-concurrency invariants between network managers, DNS resolution via systemd-resolved, veth pair sandboxes, and structured 7-stage OSI-aligned network troubleshooting. Use when diagnosing network connectivity, configuring firewalls, setting up network namespaces, or debugging DNS vs routing failures.
license: Apache-2.0
compatibility: Requires Linux environment with iproute2, nftables, and systemd network tools.
metadata:
author: Eshan Roy
version: "0.1.0"
claude_context: "fork"
claude_agent: "general"
Linux Networking Engineering
The linux-networking skill provides specialist capabilities for analyzing, configuring, and troubleshooting the Linux networking stack, iproute2 interfaces, policy routing, nftables firewalls, network managers, and isolated network namespaces.
1. Operating Principles & Invariants
- Manager Non-Concurrency Invariant: Never run
NetworkManager and systemd-networkd concurrently on the same interface. Dual managers produce race conditions, route flapping, and conflicting DHCP leases.
- Layered Diagnostic Discipline: Follow the 7-stage OSI diagnostic sequence (Carrier $\to$ IP $\to$ Route $\to$ DNS $\to$ Firewall $\to$ Socket $\to$ Path). Never blame DNS without verifying IP routing first.
- Never Expose Secrets in Reports: Redact Wi-Fi pre-shared keys, WireGuard private keys, and authentication credentials from diagnostic command outputs.
- Safety Tier Gating: Modifying host IP addresses, altering routing tables, flushing firewall rules (
nft flush ruleset), and toggling network interfaces are Tier 3 operations requiring explicit human authorization. Use isolated network namespaces for safe testing.
2. Intent Classification & Workflow Routing
flowchart TD
REQ["Networking Request"] --> CLASS{"Classify Network Task"}
CLASS -->|Connectivity / DNS Failure| DIAG["1. Network Diagnostics\n(Carrier check, ip route, resolvectl, ss -tulpn)"]
CLASS -->|Routing & Gateways| ROUTE["2. Routing Engineering\n(ip route, ip rule, policy routing tables, metric)"]
CLASS -->|Firewall & Packet Filter| FW["3. Firewall Engineering\n(nftables, tables, chains, NAT, drop policies)"]
CLASS -->|Manager Configuration| MGR["4. Manager Configuration\n(systemd-networkd, NetworkManager, resolved, iwd)"]
CLASS -->|Virtual / Sandbox Net| NS["5. Namespaces & Virtual Net\n(ip netns, veth pairs, bridge, wireguard tunnels)"]
DIAG --> EXEC["Execute Networking Workflow"]
ROUTE --> EXEC
FW --> EXEC
MGR --> EXEC
NS --> EXEC
3. The 7-Stage Diagnostic Workflow
- Layer 1 (Carrier): Verify physical/virtual link carrier status with
ip link show and ethtool.
- Layer 2 (Neighbor): Check ARP/NDP resolution with
ip neigh show.
- Layer 3 (Addressing): Check IP assignment and subnet mask with
ip -br addr show.
- Layer 3 (Routing): Verify default gateway and route selection with
ip route get <destination>.
- Layer 4 (Sockets): Inspect listening ports and socket state with
ss -tulpn.
- Layer 4 (Firewall): Check
nft list ruleset for drop policies or missing accept rules.
- Layer 7 (Name Resolution): Query DNS reachability with
resolvectl status and resolvectl query.
4. Cross-Specialist Coordination
| Task |
Coordinating Specialists |
Interaction |
| Network-activated service |
linux-networking + systemd-engineering |
linux-networking configures interface; systemd-engineering wires Type=notify / sockets. |
| NIC driver failure |
linux-networking + driver-engineering |
linux-networking checks carrier/ethtool; driver-engineering diagnoses PCI/DMA faults. |
5. Authoritative References Directory
- Networking Architecture & Stack
- Network Configuration & Managers
- Routing & Policy-Based Routing
- nftables & Firewall Engineering
- Network Namespaces & Virtual Networking
- Network Diagnostics & Troubleshooting
- Safety Policy
1---2name: linux-networking3description: Linux networking engineering skill for kernel network stacks, iproute2, network managers (systemd-networkd, NetworkManager), routing tables, policy routing, nft4---5---6name: linux-networking7description: Linux networking engineering skill for kernel network stacks, iproute2, network managers (systemd-networkd, NetworkManager), routing tables, policy routing, nftables firewalling, and network namespaces. Covers interface states, non-concurrency invariants between network managers, DNS resolution via systemd-resolved, veth pair sandboxes, and structured 7-stage OSI-aligned network troubleshooting. Use when diagnosing network connectivity, configuring firewalls, setting up network namespaces, or debugging DNS vs routing failures.8license: Apache-2.09compatibility: Requires Linux environment with iproute2, nftables, and systemd network tools.10metadata:11 author: Eshan Roy12 version: "0.1.0"13 claude_context: "fork"14 claude_agent: "general"15---1617# Linux Networking Engineering1819The `linux-networking` skill provides specialist capabilities for analyzing, configuring, and troubleshooting the Linux networking stack, `iproute2` interfaces, policy routing, `nftables` firewalls, network managers, and isolated network namespaces.2021---2223## 1. Operating Principles & Invariants24251. **Manager Non-Concurrency Invariant**: Never run `NetworkManager` and `systemd-networkd` concurrently on the same interface. Dual managers produce race conditions, route flapping, and conflicting DHCP leases.262. **Layered Diagnostic Discipline**: Follow the 7-stage OSI diagnostic sequence (Carrier $\to$ IP $\to$ Route $\to$ DNS $\to$ Firewall $\to$ Socket $\to$ Path). Never blame DNS without verifying IP routing first.273. **Never Expose Secrets in Reports**: Redact Wi-Fi pre-shared keys, WireGuard private keys, and authentication credentials from diagnostic command outputs.284. **Safety Tier Gating**: Modifying host IP addresses, altering routing tables, flushing firewall rules (`nft flush ruleset`), and toggling network interfaces are Tier 3 operations requiring explicit human authorization. Use isolated network namespaces for safe testing.2930---3132## 2. Intent Classification & Workflow Routing3334```mermaid35flowchart TD36 REQ["Networking Request"] --> CLASS{"Classify Network Task"}3738 CLASS -->|Connectivity / DNS Failure| DIAG["1. Network Diagnostics\n(Carrier check, ip route, resolvectl, ss -tulpn)"]39 CLASS -->|Routing & Gateways| ROUTE["2. Routing Engineering\n(ip route, ip rule, policy routing tables, metric)"]40 CLASS -->|Firewall & Packet Filter| FW["3. Firewall Engineering\n(nftables, tables, chains, NAT, drop policies)"]41 CLASS -->|Manager Configuration| MGR["4. Manager Configuration\n(systemd-networkd, NetworkManager, resolved, iwd)"]42 CLASS -->|Virtual / Sandbox Net| NS["5. Namespaces & Virtual Net\n(ip netns, veth pairs, bridge, wireguard tunnels)"]4344 DIAG --> EXEC["Execute Networking Workflow"]45 ROUTE --> EXEC46 FW --> EXEC47 MGR --> EXEC48 NS --> EXEC49```5051---5253## 3. The 7-Stage Diagnostic Workflow54551. **Layer 1 (Carrier)**: Verify physical/virtual link carrier status with `ip link show` and `ethtool`.562. **Layer 2 (Neighbor)**: Check ARP/NDP resolution with `ip neigh show`.573. **Layer 3 (Addressing)**: Check IP assignment and subnet mask with `ip -br addr show`.584. **Layer 3 (Routing)**: Verify default gateway and route selection with `ip route get <destination>`.595. **Layer 4 (Sockets)**: Inspect listening ports and socket state with `ss -tulpn`.606. **Layer 4 (Firewall)**: Check `nft list ruleset` for drop policies or missing accept rules.617. **Layer 7 (Name Resolution)**: Query DNS reachability with `resolvectl status` and `resolvectl query`.6263---6465## 4. Cross-Specialist Coordination6667| Task | Coordinating Specialists | Interaction |68|:---|:---|:---|69| Network-activated service | `linux-networking` + `systemd-engineering` | `linux-networking` configures interface; `systemd-engineering` wires `Type=notify` / sockets. |70| NIC driver failure | `linux-networking` + `driver-engineering` | `linux-networking` checks carrier/ethtool; `driver-engineering` diagnoses PCI/DMA faults. |7172---7374## 5. Authoritative References Directory7576- [Networking Architecture & Stack](references/networking-architecture.md)77- [Network Configuration & Managers](references/network-configuration.md)78- [Routing & Policy-Based Routing](references/routing-and-policy.md)79- [nftables & Firewall Engineering](references/nftables.md)80- [Network Namespaces & Virtual Networking](references/namespaces-and-virtualization.md)81- [Network Diagnostics & Troubleshooting](references/troubleshooting.md)82- [Safety Policy](../../references/safety-policy.md)