# ifconfig
View All Network Setting
# ifconfig -a
Display Information of All Network Interfaces
# ifconfig eth0 up | # ifup eth0
# ifconfig eth0 down | # ifdown eth0
How to Enable/Disable a Network Interface?
Ping the host to see if its alive
# ping 0 | # ping localhost | # ping 127.0.0.1Increase or Decrease the Time Interval Between Packets# ping -i 5 google.com
Send N packets and stop # ping -c 4 google.com
Note: This command can be use to see the IP address of the host
# ping -c 4 -q google.com Print Only Ping Command Summary Statistics
# ping -w 5 localhostTimeout
Commands:
# traceroute server-ip-address
# traceroute 202.54.1.2
# traceroute google.com
# traceroute google.com 70
# traceroute -n google.com
reduce DNS lookup and gives result faster
mtr command:It is the combine of ping and traceroute
# dig hostname +nocomments +noquestion +noauthority +noadditional +nostats OR # dig hostname +noall +answer
This command will return only the A record.
# dig yipl.com.np MX +noall +answer # dig -f names.txt +noall +answer