Inhaltsverzeichnis
Netzwerk-Tools
ping
Syntax:
$ ping hostname
…oder:
$ ping ip-adresse
Beispiel:
$ ping www.heise.de PING www.heise.de (193.99.144.71): 56 data bytes 64 bytes from 193.99.144.71: icmp_seq=0 ttl=255 time=0.172 ms 64 bytes from 193.99.144.71: icmp_seq=1 ttl=255 time=0.099 ms 64 bytes from 193.99.144.71: icmp_seq=2 ttl=255 time=0.095 ms 64 bytes from 193.99.144.71: icmp_seq=3 ttl=255 time=0.093 ms 64 bytes from 193.99.144.71: icmp_seq=4 ttl=255 time=0.094 ms 64 bytes from 193.99.144.71: icmp_seq=5 ttl=255 time=0.093 ms 64 bytes from 193.99.144.71: icmp_seq=6 ttl=255 time=0.093 ms 64 bytes from 193.99.144.71: icmp_seq=7 ttl=255 time=0.098 ms -- www.heise.de ping statistics -- 8 packets transmitted, 8 packets received, 0% packet loss round-trip min/avg/max = 0.093/0.104/0.172 ms
Unter Windows, um einen dauerhaften Test zu machen, muss man ping mit dem Parameter -t ausführen.
traceroute
Syntax:
$ traceroute hostname
Beispiel:
$ traceroute www.heise.de traceroute to www.heise.de (193.99.144.71), 30 hops max, 40 byte packets 1 erx-maw1.netcologne.de (195.14.247.95) 71.634 ms 2 swrt-maw1-g34.netcologne.de (213.196.239.169) 60.253 ms 3 cat6509-pg1-vl200.netcologne.de (195.14.195.145) 58.283 ms 4 rtint4-ge11.netcologne.de (81.173.192.2) 72.938 ms 5 rtdecix-g01.netcologne.de (81.173.192.85) 56.923 ms 6 de-cix2.ffm.plusline.net (80.81.193.132) 73.637 ms 7 c22.f.de.plusline.net (213.83.57.53) 64.342 ms 8 www.heise.de (193.99.144.71) 70.263 ms
Unter Windows heißt das Tool "tracert".
netstat
Es ist häufig sinnvoll, die Anzeige auf die TCP-Verbindungen zu beschränken. Unter Linux heißt die entsprechende Option "--tcp" oder "-t", unter UNIX-Versionen sowie unter Windows "-p tcp".
Beispiel:
$ netstat -t Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State Tcp 0 0 localhost:1032 localhost:1033 ESTABLISHED Tcp 0 0 localhost:1033 localhost:1032 ESTABLISHED Tcp 0 0 localhost:1030 localhost:1034 ESTABLISHED Tcp 0 0 localhost:1031 localhost:1030 ESTABLISHED Tcp 0 0 localhost:1028 localhost:1029 ESTABLISHED Tcp 0 0 localhost:1029 localhost:1028 ESTABLISHED Tcp 0 0 localhost:1026 localhost:1027 ESTABLISHED Tcp 0 0 localhost:1027 localhost:1026 ESTABLISHED Tcp 0 0 localhost:1024 localhost:1025 ESTABLISHED Tcp 0 0 localhost:1025 localhost:1024 ESTABLISHED
nslookup
Das Programm "nslookup" befragt einen Nameserver nach der IP-Adresse zum angegebenen Hostnamen oder umgekehrt. (Dabei muss die IP-Adresse des befragten Nameservers angegeben werden, sofern in der TCP/IP-Konfiguration des Betriebssystems keine festen Nameserver angegeben wurden.)
Beispiel 1: IP-Adresse von "www.heise.de" befragen (über DNS 194.8.194.70):
$ nslookup www.heise.de 194.8.194.70 Server: ns1.netcologne.de Address: 194.8.194.70 Nicht-autorisierte Antwort: Name: www.heise.de Address: 193.99.144.71
Beispiel 2: DNS-Namen von der IP-Adresse 193.99.144.71 befragen (über DNS 194.8.194.70):
$ nslookup 193.99.144.71 194.8.194.70 Server: ns1.netcologne.de Address: 194.8.194.70 Name: www.heise.de Address: 193.99.144.71
dig
Das Programm dient dem selben Zweck wie "nslookup", gibt aber ausführlichere Antworten.
Beispiel:
# dig @194.8.194.70 a www.heise.de ; <<>> DiG 2.2 <<>> @194.8.194.70 a www.heise.de ; (1 server found) ;; res options: init recurs defnam dnsrch ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10 ;; flags: qr rd ra; Ques: 1, Ans: 1, Auth: 3, Addit: 3 ;; QUESTIONS: ;; www.heise.de, type = A, class = IN ;; ANSWERS: www.heise.de. 65987 A 193.99.144.85 ;; AUTHORITY RECORDS: heise.de. 65987 NS ns2.pop-hannover.net. heise.de. 65987 NS ns.heise.de. heise.de. 65987 NS ns.pop-hannover.de. ;; ADDITIONAL RECORDS: ns2.pop-hannover.net. 65987 A 62.48.67.66 ns.heise.de. 4714 A 193.99.145.37 ns.pop-hannover.de. 9785 A 193.98.1.200 ;; Total query time: 321 msec ;; FROM: prefect to SERVER: 194.8.194.70 ;; WHEN: Sat Aug 17 16:16:05 2008 ;; MSG SIZE sent: 30 rcvd: 175
telnet
Stand: 28.09.2017
EOF