首页/ AI 技能 / @skilllib/skill-2117939930272416533
Skill站外收录 @skilllib/skill-2117939930272416533

network-info

提供对 Linux 系统网络状态的全面诊断能力,涵盖接口配置、路由路径、DNS 设置、活跃连接及流量统计等维度,支持快速定位连通性问题与网络服务异常。

0.0 (0) 10 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# 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: ```bash ./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

评论 0

还没有评论,来抢沙发。