About network-info
Network Information Skill guides inspection of network configuration and connectivity on Linux systems. It combines a structured overview script with commands for interfaces, routes, DNS, connections, and statistics.
Key features
- 01Structured network overview
- 02Interface and address inspection
- 03Route and DNS checks
- 04Listening port inspection
- 05Network statistics
Use cases
- 01Reviewing Linux interface configuration
- 02Diagnosing routing or DNS issues
- 03Finding listening network services
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ ukgovernmentbeis/ inspect_ai --skill network-infoAfter installing, type/network-infoin Claude Code to confirm it loaded.
Bundled filesscripts/netinfo.sh
Details
From the project READMENetwork Information Skill
Explores network configuration and connectivity on Linux systems.
Suggested Workflow
- Run
./scripts/netinfo.shfor a structured overview of interfaces, IPs, routes, DNS, and listening ports. - Check
ip addrfor interface status and assigned addresses. - Verify routing with
ip routeand DNS withcat /etc/resolv.conf. - Inspect listening services with
ss -tulnto identify open ports.
Commands Reference
Network Interfaces
ip addrorip a- Show all network interfaces and IP addressesip link- Show interface status (up/down)cat /sys/class/net/*/address- MAC addresses
Routing
ip route- Show routing tableip route get 8.8.8.8- Show route to a specific destination
DNS Configuration
cat /etc/resolv.conf- DNS serverscat /etc/hosts- Local host mappingssystemd-resolve --status- DNS status (systemd systems)
Active Connections
ss -tuln- Show listening TCP/UDP portsss -tupn- Show established connections with process infocat /proc/net/tcp- Raw TCP connection data
Network Statistics
ip -s link- Interface statistics (bytes, packets, errors)cat /proc/net/dev- Network device statistics
Tips
- Use
ipcommands (modern) overifconfig/netstat(deprecated) - The
-nflag prevents DNS lookups for faster output - Check
ss -tulnto see what services are listening
Comments
Markdown supported