Netzwerkbefehle: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 26: | Zeile 26: | ||
|- | |- | ||
| [[netstat]] || | | [[netstat]] || | ||
|- | |||
| [[netzwerkbefehle]] || | |||
|- | |- | ||
| [[nmap]] || | | [[nmap]] || | ||
Zeile 59: | Zeile 61: | ||
| [[wireshark]] || | | [[wireshark]] || | ||
|} | |} | ||
== Netzwerkbefehle == | |||
{| class="wikitable options big" | |||
! Beschreibung !! Linux !! Windows 10 !! MacOS | |||
|- | |||
|| Informationen zum</br>Netzwerk-Interface | |||
|| ip addr show | |||
|| ipconfig | |||
|| ifconfig | |||
|- | |||
|| IPv4-Adresse </br>manuel ändern | |||
|| sudo ip addr add <ip-adresse>/<subnetzpräfix> <interface> | |||
|| netsh interface ip set address name=<interface> static <ip-adresse> <netmask> <gateway> (nur mit die Power Shell) | |||
|| ifconfig <interface> <ip-adresse> netmask <subnetmaske> | |||
|- | |||
|| Hoch-/Runterfahren</br>eines Interfaces | |||
|| ip link set dev <interface> up/down | |||
|| netsh interface set interface <interface> enabled/disabled | |||
|| ifconfig <interface> up/down | |||
|- | |||
|| IPv4-Adresse</br>zu einem DNS-Name | |||
|| dig A <dns-name>, z.B. dig A heise.de | |||
|| nslookup <dns-name> | |||
|| dig A <dns-name> | |||
|- | |||
|| IPv6-Adresse</br>zu einem DNS-Name | |||
|| dig AAAA <dns-name> | |||
|| nslookup <dns-name> | |||
|| dig AAAA <dns-name> | |||
|- | |||
|| Anpingen eines Rechners</br>unter IPv4 | |||
|| ping <ip-adresse>, z.B. ping 173.194.116.143 | |||
|| ping <ip-adresse> | |||
|| ping <ip-adresse> | |||
|- | |||
|| Ping beenden | |||
|| <strg><c> | |||
|| n/a | |||
|| <strg><c> | |||
|- | |||
|| Hilfe zu Ping | |||
|| man ping | |||
|| ping /? | |||
|| man ping | |||
|- | |||
|| Anpingen eines Rechners</br>mit globaler IPv6-Adresse | |||
|| ping <ipv6-adresse>, z.B. ping 2001:638:408:200::2 | |||
|| ping -6 <ipv6-adresse> | |||
|| ping6 <ipv6-adresse> | |||
|- | |||
|| Anpingen eines Rechner</br>mit link-lokaler IPv6-Adresse | |||
|| ping -I <interface> <link-lokale IPv6-Adresse>, z.B. ping -I eth0 fe80::d8bb:bcff:fefb:57b9 | |||
|| ping -6 <link-lokale IPv6-Adresse> | |||
|| | |||
|- | |||
|| Anzeige ARP-Cache | |||
|| ip -4 neigh show | |||
|| arp -a | |||
|| arp -a | |||
|- | |||
|| Löschen aller Einträge</br>im ARP-Cache | |||
|| sudo ip -4 neigh flush all | |||
|| arp -d * | |||
|| arp -ad | |||
|- | |||
|| Löschen eines IPv4-Eintrages</br>im ARP-Cache | |||
|| sudo ip neigh flush <ipv4-adresse> | |||
|| arp -d <ip-adresse> | |||
|| arp -d <ip-adresse> | |||
|- | |||
|| Netzwerk neu starten | |||
|| sudo systemctl restart networking | |||
|| netsh interface ip reset | |||
|| ifconfig downifconfig up | |||
|- | |||
|| Anzeige Neighbor Cache</br>für IPv6 | |||
|| ip -6 neigh | |||
|| netsh interface ipv6 show neighbors | |||
|| ndp -an | |||
|- | |||
|| Löschen aller Einträge</br>im Neighbor Cache für IPv6 | |||
|| sudo ip -6 neigh flush all | |||
|| netsh interface ipv6 delete neighbors | |||
|| ndp -c | |||
|- | |||
|| Löschen eines IPv6-Eintrages</br>im Neighbor-Cache | |||
|| sudo ip neigh flush <ipv6-adresse> | |||
|| netsh interface ipv6 delete address interface="<interface>" address="<adresse>" | |||
|| | |||
|- | |||
|| Routing-Tabelle für IPv4 | |||
|| route -n | |||
|| route print | |||
|| netstat -nr | |||
|- | |||
|| Routing-Tabelle für IPv6 | |||
|| route -n -6 | |||
|| netsh interface ipv6 show route | |||
|| | |||
|- | |||
|| Routenverfolgung | |||
|| tracepath <dns-name> | |||
|| tracert <dns-name> | |||
|| traceroute <dns-name> | |||
|- | |||
|| ARP-/Neighbor-Cache</br>fortlaufend ausgeben | |||
|| watch -n 1 ip -4 neighwatch -n 1 ip -6 neigh | |||
|| | |||
|| | |||
|- | |||
|| Befehl fortlaufend wiederholen | |||
|| watch -n <seconds> <befehl> | |||
|| | |||
|| | |||
|- | |||
|| SSH-Verbindung aufbauen | |||
|| ssh user@ip-adress | |||
|| ssh user@ip-adress | |||
|| ssh user@ip-adress | |||
|} | |||
[[Kategorie:Netzwerk/Befehl]] |
Version vom 23. Februar 2024, 11:00 Uhr
Befehl | Beschreibung |
---|---|
arp | |
arping | |
bmon | |
bridge | |
cadaver | |
dig | |
ethtool | |
ftp | |
ip | |
nc | |
nethogs | |
netstat | |
netzwerkbefehle | |
nmap | |
nslookup | |
ping | |
putty | |
route | |
rsync | |
samba/net | |
scp | |
ss | |
ssh | |
ssh-copy-id | |
sshmon | |
telnet | |
traceroute | |
wget | |
wireshark |
Netzwerkbefehle
Beschreibung | Linux | Windows 10 | MacOS |
---|---|---|---|
Informationen zum Netzwerk-Interface |
ip addr show | ipconfig | ifconfig |
IPv4-Adresse manuel ändern |
sudo ip addr add <ip-adresse>/<subnetzpräfix> <interface> | netsh interface ip set address name=<interface> static <ip-adresse> <netmask> <gateway> (nur mit die Power Shell) | ifconfig <interface> <ip-adresse> netmask <subnetmaske> |
Hoch-/Runterfahren eines Interfaces |
ip link set dev <interface> up/down | netsh interface set interface <interface> enabled/disabled | ifconfig <interface> up/down |
IPv4-Adresse zu einem DNS-Name |
dig A <dns-name>, z.B. dig A heise.de | nslookup <dns-name> | dig A <dns-name> |
IPv6-Adresse zu einem DNS-Name |
dig AAAA <dns-name> | nslookup <dns-name> | dig AAAA <dns-name> |
Anpingen eines Rechners unter IPv4 |
ping <ip-adresse>, z.B. ping 173.194.116.143 | ping <ip-adresse> | ping <ip-adresse> |
Ping beenden | <strg><c> | n/a | <strg><c> |
Hilfe zu Ping | man ping | ping /? | man ping |
Anpingen eines Rechners mit globaler IPv6-Adresse |
ping <ipv6-adresse>, z.B. ping 2001:638:408:200::2 | ping -6 <ipv6-adresse> | ping6 <ipv6-adresse> |
Anpingen eines Rechner mit link-lokaler IPv6-Adresse |
ping -I <interface> <link-lokale IPv6-Adresse>, z.B. ping -I eth0 fe80::d8bb:bcff:fefb:57b9 | ping -6 <link-lokale IPv6-Adresse> | |
Anzeige ARP-Cache | ip -4 neigh show | arp -a | arp -a |
Löschen aller Einträge im ARP-Cache |
sudo ip -4 neigh flush all | arp -d * | arp -ad |
Löschen eines IPv4-Eintrages im ARP-Cache |
sudo ip neigh flush <ipv4-adresse> | arp -d <ip-adresse> | arp -d <ip-adresse> |
Netzwerk neu starten | sudo systemctl restart networking | netsh interface ip reset | ifconfig downifconfig up |
Anzeige Neighbor Cache für IPv6 |
ip -6 neigh | netsh interface ipv6 show neighbors | ndp -an |
Löschen aller Einträge im Neighbor Cache für IPv6 |
sudo ip -6 neigh flush all | netsh interface ipv6 delete neighbors | ndp -c |
Löschen eines IPv6-Eintrages im Neighbor-Cache |
sudo ip neigh flush <ipv6-adresse> | netsh interface ipv6 delete address interface="<interface>" address="<adresse>" | |
Routing-Tabelle für IPv4 | route -n | route print | netstat -nr |
Routing-Tabelle für IPv6 | route -n -6 | netsh interface ipv6 show route | |
Routenverfolgung | tracepath <dns-name> | tracert <dns-name> | traceroute <dns-name> |
ARP-/Neighbor-Cache fortlaufend ausgeben |
watch -n 1 ip -4 neighwatch -n 1 ip -6 neigh | ||
Befehl fortlaufend wiederholen | watch -n <seconds> <befehl> | ||
SSH-Verbindung aufbauen | ssh user@ip-adress | ssh user@ip-adress | ssh user@ip-adress |