linux:netzwerk
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:netzwerk [2020/11/20 00:27] – external edit 127.0.0.1 | linux:netzwerk [2024/10/04 22:56] (current) – [Nützliche Befehle] gsys | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | ===== Nützliche Befehle ===== | ||
- | ===== Wichtige Dateien | + | < |
+ | sysctl -w net.ipv4.ip_default_ttl=128 # TTL temp. setzen 128 = Windows default | ||
+ | ping 192.168.1.1 | ||
+ | ping -c 4 192.168.1.1 | ||
+ | netstat -npl # offene Ports auflisten | ||
+ | netstat -tulpn | ||
+ | ss -tulpn | ||
+ | lsof -i | grep -e LISTEN | ||
+ | cat < / | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Debian ===== | ||
+ | / | ||
+ | / | ||
+ | |||
+ | < | ||
+ | sudo systemctl restart networking.service | ||
+ | </ | ||
+ | |||
+ | ==== Static ==== | ||
+ | |||
+ | < | ||
+ | # This file describes the network interfaces available on your system | ||
+ | # and how to activate them. For more information, | ||
+ | |||
+ | source / | ||
+ | |||
+ | # The loopback network interface | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | # The primary network interface | ||
+ | allow-hotplug ens192 | ||
+ | iface ens192 inet static | ||
+ | address 192.168.2.236 | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.2.254 | ||
+ | dns-domain sweet.home | ||
+ | dns-nameservers 192.168.2.254 1.1.1.1 8.8.8.8 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | sudo ip addr add 123.222.111.123 dev ens192 | ||
+ | </ | ||
+ | ==== DHCP ===== | ||
+ | < | ||
+ | # This file describes the network interfaces available on your system | ||
+ | # and how to activate them. For more information, | ||
+ | |||
+ | source / | ||
+ | |||
+ | # The loopback network interface | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | # The primary network interface | ||
+ | allow-hotplug ens192 | ||
+ | iface ens192 inet dhcp | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== SLES ===== | ||
+ | |||
+ | ==== Wichtige Dateien ==== | ||
^ Pfad ^ Verantwortlich für ^ | ^ Pfad ^ Verantwortlich für ^ | ||
Line 13: | Line 78: | ||
- | ===== Route ===== | + | ==== Route ==== |
''/ | ''/ | ||
Line 22: | Line 87: | ||
</ | </ | ||
- | ===== Priorität der Adapter | + | ==== Priorität der Adapter ==== |
''/ | ''/ | ||
Line 35: | Line 100: | ||
</ | </ | ||
- | ===== Netzwerkadapter Einstellungen | + | ==== Netzwerkadapter Einstellungen ==== |
''/ | ''/ | ||
Line 75: | Line 140: | ||
</ | </ | ||
- | ===== Hostname für FQDN ===== | + | ==== Hostname für FQDN ==== |
''/ | ''/ |
linux/netzwerk.1605828425.txt.gz · Last modified: (external edit)