搜索

PythonReactSEOPDF
GitHub Skill

network-info

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

UKGovernmentBEIS☆ 1,711 仓库 Stars381 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

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

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-30
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!