金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

network-info

network-info 是面向效率工具的 Agent Skill,来自 UKGovernmentBEIS/inspect_ai。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Gather network configuration and connectivity information including interfaces, routes, and DNS

SKILL.md

下载 MD ↓
namenetwork-info
descriptionGather network configuration and connectivity information including interfaces, routes, and DNS

Network Information Skill

Use this skill to explore network configuration and connectivity on Linux systems.

Quick Start

Run the included script for a network overview:

./scripts/netinfo.sh

Manual Commands

Network Interfaces

  • ip addr or ip a - Show all network interfaces and IP addresses
  • ip link - Show interface status (up/down)
  • cat /sys/class/net/*/address - MAC addresses

Routing

  • ip route - Show routing table
  • ip route get 8.8.8.8 - Show route to a specific destination

DNS Configuration

  • cat /etc/resolv.conf - DNS servers
  • cat /etc/hosts - Local host mappings
  • systemd-resolve --status - DNS status (systemd systems)

Active Connections

  • ss -tuln - Show listening TCP/UDP ports
  • ss -tupn - Show established connections with process info
  • cat /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 ip commands (modern) over ifconfig/netstat (deprecated)
  • The -n flag prevents DNS lookups for faster output
  • Check ss -tuln to see what services are listening

来源:UKGovernmentBEIS/inspect_ai · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本