basic TROUBLESHOOTING on Internet INTERRUPTION!!



basic TROUBLESHOOTING on Internet INTERRUPTION!!

0 0


KSW


On Github santosh-neupane / KSW

basic TROUBLESHOOTING on Internet INTERRUPTION!!

Santosh Neupane

System Admin

Internet!!

Connected ??

Basic commands that assure the Connection are :

  • ifconfig
  • ping
  • traceroute
  • mtr
  • dig

ifconfig uses:

# 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 uses:

Ping the host to see if its alive

# ping 0 | # ping localhost | # ping 127.0.0.1

Increase 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 uses:

# ping -c 4 -q google.com Print Only Ping Command Summary Statistics

# ping -w 5 localhostTimeout

traceroute uses:

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

# mtr hostname| IP

mtr command:It is the combine of ping and traceroute

dig

# dig hostname

# 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
Thank you !!
basic TROUBLESHOOTING on Internet INTERRUPTION!! Santosh Neupane System Admin