

To set the new IP address of the network interface which you have obtained from your network administrator, use the ping command and arp command with the -s flag (create an ARP entry). The Ethernet connection to the computer has been made correctly, and all hubs, routers, etc. The address in the ping command is correct. If you cannot “ping” the computer, check the following: If you press Ctrl-C, you may see something like this:ģ packets transmitted, 0 packets received,Īgain, the exact wording of the message you see may differ from this, depending on your operating system. If the computer is unreachable, you may see something like this: If the computer is reachable, you can see the following result (the exact form of the message depends on your operating system, and the time may vary):Ħ4 bytes from 192:168:100:101:icmp_seq=0. Check that the computer is reachable by “pinging” it from the command line: If there is no gateway, enter the IP address of your computer as a gateway address.Īssume that you want to reach to the computer having the IP address “192.168.100.101”. If there is a server or a router which acts as a gateway, enter the address of the server or the router. Set the default gateway to the host on which you are setting up the network interface. ICMP, however, is used on the Internet layer, meaning that there is no such thing as “ pinging a MAC address“.First, you need to check that the computer can reach to other computers in the same segment, as follows: However, if you learnt about the OSI model you probably know that MAC addresses are used on the layer two of the OSI model (data-link layer). When users refer to “ping”, they actually refer to the ICMP protocol which is a protocol used in order to diagnose and troubleshoot issues happening over a network. This article was named this way because many developers and engineers are searching for it this way, but this is partially correct. To be extremely clear, there is no such thing as “pinging” a MAC address. $ sudo apt-get install arpingįinally, when the command is properly installed, you will be able to ping the MAC address correctly.Ĭongratulations, you were able to successfully ping a MAC address on Linux! Difference between ARP and ICMP

When you have administrator privileges, simply execute the “apt-get install” command and install the arping utility. If you are not sure about how you can get sudo privileges on Linux, there are many different tutorials that you can use for Debian or CentOS. In order to install it, you need sudo privileges. Note that the arping command may not be installed by default on your system, you will need to install it. By pinging the default gateway of this local network, we were able to determine that the MAC address 00:00:5E:00:01:6E is up and running.
