The following network troubleshooting commands will vary slightly in syntax depending on which operating system is used. Some operating systems will provide more options and some less. Please use the following information as a guide and the syntax presented with "a grain of salt".
Use this command to see the IP to MAC address translation table if you are having problems connecting to other network hosts. It is a dynamic cache which updates every 120 seconds. ARP stands for Address Resolution Protocol (ARP).
arp - a address resolution protocol host name (IP address) at (ethernet address)
The ping command is the most versatile network troubleshooting command in Unix. Use it to verify that your TCP/IP network services are operating correctly. The ping command allows you to determine that the:
The following is a step by step guide in determining if your network stack is configured properly:
The network status command netstat displays status information about the network interfaces on the host machine and it can display routing table information.
The ifconfig command is used to display the local interface configuration (winipcfg for Windows) and to modify the configuration. Local interfaces can be Ethernet network cards, modems, etc..
ifconfig (interface name) (down/up/nothing) nothing gives status (interface name): flags - 63 (up, broadcast, notra, Running) inet (ip address) netmask FFFFFF00 broadcast 126.96.36.199
The route command allows you to add static routes to the routing tabling.
route (-n) (add/delete/nothing) (dest IP address/subnet/DEFAULT) (local IP address) (hop)
traceroute (tracert in Windows)
Traceroute displays the routers that are passed through to reach the destination.
traceroute "IP address or domain name" Tracing route to www.apllejcok.com [192.168.1.64] over a maximum of 30 hops: 1 116 ms 134 ms 112 ms ts10.dshark.com [192.168.128.20] 2 124 ms 112 ms 114 ms bl1.poufe.com [192.168.130.1] 3 122 ms 118 ms 117 ms fifo.amalag.com [192.168.64.2] 4 130 ms 156 ms 132 ms dfg.apllejcok.com [192.168.1.1]
If this page has helped you, please consider donating $1.00 to support the cost of hosting this site, thanks.