Netzwerkbefehle: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
Zeile 1: | Zeile 1: | ||
{| class="wikitable big options" | {| class="wikitable big options" | ||
|- | |- | ||
! Befehl !! Beschreibung | ! Befehl !! Beschreibung !! Beispiel | ||
|- | |- | ||
| [[arp]] || | | [[arp]] || || | ||
|- | |- | ||
| [[arping]] || | | [[arping]] || || | ||
|- | |- | ||
| [[bmon]] || | | [[bmon]] || || | ||
|- | |- | ||
| [[bridge]] || | | [[bridge]] || || | ||
|- | |- | ||
| [[cadaver]] || | | [[cadaver]] || || | ||
|- | |- | ||
| [[dig]] || | | [[dig]] || || | ||
|- | |- | ||
| [[ethtool]] || | | [[ethtool]] || || | ||
|- | |- | ||
| [[ftp]] || | | [[ftp]] || || | ||
|- | |- | ||
| [[ip]] || | | [[ip]] || || | ||
|- | |- | ||
| [[nc]] || | | [[nc]] || || | ||
|- | |- | ||
| [[nethogs]] || | | [[nethogs]] || || | ||
|- | |- | ||
| [[netstat]] || | | [[netstat]] || || | ||
|- | |- | ||
| [[netzwerkbefehle]] || | | [[netzwerkbefehle]] || || | ||
|- | |- | ||
| [[nmap]] || | | [[nmap]] || || | ||
|- | |- | ||
| [[nslookup]] || | | [[nslookup]] || || | ||
|- | |- | ||
| [[ping]] || | | [[ping]] || || | ||
|- | |- | ||
| [[putty]] || | | [[putty]] || || | ||
|- | |- | ||
| [[route]] || | | [[route]] || || | ||
|- | |- | ||
| [[rsync]] || | | [[rsync]] || || | ||
|- | |- | ||
| [[samba/net]] || | | [[samba/net]] || || | ||
|- | |- | ||
| [[scp]] || | | [[scp]] || || | ||
|- | |- | ||
| [[ss]] || | | [[ss]] || || | ||
|- | |- | ||
| [[ssh]] || | | [[ssh]] || || | ||
|- | |- | ||
| [[ssh-copy-id]] || | | [[ssh-copy-id]] || || | ||
|- | |- | ||
| [[sshmon]] || | | [[sshmon]] || || | ||
|- | |- | ||
| [[telnet]] || | | [[telnet]] || || | ||
|- | |- | ||
| [[traceroute]] || | | [[traceroute]] || || | ||
|- | |- | ||
| [[wget]] || | | [[wget]] || || | ||
|- | |- | ||
| [[wireshark]] || | | [[wireshark]] || || | ||
|} | |} | ||
Version vom 23. Februar 2024, 11:19 Uhr
Befehl | Beschreibung | Beispiel |
---|---|---|
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 |
---|---|---|
Informationen zum Netzwerk-Interface |
ip addr show | ipconfig |
IPv4-Adresse manuel ändern |
# 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) |
Hoch-/Runterfahren eines Interfaces |
ip link set dev <interface> up/down | netsh interface set interface <interface> enabled/disabled |
IPv4-Adresse zu einem DNS-Name |
dig A <dns-name> | nslookup <dns-name> |
IPv6-Adresse zu einem DNS-Name |
dig AAAA <dns-name> | nslookup <dns-name> |
Anpingen eines Rechners unter IPv4 |
ping <ip-adresse> | ping <ip-adresse> |
Anpingen eines Rechners mit globaler IPv6-Adresse |
ping <ipv6-adresse> | ping -6 <ipv6-adresse> |
Anpingen eines Rechner mit link-lokaler IPv6-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 |