You can also tell ping to exit after a specified number of ECHO_REQUEST packets, using the -c flag as shown. To test connectivity to another node, simply provide its IP or hostname, for example. It uses ICMP ( Internet Control Message Protocol) to communicate to nodes on a network. Ping ( Packet INternet Groper) is a utility normally used for testing connectivity between two systems on a network ( Local Area Network ( LAN) or Wide Area Network ( WAN)). Supported link modes: 10baseT/Half 10baseT/FullĪdvertised link modes: 10baseT/Half 10baseT/Full The example below shows the usage of ethtool and a command to view the parameters for the network interface. $ sudo ifquery eth0Įthtool is a command-line utility for querying and modifying network interface controller parameters and device drivers. Ifquery command used to parse the network interface configuration, enabling you to receive answers to query about how it is currently configured. Ifdown command disables a network interface, keeping it in a state where it cannot transfer or receive data. Ifup command actives a network interface, making it available to transfer and receive data. To show the current neighbor table in the kernel, type. To remove an assigned IP address from a network interface ( eth0), type. To temporarily assign IP Address to a specific network interface ( eth0), type. $ ip addr showġ: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 The following command will show the IP address and other information about a network interface. (Read our article “ What’s Difference Between ifconfig and ip Command” to learn more about it.) It is a replacement for ifconfig and many other networking commands. Ip command is another useful command-line utility for displaying and manipulating routing, network devices, interfaces. Note: Although ifconfig is a great tool, it is now obsolete (deprecated), its replacement is the ip command which is explained below. To deactivate or shut down a network interface, type. To assign an IP address to an interface, use the following command. To list all interfaces which are currently available, whether up or down, use the -a flag. TX packets:15793 errors:0 dropped:0 overruns:0 carrier:0 RX packets:15793 errors:0 dropped:0 overruns:0 frame:0 TX packets:125995 errors:0 dropped:0 overruns:0 carrier:0 RX packets:169854 errors:0 dropped:0 overruns:0 frame:0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 $ ifconfigĮnp1s0 Link encap:Ethernet HWaddr 28:d2:44:eb:bd:98 Here is an example to display the status of all active network interfaces.