Netzwerkbefehle: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
(28 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
'''Netzwerkbefehle''' - Wichtige Befehle für [[Computernetzwerk]]e | |||
== Übersicht == | |||
{| class="wikitable big options" | {| class="wikitable big options" | ||
|- | |- | ||
! Befehl !! Beschreibung | ! Befehl !! Beschreibung !! Beispiel | ||
|- | |- | ||
| [[arp]] || | | [[arp]] || ARP-Cache anzeigen und ändern || | ||
|- | |- | ||
| [[arping]] || | | [[arping]] || || | ||
|- | |- | ||
| [[bmon]] || | | [[bmon]] || || | ||
|- | |- | ||
| [[bridge]] || | | [[bridge]] || || | ||
|- | |- | ||
| [[cadaver]] || | | [[cadaver]] || cadaver - A command-line WebDAV client for Unix || | ||
|- | |- | ||
| [[dig]] || | | [[dig]] || || | ||
|- | |- | ||
| [[ethtool]] || | | [[ethtool]] || || | ||
|- | |- | ||
| [[ftp]] || | | [[ftp]] || FTP-Client || | ||
|- | |- | ||
| [[ip]] || | | [[ip]] || || | ||
|- | |- | ||
| [[nc]] || | | [[nc]] || || | ||
|- | |- | ||
| [[nethogs]] || | | [[nethogs]] || || | ||
|- | |- | ||
| [[netstat]] || | | [[netstat]] || || | ||
|- | |- | ||
| [[ | | [[nmap]] || || | ||
|- | |- | ||
| [[ | | [[nslookup]] || || | ||
|- | |- | ||
| [[ | | [[ping]] || || | ||
|- | |- | ||
| [[ | | [[putty]] || || | ||
|- | |- | ||
| [[ | | [[route]] || || | ||
|- | |- | ||
| [[ | | [[rsync]] || || | ||
|- | |- | ||
| [[ | | [[samba/net]] || || | ||
|- | |- | ||
| [[ | | [[scp]] || || | ||
|- | |- | ||
| [[ | | [[ss]] || || | ||
|- | |- | ||
| [[ | | [[ssh]] || || | ||
|- | |- | ||
| [[ssh]] || | | [[ssh-copy-id]] || || | ||
|- | |- | ||
| [[ | | [[sshmon]] || || | ||
|- | |- | ||
| [[ | | [[telnet]] || || | ||
|- | |- | ||
| [[ | | [[tracepath]] || || | ||
|- | |- | ||
| [[traceroute]] || | | [[traceroute]] || || | ||
|- | |- | ||
| [[wget]] || | | [[wget]] || || | ||
|- | |- | ||
| [[wireshark]] || | | [[wireshark]] || || | ||
|} | |} | ||
<noinclude> | |||
== Aufgaben == | |||
{| class="wikitable big" | |||
! Aufgabe !! Linux !! Windows | |||
|- | |||
|| Netzwerk-Interface | |||
|| ip addr show | |||
|| ipconfig | |||
|- | |||
|| IP-Adresse </br>ändern | |||
|| # ip addr add <ip-adresse>/<subnetzpräfix> <interface> | |||
|| netsh interface ip set address name=<interface> static <ip-adresse> <netmask> <gateway> | |||
|- | |||
|| Interface start/stop | |||
|| ip link set dev <interface> up/down | |||
|| netsh interface set interface <interface> enabled/disabled | |||
|- | |||
|| Namensauflösung IPv4 | |||
|| dig A <dns-name> | |||
|| nslookup <dns-name> | |||
|- | |||
|| Namensauflösung IPv6 | |||
|| dig AAAA <dns-name> | |||
|| nslookup <dns-name> | |||
|- | |||
|| Ping IPv4 | |||
|| ping <ip-adresse> | |||
|| ping <ip-adresse> | |||
|- | |||
|| Ping IPv6 | |||
|| ping <ipv6-adresse> | |||
|| ping -6 <ipv6-adresse> | |||
|- | |||
|| Ping auf link-lokaler-Adresse | |||
|| ping -I <interface> <link-lokale IPv6-Adresse> | |||
|| ping -6 <link-lokale IPv6-Adresse> | |||
|- | |||
|| Anzeige ARP-Cache | |||
|| ip -4 neigh show | |||
|| arp -a | |||
|- | |||
|| Löschen aller Einträge</br>im ARP-Cache | |||
|| # ip -4 neigh flush all | |||
|| arp -d * | |||
|- | |||
|| Löschen eines IPv4-Eintrages</br>im ARP-Cache | |||
|| # ip neigh flush <ipv4-adresse> | |||
|| arp -d <ip-adresse> | |||
|- | |||
|| Netzwerk neu starten | |||
|| # systemctl restart networking | |||
|| netsh interface ip reset | |||
|- | |||
|| Anzeige Neighbor Cache</br>für IPv6 | |||
|| ip -6 neigh | |||
|| netsh interface ipv6 show neighbors | |||
|- | |||
|| Löschen aller Einträge</br>im Neighbor Cache für IPv6 | |||
|| # ip -6 neigh flush all | |||
|| netsh interface ipv6 delete neighbors | |||
|- | |||
|| Löschen eines IPv6-Eintrages</br>im Neighbor-Cache | |||
|| # ip neigh flush <ipv6-adresse> | |||
|| netsh interface ipv6 delete address interface="<interface>" address="<adresse>" | |||
|- | |||
|| Routing-Tabelle für IPv4 | |||
|| route -n | |||
|| route print | |||
|- | |||
|| Routing-Tabelle für IPv6 | |||
|| route -n -6 | |||
|| netsh interface ipv6 show route | |||
|- | |||
|| Routenverfolgung | |||
|| tracepath <dns-name> | |||
|| tracert <dns-name> | |||
|- | |||
|| ARP-/Neighbor-Cache</br>fortlaufend ausgeben | |||
|| watch -n 1 ip -4 neigh</br>watch -n 1 ip -6 neigh | |||
|| | |||
|- | |||
|| Befehl fortlaufend wiederholen | |||
|| watch -n <seconds> <befehl> | |||
|| | |||
|- | |||
|| SSH-Verbindung aufbauen | |||
|| ssh user@ip-adress | |||
|| ssh user@ip-adress | |||
|} | |||
== Anhang == | |||
=== Siehe auch === | |||
{{Special:PrefixIndex/{{BASEPAGENAME}}}} | |||
==== Links ==== | |||
===== Weblinks ===== | |||
[[Kategorie:Netzwerk/Befehl]] | |||
</noinclude> |
Aktuelle Version vom 24. Februar 2024, 15:58 Uhr
Netzwerkbefehle - Wichtige Befehle für Computernetzwerke
Übersicht
Befehl | Beschreibung | Beispiel |
---|---|---|
arp | ARP-Cache anzeigen und ändern | |
arping | ||
bmon | ||
bridge | ||
cadaver | cadaver - A command-line WebDAV client for Unix | |
dig | ||
ethtool | ||
ftp | FTP-Client | |
ip | ||
nc | ||
nethogs | ||
netstat | ||
nmap | ||
nslookup | ||
ping | ||
putty | ||
route | ||
rsync | ||
samba/net | ||
scp | ||
ss | ||
ssh | ||
ssh-copy-id | ||
sshmon | ||
telnet | ||
tracepath | ||
traceroute | ||
wget | ||
wireshark |
Aufgaben
Aufgabe | Linux | Windows |
---|---|---|
Netzwerk-Interface | ip addr show | ipconfig |
IP-Adresse ändern |
# ip addr add <ip-adresse>/<subnetzpräfix> <interface> | netsh interface ip set address name=<interface> static <ip-adresse> <netmask> <gateway> |
Interface start/stop | ip link set dev <interface> up/down | netsh interface set interface <interface> enabled/disabled |
Namensauflösung IPv4 | dig A <dns-name> | nslookup <dns-name> |
Namensauflösung IPv6 | dig AAAA <dns-name> | nslookup <dns-name> |
Ping IPv4 | ping <ip-adresse> | ping <ip-adresse> |
Ping IPv6 | ping <ipv6-adresse> | ping -6 <ipv6-adresse> |
Ping auf link-lokaler-Adresse | ping -I <interface> <link-lokale IPv6-Adresse> | ping -6 <link-lokale IPv6-Adresse> |
Anzeige ARP-Cache | ip -4 neigh show | arp -a |
Löschen aller Einträge im ARP-Cache |
# ip -4 neigh flush all | arp -d * |
Löschen eines IPv4-Eintrages im ARP-Cache |
# ip neigh flush <ipv4-adresse> | arp -d <ip-adresse> |
Netzwerk neu starten | # systemctl restart networking | netsh interface ip reset |
Anzeige Neighbor Cache für IPv6 |
ip -6 neigh | netsh interface ipv6 show neighbors |
Löschen aller Einträge im Neighbor Cache für IPv6 |
# ip -6 neigh flush all | netsh interface ipv6 delete neighbors |
Löschen eines IPv6-Eintrages im Neighbor-Cache |
# ip neigh flush <ipv6-adresse> | netsh interface ipv6 delete address interface="<interface>" address="<adresse>" |
Routing-Tabelle für IPv4 | route -n | route print |
Routing-Tabelle für IPv6 | route -n -6 | netsh interface ipv6 show route |
Routenverfolgung | tracepath <dns-name> | tracert <dns-name> |
ARP-/Neighbor-Cache fortlaufend ausgeben |
watch -n 1 ip -4 neigh watch -n 1 ip -6 neigh |
|
Befehl fortlaufend wiederholen | watch -n <seconds> <befehl> | |
SSH-Verbindung aufbauen | ssh user@ip-adress | ssh user@ip-adress |