Linux Network Testing
Tracert like in windows wit ICMP Echo request
#traceroute www.google.com –I
Show Routing Table
# nestat –nr
# route –n
Connection Statistic
# nestat –i
# mii-diag
Network Connections and Bind Ports
# netstat –a
Check DNS Settings
# dig www.google.com
# dig www.google.com mx
# nslookup www.google.com
I had to install the packages first to use this commands:
# apt-get install dnsutils
TCPDUMP
It is a very useful Network Sniffer for Linux. But first you need to install it:
# apt-get install tcpdump
Ex.
# tcpdump –nli eth0 port 80
# tcpdump –nli eth0 host 192.168.1.100 and port 80
# tcpdump –nli eth0 host 192.168.1.00 and not port 22
# tcpdump –nli eth0 src host 192.168.1.00 and not port 22