2015年4月14日 星期二

network internet connection diagnostic command

ping -p 8080 tw.yahoo.com


or




ping

command is the best way to test connectivity between two nodes.
ping tw.yahoo.com


dig
dig www.yahoo.com

traceroute

is a network troubleshooting utility which shows number of hops taken to reach destination also determine packets traveling path.
traceroute tw.yahoo.com

whois 

個指令可以查詢到當初註冊這個 domain 的使用者的相關資訊。不過,由於近年來很多網路資訊安全的問題,這個 whois 所提供的資訊真的是太詳細了
whois 111.111.111.111

nslookup

getting IP address form hostname
nslookup www.yahoo.com

netstat

查詢本機網路和外界網路連線的指令,可以透過這個指令查詢得知有沒有奇怪的連線在你的機
netstat –e 顯示網路的統計資訊,如 bytes 數和封包發送和接收的數量。
netstat –n 顯示活動TCP連線,但是 ip address和port編號沒有被解釋翻譯成為名稱。
Listing all ports (both TCP and UDP)
netstat -a | more

Listing TCP Ports connections
netstat -at

Listing UDP Ports connections
netstat -au

Listing all LISTENING Connections
netstat -l

Showing Statistics by Protocol
netstat -s

Displaying Kernel IP routing
netstat -r


沒有留言:

張貼留言