fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


linux:netzwerk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:netzwerk [2023/11/11 22:28] gsyslinux:netzwerk [2024/10/04 22:56] (current) – [Nützliche Befehle] gsys
Line 4: Line 4:
  
 <code> <code>
-sysctl -w net.ipv4.ip_default_ttl=128   #TTL temp. setzen 128 = Windows default +sysctl -w net.ipv4.ip_default_ttl=128   # TTL temp. setzen 128 = Windows default 
-ping 192.168.1.1                        #Dauerping +ping 192.168.1.1                        # Dauerping 
-ping -c 4 192.168.1.1                   #4 Pings +ping -c 4 192.168.1.1                   # 4 Pings 
-netstat -npl                            #offene Ports auflisten +netstat -npl                            # offene Ports auflisten 
-lsof -i | grep -e LISTEN                #offene Ports auflisten +netstat -tulpn                          # offene Ports auflisten 
-cat < /dev/tcp/127.0.0.1/22             #Teste Ports mit cat+ss -tulpn                               # offene Ports auflisten 
 +lsof -i | grep -e LISTEN                # offene Ports auflisten 
 +cat < /dev/tcp/127.0.0.1/22             # Teste Ports mit cat
  
 </code> </code>
  
 ===== Debian ===== ===== Debian =====
-/etc/network/interfaces.d+/etc/network/interfaces.d \\
 /etc/network/interfaces /etc/network/interfaces
  
 <code> <code>
-service networking restart+sudo systemctl restart networking.service
 </code> </code>
  
 ==== Static ==== ==== Static ====
  
-Debian 10 
-<code> 
-# This file describes the network interfaces available on your system 
-# and how to activate them. For more information, see interfaces(5). 
- 
-source /etc/network/interfaces.d/* 
- 
-# The loopback network interface 
-auto lo 
-iface lo inet loopback 
- 
-# The primary network interface 
-allow-hotplug ens192 
-iface ens192 inet static 
-        address 10.1.1.25/24 
-        gateway 10.1.1.30 
-        # dns-* options are implemented by the resolvconf package, if installed 
-        dns-nameservers 10.1.1.32 
-        dns-search oes.ml-bw.de 
- 
-</code> 
- 
-Debian 12 
 <code> <code>
 # This file describes the network interfaces available on your system # This file describes the network interfaces available on your system
Line 69: Line 48:
 sudo ip addr add 123.222.111.123 dev ens192             #temporär 2. IP hinzufügen (bis reboot) sudo ip addr add 123.222.111.123 dev ens192             #temporär 2. IP hinzufügen (bis reboot)
 </code> </code>
- 
 ==== DHCP ===== ==== DHCP =====
 <code> <code>
linux/netzwerk.1699738138.txt.gz · Last modified: 2024/02/17 19:03 (external edit)