Gather network configuration and connectivity details on Linux including interfaces, IP addresses, routing tables, DNS settings, and listening ports. Use when the user asks about IP configuration, network interfaces, connection issues, DNS resolution, open ports, routing, or network troubleshooting.
Explores network configuration and connectivity on Linux systems.
./scripts/netinfo.sh for a structured overview of interfaces, IPs, routes, DNS, and listening ports.ip addr for interface status and assigned addresses.ip route and DNS with cat /etc/resolv.conf.ss -tuln to identify open ports.ip addr or ip a - Show all network interfaces and IP addressesip link - Show interface status (up/down)cat /sys/class/net/*/address - MAC addressesip route - Show routing tableip route get 8.8.8.8 - Show route to a specific destinationcat /etc/resolv.conf - DNS serverscat /etc/hosts - Local host mappingssystemd-resolve --status - DNS status (systemd systems)ss -tuln - Show listening TCP/UDP portsss -tupn - Show established connections with process infocat /proc/net/tcp - Raw TCP connection dataip -s link - Interface statistics (bytes, packets, errors)cat /proc/net/dev - Network device statisticsip commands (modern) over ifconfig/netstat (deprecated)-n flag prevents DNS lookups for faster outputss -tuln to see what services are listening