Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Linux Network troubleshooting commands
- #TCPdump is a Packet analyzing tool - this command analyzes 10 packets on a local interfaces
- tcpdump -c 10
- #This command runs the same tcpdump comnmand on a single interface
- tcpdump -c 10 -i wl01
- #This tcpdump command analyzes packets on port 22 on a single interface
- tcpdump -i wl01 port 22
- #Listing all ports (both TCP and UDP) using netstat -a option.
- netstat -a | more
- #Listing only TCP (Transmission Control Protocol) port connections using netstat -at.
- netstat -at
- #Listing only UDP (User Datagram Protocol ) port connections using netstat -au.
- netstat -au
- #Listing all active listening ports connections with netstat -l.
- netstat -l
- #Listing all active listening TCP ports by using option netstat -lt.
- netstat -lt
- #Listing all active listening UDP ports by using option netstat -lu.
- netstat -lu
- #The following dig command sends the DNS query to Googleβs name server(8.8.8.8) by using the @8.8.8.8 option.
- dig @8.8.8.8 hjalti.me
- #To query all the available DNS record types associated with a domain use the ANY option
- dig hjalti.me ANY
- #For example, to query get only the mail exchange β MX β answer section associated with a domain
- dig hjalti.me MX
- #Download a Single File - The following command will get the content of the URL and display it in the STDOUT
- curl http://www.centos.org
- #To store the output in a file, you an redirect it as shown below. This will also display some additional download statistics.
- curl http://www.centos.org > centos-org.html
- #Save the cURL Output to a file - We can save the result of the curl command to a file by using -o/-O options.
- curl -o mygettext.html http://www.gnu.org/software/gettext/manual/gettext.html
- #command to troubleshoot client certificate negotiation - The output will probably contain "Acceptable client certificate CA names" #and a list of CA certificates from the server, or possibly "No client certificate CA names sent"
- curl -iv https://mbl.is
- #Using Iperf to measure network speed / bandwidth
- #client side
- iperf -c 192.168.144.200
- #Server side
- iperf -s
Add Comment
Please, Sign In to add comment