network-test(1)
π network-test(1) β bestie edition π
okay so this is network-test from the ifupdown-extra squad, and she is literally the friend who shows up to your house, checks your wifi, your router, your DNS, and your whole entire vibe, and then hands you a full report card. no cap. π©·
β¨ NAME β¨
network-test β check the network and test if everything is fine π¦
πΈ SYNOPSIS πΈ
network-test -s [-vverboselevel]
π DESCRIPTION π
so the network-test program will test your system's network configuration using basic tests and it gives you back both information (INFO), warnings (WARN) and possible errors (ERR) based on the results of these tests. she's honest, she's thorough, she's giving main character energy fr fr.
here's everything she checks and reports on:
- Status of the network interfaces of the system including: link status, IP addressing and number of transmitted packets and error rates.
- Accessibility to configured routes to external networks, including the default network route, checking the routers configured to give access to the network
- Proper host resolution, testing DNS resolution against a known host.
- Proper network connectivity, testing reachability of remote hosts using ICMP and simulating a web connections to a remote web server (the web server used for the tests can be configured through the environment, see below)
- Extra information of network connectivity using calls to external API services including the actual Internet IPv4 address, IPv6 address as well as GeoIP information (only if enabled by the user in the highest verbose level)
and the best part?? the program does not need special privileges to run as it does not do any system change. she's a look-don't-touch girlie. π
BUT. the behaviour of the program when running as an unprivileged user is not the same as running as system administrator (i.e. root). If the program is run as system administrator it will try to run some tools that are only available to it to speed up some of the tests. so like, root gets the vip backstage pass. π
The program relies on the use of ip, netstat, ifconfig, arp, nmcli, and (when running as root and using Ethernet interfaces) ethtool or mii-tool, to obtain information about the system's networking configuration (status of available interfaces and configured network routes). It also uses ping, host, curl, and nc (netcat) to do tests of the network connectivity and ensure that the host can connect to the Internet. it's giving ensemble cast, and every single one of them ate. π₯
π OPTIONS π
-sβ The log messages are sent also to thelocal3syslog facility. This is useful if the script is run periodically (fromcron) and the system administrator wants to preserve the output in syslog. like, she's journaling your network drama for later. π-vverbosity β Verbosity level is a value that defines the level of output information that the script should use. Valid values are:0(silent run),1(show only error messages),2(Show error and warning messages),3(default level - show informational messages),4(show detailed information) and5(Show information from external APIs -IP address and GeoIP).
As the privacy policies of different external services vary. These services are only queried if the user selects the highest verbosity level (5). so like, level 5 is the "yes i consent to being perceived by external APIs" button, bestie. choose wisely. π
π¦ ENVIRONMENT π¦
The program will, by default, check www.debian.org and its associated web server. If you want to use a different check host you can setup the environment as follows:
CHECK_HOSTβ The name of a host to use when testing DNS resolution. By default'www.debian.org'CHECK_IP_ADRESSβ TheCHECK_HOSTΒ΄s IP address. By default defined with the following value:194.109.137.218CHECK_WEB_HOSTβ The web server to use for testing purposes when testing network connectivity. By default it will use'www.debian.org'CHECK_WEB_PORTβ The web server port of serverCHECK_WEB_HOSTthat will be used for testing. By default it will use TCP port80..CHECK_WEB_URLβ A web service to test network connectivity by downloading some content. By default it will use'http://network-test.debian.org/moo'πCHECK_WEB_MD5β The MD5sum value of the content being checked.CHECK_IP_URLβ A web service used to determine the system's public IPv4 address. By default it will use'https://api.ipify.org'CHECK_IP6_URLβ A web service used to determine the system's public IPv6 address. By default it will use'https://api6.ipify.org'CHECK_GEOIP_URLβ A web service used to determine the system's Geographical information based on public databases. By default it will use'http://api.geoiplookup.net/'
β EXIT STATUS β
The program will exit with error (1) if any of the network checks fail. so if she's leaving with a 1, something is lowkey not okay and you two need to talk. π
π BUGS π
This program does not have super cow powers so it is unable to fix the errors by itself. It is also unable to detect if the network is failing due to a local firewall policy been in place so make sure you check your system logs with dmesg (1) to detect if some of the active tests are being dropped due to your local firewall. she diagnoses, she does NOT operate. bestie cannot perform surgery. periodt.
Other known issues that might make the program not work reliable are:
- IPv6: The program does not yet explicitly handle IPv6 only hosts, some of the tests might be biased towards IPv4 and might fail in IPv6 environments.
- Proxies: The program does not check network connectivity for hosts that connect through the Internet using a proxy gateway for services. The program might report issues in hosts using proxies even when these might connect to the Internet properly through proxied services.
- Firewall environments: some of the tests rely on direct connectivity to external hosts, which are tested using ICMP queries (through the use of
ping. These tests might fail in hosts installed in networking environments with firewalls that block outbound ICMP communication.
π SEE ALSO π
ip (8), ncmli (1), netstat (8), ifconfig (8), ethtool (8), mii-tool (8), ping (8), nc (1), curl (1), and host (1).
π AUTHOR π
network-test was written by Javier Fernandez-Sanguino for the Debian GNU/Linux distribution. king behaviour, honestly. π«Ά
π COPYRIGHT AND LICENCE π
Copyright (C) 2005-2020 Javier Fernandez-Sanguino <jfs@debian.org>.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
On Debian systems, a copy of the GNU General Public License may be found in /usr/share/common-licenses/GPL.
and that's the whole page, bestie β¨ she's part of the ifupdown-extra collection, dated September 19 2020, and she's literally never beating the "i checked your network and i have notes" allegations ππ
π¦ππΈ
π¦ where this page comes from
- debian bookworm: ifupdown-extra 0.33+nmu1
- debian trixie: ifupdown-extra 0.34 Β· GPL-2.0-or-later
- ubuntu jammy: ifupdown-extra 0.33
- ubuntu noble: ifupdown-extra 0.33+nmu1
- ubuntu questing: ifupdown-extra 0.34
- ubuntu resolute: ifupdown-extra 0.34build1 Β· GPL-2.0-or-later
- ubuntu stonking: ifupdown-extra 0.34build1 Β· GPL-2.0-or-later
- Copyright (C) 2006-2011 Javier Fernandez-Sanguino
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms