Linux Network Diagnostic Commands

Oct 05, 2013, by admin

Hi all hope you all are enjoying the weekend now we are going to see Linux Network Diagnostic Commands

telnet
Telnet is software that allows users to remotely access another computer such as a server, network device, or other computer. With telnet users can connect to a device or computer, manage a network device, setup a device, transfer files, etc. It also can be used as a diagnostic tool to check connectivity to certain ports on a server, such as 80 for HTTP content, 25 for SMTP etc.

Be warned passwords sent over telnet are plaintext.

Telnet is obsoleted by netcat as a diagnostic tool.

www.computerhope.com/software/telnet.htm#03

nc
netcat: a telnet replacement with many features such as using TCP or UDP, the ability not to send telnet terminal commands, and without the infamous telnet EOF problem.

http://netcat.sourceforge.net/

traceroute
print the route packets take to network host

www.rt.com/man/traceroute.8.html

tcptraceroute
print the route packets take to network host using TCP packets rather than
standard ICMP Echo Requests and Replies, which may be blocked or severely de prioritised on networks.

http://michael.toren.net/code/tcptraceroute/

ping
send ICMP ECHO_REQUEST packets to network hosts

www.rt.com/man/ping.8.html

netstat
show network status

www.rt.com/man/netstat.1.html

ifconfig
configure a network interface

www.rt.com/man/ifconfig.8.html

iwconfig
configure a wireless network interface

http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html

route
show / manipulate the IP routing table

www.die.net/doc/linux/man/man8/route.8.html

arp
The arp program displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol.

http://spectral.mscs.mu.edu/NetworksClass/Materials/arp.html#man

dig
Similar to nslookup but gives you more control over the query creation.

http://www.linuxdevcenter.com/linux/cmd/cmd.csp?path=d/dig

host
A less verbose DNS lookup tool than dig for quick checks of DNS functionality

http://www.die.net/doc/linux/man/man1/host.1.html

ip addr list dev eth0

Found this in the Release notes for fedora core 5. Printout show “Carrier Fail” good for layer 1 connectivity check.

ethtool
Configures and displays various layer 1 and 2 parameters for Ethernet interfaces (more than what you get with ifconfig)

http://sourceforge.net/projects/gkernel/ (packaged and available in most distros)